Hello
What I’d like to do is to setup asterisk to forward calls to my cell phone in case no sip subscribers are available (in case i’m not at home). So far this kinda works with the configuration below.
Asterisk 1.8.19.1
extensions.conf
[sipgate-in]
exten => 1111111,n,Dial(SIP/spod_desktop&SIP/spod_mobile,${SPOD_CALL_TIMEOUT})
exten => 1111111,n,Goto(1111111-${DIALSTATUS},1)
.. (handle other dial status) ..
exten => 1111111-CHANUNAVAIL,1,Verbose(0, No sip client available, forwarding to cell)
exten => 1111111-CHANUNAVAIL,n,Set(CALLERID(num)=${CALLERID(num)})
;exten => 1111111-CHANUNAVAIL,n,Playback(hello-world) <- commented out
exten => 1111111-CHANUNAVAIL,n,Dial(${SPOD_CELL},${SPOD_CALL_TIMEOUT},rga)
exten => 1111111-CHANUNAVAIL,n,Verbose(0, Cell timed out, activating voice mail)
exten => 1111111-CHANUNAVAIL,n,Voicemail(10@default,u)
exten => 1111111-CHANUNAVAIL,n,Hangup
The problem is whenever the cellphone takes the call both sides cant hear anything. But whats really strange is, with the hello-world playback enabled, the caller will hear the hello world message and the cell will start ringing. Then after picking up the cell both sides will hear each other just fine.
Is this some kind of timeout taking place? Any suggestions how to fix this? I don’t really want to play any sound as a workaround, as I suspect the caller will be billed whether I pick up on my cell or not…
Output from -cvvvvv
== Everyone is busy/congested at this time (2:0/0/2)
-- Executing [1111111@sipgate-in:8] Goto("SIP/sipgate-00000000", "1111111-CHANUNAVAIL,1") in new stack
-- Goto (sipgate-in,1111111-CHANUNAVAIL,1)
-- Executing [1111111-CHANUNAVAIL@sipgate-in:1] Verbose("SIP/sipgate-00000000", "0, No sip client available, forwarding to cell") in new stack
No sip client available, forwarding to cell
-- Executing [1111111-CHANUNAVAIL@sipgate-in:2] Set("SIP/sipgate-00000000", "CALLERID(name)=xxxxxx") in new stack
-- Executing [1111111-CHANUNAVAIL@sipgate-in:3] Dial("SIP/sipgate-00000000", "SIP/xxxxx@sipgate,20,rga") in new stack
== Using SIP RTP CoS mark 5
-- Called SIP/xxxxx@sipgate
-- SIP/sipgate-00000001 is making progress passing it to SIP/sipgate-00000000
-- SIP/sipgate-00000001 is ringing
-- SIP/sipgate-00000001 answered SIP/sipgate-00000000
-- Locally bridging SIP/sipgate-00000000 and SIP/sipgate-00000001
Thanks for your help!