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

Zhang Shukun bitzsk at gmail.com
Wed Mar 24 22:29:15 CDT 2010


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



More information about the asterisk-users mailing list