I am trying to create my own wakeupcall-script and I am using Trixbox.
I want my script to call my cellphone with a .call file, and then go to a given context that starts my script which is written in PHP.
It all works great when I was just using it between my local softphones, then I used this code in the .call file
[phpAgi] exten => s,1,AGI(test.php)
This callfile will make a call to my local 1001 extension, which is a Softphone on a computer, and when that call is answered it will go to the phpAgi context and start my script. The call will come from Extension 9000 (don’t know if this is necessary) It all works great, but the problem comes when I try to get the .callfile to make a phonecall to my cellphone.
Then I have tried using this:
Where [rixtelecom] is defined in my sip.conf, dont know if I am using the Channel: correctly.
When running this file I get the following message:
[i] – Attempting call on SIP/rixtelecom/073xxxxxxx for 9000@phpAgi:1 (Retry 1)
– Got SIP response 503 “Service Unavailable” back from 18.104.22.168
Channel SIP/rixtelecom-0941b698 was never answered.[/i]
I think there must be something wrong with the way I am using Channel: I dont know if the context rixtelecom from my sip.conf is the correct one to use. All I want is that the .callfile makes a call to 073xxxxxxx and when answered executes my script via [phpAgi]
Any ideas on what I am doing wrong??