[asterisk-users] How to get Sip response codes in Dialplan?

Juan E. Rodríguez jerdguez at gmail.com
Thu Mar 25 00:16:06 CDT 2010


Try using DIALSTATUS.

------Mensaje original------
De: Zhang Shukun
Remitente: asterisk-users-bounces at lists.digium.com
Para: Asterisk Users Mailing List - Non-Commercial Discussion
Responder a: Asterisk Users Mailing List - Non-Commercial Discussion
Asunto: [asterisk-users] How to get Sip response codes in Dialplan?
Enviado: 24 Mar, 2010 23:29

hi ,all

when a Dial or Queue excutes, a sip response code will return. like

== Using SIP RTP CoS mark 5
    -- Got SIP response 502 "Bad Gateway" back from 211.150.119.32
    -- SIP/95040-0000004a is circuit-busy
    -- Nobody picked up in 2000 ms

My quesion is how to get the response code in the dial plan
immediatelly in order to do different thing according the returned
codes?

for example: a queue response code is "busy now" i will queue another
number immediately not let the user waiting for the timeout.

Thanks!

-- 
Best regards,
Sucan

-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Saludos,
Juan E. Rodríguez


More information about the asterisk-users mailing list