Set speed dial 99 with code *0

<< < (2/3) > >>

giqcass:
Quote from: azrobert on March 19, 2014, 10:33:50 pm

Try this:
*0(1xxxxxxxxxx|0#|00#), Set Speed Dial, set($Spd[99],$code)


I can't see the problem with the first method but this code is working reliably.

Thanks for the help!

giqcass:
Quote from: azrobert on March 19, 2014, 10:33:50 pm

Try this:
*0(1xxxxxxxxxx|0#|00#), Set Speed Dial, set($Spd[99],$code)


I only used the # key to end the dialing sequence.  I won't be using *000 so I made these changes to speed up the dialing.  This works very well now.
*0(1xxxxxxxxxx|[2-9]xxxxxxxxx|0), Set Speed Dial, set($Spd[99],$code)

Until I can figure out how to autoreset I'm using *00 to set Speed dial 99 to 0 after I initiate the web callback.

I put this in the ConfigURL.  
IF ( $UDM0 >=3 ) FWU http://obicallback.mysite.com/?key=6dde9fa74f1936a&name=Jim&callback=$UDM0

$UDM0 is the contents of speed dial 99 and it is defined here.  

LOL  the picture will only show up tiny or huge!

azrobert:
Are you using the GV Widget PHP script that you were testing?

I tested this awhile ago and if I remember correctly the called person had to enter "1" to be connected to the caller. Did you find a way to eliminate this?

You can run a PHP script in Asterisk, hard code all the parms in the script and pass the outbound number to it via SIP.

giqcass:
I'm still using the widget code right now.  I plan to get the other method working but right now I'm obsessed with the Obi side of the equation.  Currently I have to
1)Dial *0 and the number
2)Wait a few seconds .
3)Dial *00.
4)Hang up.
5)Pick up the call.

If I can eliminate step 3 without a reboot I would be happy with it.  The only way I have found to auto reset Speed dial 99 causes the Obi to reboot.  For the cheapo that doesn't care steps 1-3 can be saved as a contact on most phones.

giqcass:
Ok I have decided to move on temporarily to getting the new php script working.  I am starting with this library.
https://github.com/aaronpk/Google-Voice-PHP-API/blob/master/GoogleVoice.php

It throws an warning and a fatal error on the web server I am testing.  It's probably the result of limitations of the web server itself. I get this warning and an error.

Code:

Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set in /public_html/GoogleVoice.php on line 27

Code:

Fatal error: Uncaught exception 'Exception' with message 'Could not log in to Google Voice with username: xxxxxxxx@xxxxxxxx.com' in /public_html/GoogleVoice.php:67 Stack trace: #0 /public_html/GoogleVoice.php(89): GoogleVoice->_logIn() #1 /public_html/simple.php(9): GoogleVoice->callNumber('4195551212', '4195555555', 'home') #2 {main} thrown in /public_html/GoogleVoice.php on line 67

I think it can be fixed with a little tinkering using something like this.
http://stackoverflow.com/questions/8078711/curlopt-followlocation-emulation
Or this
http://stackoverflow.com/questions/10138289/curl-setopt-curlopt-followlocation-issue-with-tcpdf

Navigation

[0] Message Index

[#] Next page

[*] Previous page