Hi, good afternoon guys.
I would like to know which lines could I use to whenever a call goes to a context, this context route the call to a real PSTN number (My cellphone)
I need this because I have a PHP code that, when executed, ‘triggers’ a call to my PSTN number “1234-5678” .
My inbound and outbound calls are already working. I can call outside (using SPA3102) with a VoIP extension. But now I need to fix in this context “arduino call” (Which is connected with the PHP code) a line that always call this cellphone (PSTN number) and play an audio. This already works between PHP > Asterisk > VoIP extension, but I need this for a “PSTN extension”
I already tried with the following contexts and didn’t work out.
[arduino_call]
exten => 6001,1,Dial(SIP/${REAL NUMBER HERE}@fxo,60,)
exten => s,1,Answer()
exten => s,2,Wait(1)
exten => s,3,Background(Menu2)
exten => s,4,Hangup
Tambem:
[arduino_call]
exten => REAL NUMBER HERE,1,Dial(SIP/${EXTEN}@fxo,60,)
exten => s,1,Answer()
exten => s,2,Wait(1)
exten => s,3,Background(Menu2)
exten => s,4,Hangup
Has anyone done something similar and could help?
Thanks so much!!