Zhang Shukun
2010-Mar-25 03:29 UTC
[asterisk-users] How to get Sip response codes in Dialplan?
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
Juan E. RodrÃguez
2010-Mar-25 05:16 UTC
[asterisk-users] How to get Sip response codes in Dialplan?
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
Zhang Shukun
2010-Mar-25 05:56 UTC
[asterisk-users] How to get Sip response codes in Dialplan?
2010/3/25 Juan E. Rodr?guez <jerdguez at gmail.com>:> Try using DIALSTATUS.Thank you! but DIALSTATUS IS used for Dial. not for queue> > ------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 > -- > _____________________________________________________________________ > -- 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 >-- Best regards, Sucan
Philipp von Klitzing
2010-Mar-25 21:22 UTC
[asterisk-users] How to get Sip response codes in Dialplan?
Hi!> > Try using DIALSTATUS. > > Thank you! > > but DIALSTATUS IS used for Dial. not for queueLook at HANGUPCAUSE. It translates in a non-biunique fashion, unfortunately, but Asterisk is ISDN/PSTN centric and does not provide direct access to the SIP error code. Philipp