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
.call file
Channel: Local/1001@from-internal
Maxretries: 3
Retrytime: 60
Waittime: 60
Context: phpAgi
Extension: 9000
Priority: 1
extensions_trixbox.conf
[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:
Channel: SIP/rixtelecom/073xxxxxxx
Maxretries: 3
Retrytime: 60
Waittime: 60
Context: phpAgi
Extension: 9000
Priority: 1
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 83.140.41.47
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??
thanks