[asterisk-users] play prompt after hanup

Trevor Hammonds trevor at concipient.net
Mon Aug 17 06:22:26 CDT 2009


On Monday, August 17, 2009, Rilawich Ango wrote:

>Thanks.  DIALSTATUS works except ANSWER.  When the phone hangup, the
>dialplan doesn't go to s-ANSWER.
>
>    -- Executing [3001 at default:12] Dial("SIP/10.31.0.32-09872150",
>"SIP/3001|50|Tt") in new stack
>    -- Called 3001
>    -- SIP/3001-0986d1d8 is ringing
>    -- SIP/3001-0986d1d8 answered SIP/10.31.0.32-09872150
>  == Spawn extension (default, 3001, 12) exited non-zero on
>'SIP/10.31.0.32-09872150'

You need to ensure you specify the "g" option when you dial the destination
(e.g. Dial(SIP/3001,50,Ttg)).  Otherwise the call will jump to the "h" exten
when either party hangs up.  

Sincerely,
Trevor Hammonds






More information about the asterisk-users mailing list