[asterisk-users] Strange behaviour with Dial cmd

Yuan LIU yliu11 at hotmail.com
Wed Feb 14 18:28:54 MST 2007


>From: "Il Neofita" <asteriskmail at gmail.com>
>Date: Wed, 14 Feb 2007 19:30:51 -0500
>
>I have this simple context
>
>I am register to an external provider and when I am not home I would like 
>to transfer the phone outside
>The problem that the call goes in loop

I don't see any loop in records below?  What your dial plan does is what you 
told it to: ring for 5 sec, then hang up.  Because the calling party hasn't 
given up, your dial plan rings again.  Where's the error?

Yuan Liu

>I cannot understand why.
>
>Can you figure out my error?
>
>Thank you
>
>sip.conf
>register => user:pass at provider/400
>
>[inside]
>exten => _4X.,1,dial(SIP/ext_400_124/5551234444,5,tT)
>exten => _4X.,2,hangup
>
>-- Executing Dial("SIP/5551237777-081b8eb0",
>"SIP/ext_400_124/5551234444|5|tT") in new stack
>    -- Called ext_400_124/5551234444
>    -- SIP/ext_400_124-081bf848 is ringing
>    -- Nobody picked up in 5000 ms
>    -- Executing Hangup("SIP/5551237777-081b8eb0", "") in new stack
>  == Spawn extension (inside, 50000123, 2) exited non-zero on
>'SIP/5551237777-081b8eb0'
>    -- Executing Dial("SIP/5551237777-081c79a8",
>"SIP/ext_400_124/5551234444|5|tT") in new stack
>    -- Called ext_400_124/5551234444
>    -- SIP/ext_400_124-081ccee8 is ringing
>  == Spawn extension (inside, 50000123, 1) exited non-zero on
>'SIP/5551237777-081c79a8'




More information about the asterisk-users mailing list