Interpreting SIP return codes in extensions.conf

telecom_geek
Joined: Sun 14 of Jun, 2009

Interpreting SIP return codes in extensions.conf

Posted:Sun 14 of Jun, 2009 (15:17 UTC)
I have recently read in some documentation that there might be a way to read the SIP return codes i.e (404, 503) in the extensions.conf file. Currently I am looking at the REASON variable and branching on that but I would like a little more control. I was wondering if anyone has worked with this and has a working example. I found this link http://www.voip-info.org/wiki/view/Asterisk+variable+hangupcause but I would like to know if it is usable either by the HANGUPCAUSE (does the SIP infrastructure map to these) or does everything get mapped to REASON. In any event, I would like more control without having to modify source myself.

Thanks in advance...