2010/3/25 Juan E. Rodríguez <[email protected]>: > Try using DIALSTATUS.
Thank you! but DIALSTATUS IS used for Dial. not for queue > > ------Mensaje original------ > De: Zhang Shukun > Remitente: [email protected] > 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 -- _____________________________________________________________________ -- 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
