Quantcast
Channel: VOIP Tech Chat forum - dslreports.com
Viewing all articles
Browse latest Browse all 6358

Need help installing PHP GV callback script

$
0
0
I currently have this script working on an XAMPP server. I'm trying to install it on Asterisk. This is the script: https://github.com/aaronpk/Google-Voice-PHP-API/blob/master/GoogleVoice.php I'm using naf's vanilla Asterisk build on an RPi running Raspian. I deleted pjsip.conf and replaced it with the sample. I added code to extensions.conf to execute the script. exten => _NXXNXXXXXX,1,System(php /usr/local/src/gvcallback.php ${EXTEN} &) exten => h,1,Hangup() I didn't include code to merge the outbound and inbound calls. For now I just want to initiate the callback. I previously hard coded the GV credentials and callback number in the script. For this Asterisk test I also hard coded the outbound number. Question 1: I'm fairly confident the PHP script is setup correctly. PHP wasn't installed. I installed php (ver7.0), curl and php-dom. libcurl-openssl-dev was already installed. I removed all code for SMS and GV voicemail, so I don't think I need json. Am I missing any dependencies or settings? Question 2: I see this in putty after dialing a number: -- Executing [6235941000@from-internal:1] System("SIP/100-00000000", "php /usr/local/src/gvcallback.php 6235941000 &") in new stack -- Auto fallthrough, channel 'SIP/100-00000000' status is 'UNKNOWN' -- Executing [h@from-internal:1] Hangup("SIP/100-00000000", "") in new stack == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/100-00000000' I only see some pjsip startup errors in the log. /var/log/asterisk/messages How do I turn on logging for this script? Question 3: I used an invalid script name in extensions.conf and still received the same message in putty. No error in log or putty. Why? How can I tell if the script is getting executed? Thanks for any help.

Viewing all articles
Browse latest Browse all 6358

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>