How to initiate a call on a PC and have OBi phone pickup/Cut-Paste phone numbers

<< < (2/3) > >>

ianobi:
Long dark winter evenings loom ahead of us here in the UK - so maybe I will give this some time  ;)

I'm busy for the next few days, but your excellent idea deserves looking into as an "extra facility" to add to all the existing functions of the AA. I'll see what I can come up with in a few days time.

drgeoff:
Quote from: ianobi on October 24, 2016, 10:47:32 am

Long dark winter evenings loom ahead of us here in the UK - so maybe I will give this some time  ;)

I'm busy for the next few days, but your excellent idea deserves looking into as an "extra facility" to add to all the existing functions of the AA. I'll see what I can come up with in a few days time.

I'll be interested.

I currently use the AA for callback to a couple of mobiles.  The callback is over a VG with the SIP credentials of a FreedomPop SIM.  The other leg of the call goes out (as do calls from the phone on the OBi110) on various routes depending on the day and destination. eg

UK landlines at weekends - SP1 to Asterisk PBX then back to SP2 on the 110 and thence to the BT PSTN line.  (Need Asterisk for the weekday/weekend switch)

999 etc, 0800 numbers - directly to the BT PSTN line on the 110.

UK numbers not already covered by above two cases - SP1 to Asterisk PBX to SIP trunk with a second set of FreedomPop SIM credentials.

An OBi100 in Japan - Obitalk network

USA and Canada numbers - SP1 to Asterisk to GoogleVoice

Other international destinations (mainly Japan) - SP1 to Asterisk to Localphone

Skype - SP1 to Asterisk to ippi gateway

The FreedomPop SIMs each give 200 free minutes per month with no ongoing charge.  Outgoing service seems fine the way I use the credentials on OBi VG and Asterisk.  Using the SIMs in 3G phones as intended by FP has not been a totally satisfactory experience for telephony but OK for free 400 Mbytes data per month.

ianobi:
Edit - scroll down to Reply #9 for a better method.

This is my version as promised keeping all of the original functions of the AA and adding the facility to initiate a call from a PC. This is 99% based on azrobert’s idea and other info he has provided. I’ll copy his explanation format:

You would call the OBi with a softphone after dialing the outbound number and hang up after 1 ring. The AA will ring the OBi phone port. You will hear the AA prompt when you pickup. You then enter "200#" and the AA will place an outbound call using the number dialed by the softphone.

Install a softphone on your PC
I used Phonerlite
Use the OBi IP address and SPx port number as the Phonerlite proxy
I used 1234567 as the userid

Route calls from the softphone to the Auto Attendant with following rule in the SPx inbound route:
{1234567>(<**6>xx.):aa($2)}

Note: I'm prepending **6 to the number to make it distinctive before AA captures it in $2.

I have used OBi110 AA DigitMap and OutboundCallRoute in this example. It was tested on a working OBi110.

Modify the AA digit map as follows:
([1-9]x?*(Mpli)|[1-9]|[1-9][0-9]|<00:**7$1>|0|**1(Msp1)|**2(Msp2)|**8(Mli)|**9(Mpp)|(Mpli))

Modify the AA outbound route as follows:
{([1-9]x?*(Mpli)):pp},{(0|**6xx.):ph},{(<**1:>(Msp1)):sp1},{(<**2:>(Msp2)):sp2},{(<**8:>(Mli)):li},{(<**9:>(Mpp)):pp},{(<**7**6:>(Mpli))|(<**7:>(Mpli))|(Mpli):pli}

On the callback only the outbound route is processed.
The number has a **6 prefix, so the call will be routed to the phone port by rule {(0|**6xx.):ph}

On the callout the AA will send a “00” to the digit map. “00” will be replaced by the outbound number already prefixed with **6 (now held in $1) and that will be further prefixed with **7. The outbound number will be routed to pli using the first part of this rule {(<**7**6:>(Mpli))|(<**7:>(Mpli))|(Mpli):pli}

I have chosen to route the calls to the Primary Line, but that can be changed to any route you wish.

It is a bit clunky having to dial 200# at the AA prompt, but it does work! I’m open to any ideas for improvements.

azrobert:
I really like just dialing "1" after the AA prompt, so here's an alternate solution:

Add to the SPx inbound route:
{18005551212:aa($1)},{1234567:aa(AAA$2)},

Modify AA digit map:
([1-9]x?*(Mpli)|[1-9]|[1-9][0-9]|<00:$1>|0<$1>|**1(Msp1)|**2(Msp2)|**8(Mli)|**9(Mpp)|(Mpli))

Modify AA outbound route:
{(AAA@@.):ph},{(<0AAA:>(Mpli)):pli},{([1-9]x?*(Mpli)):pp},{018005551212:ph},{(<**1:>(Msp1)):sp1},{(<**2:>(Msp2)):sp2},{(<**8:>(Mli)):li},{(<**9:>(Mpp)):pp},{(Mpli):pli}
OR
{(AAA@@.):ph},{(<0AAA:>(Mpli)):pli},{([1-9]x?*(Mpli)):pp},{(0xx.):ph},{(<**1:>(Msp1)):sp1},{(<**2:>(Msp2)):sp2},{(<**8:>(Mli)):li},{(<**9:>(Mpp)):pp},{(Mpli):pli}

The 1st rule in the inbound route is for the standard features. The 2nd rule is for my added feature.

After dialing 1 the resulting zero will be suffixed. When using the standard features the zero will be suffixed with the callerid of the inbound call. The only way I could tell that you entered just a zero or trying to call a number that begins with a zero (like 011......) is to also check for the callerid. Change 18005551212 to your callerid in the inbound and outbound routes. If multiple callerids are routed to the AA then you must check for all of them. If you don't call numbers beginning with zero then you can use the 2nd outbound route. This checks for a number beginning with zero, no need to check for callerid.

ianobi:
Quote

I really like just dialing "1" after the AA prompt
I agree!

The "0" is a big issue for us in the UK and some other countries as almost all numbers start with a "0". Let's get rid of the pesky "0" as far as possible in this context. I think you have got us 99.99% of the way. How about this solution:

Add to the SPx inbound route:
{01234567891:aa($1)},{1234567:aa(AAA$2)},

Modify AA digit map:
([1-9]x?*(Mpli)|[1-9]|[1-9][0-9]|<00:$1>|<0:BBB$1>|**1(Msp1)|**2(Msp2)|**8(Mli)|**9(Mpp)|(Mpli))

Modify AA outbound route:
{(AAA@@.):ph},{(<BBBAAA:>(Mpli)):pli},{([1-9]x?*(Mpli)):pp},{(BBBxx.):ph},{(<**1:>(Msp1)):sp1},{(<**2:>(Msp2)):sp2},{(<**8:>(Mli)):li},{(<**9:>(Mpp)):pp},{(Mpli):pli}

It seems to work fine in all the "normal" and "call from PC" scenarios that I have tried.

Navigation

[0] Message Index

[#] Next page

[*] Previous page