[asterisk-users] cmd Dial with U option

Valter Nogueira vgnogueira at gmail.com
Mon Aug 25 21:05:30 CDT 2014


In my dialplan, when I dial 99 it rings SIP/2000

When SIP/2000 answers, it hears 9 every 5 seconds until someone dials 9,
what makes 2 legs been bridged.

My problem is: If I hangup, SIP/2000 continues to hears 9 until someone
dials 9 - it not stops

If SIP/2000 hangup - then the call is ended - what is OK

Is there some workaround? I was thinking in use G option - however I don't
figured out yet how

[TesteU]
exten => s,1,noop()
exten => s,n(READ),read(OPTION,digits/9,1,s,1,5)
exten => s,n,noop(${OPTION})
exten => s,n,GotoIf($["${OPTION}" = "9"]?END)
exten => s,n,Goto(READ)
exten => s,n(END),noop()

[default]
exten => 99,1,dial(sip/2000,,U(TesteU^s^1))

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20140825/fa074384/attachment.html>


More information about the asterisk-users mailing list