On 5/16/07, Robert Lister <[EMAIL PROTECTED]> wrote:
I was wondering if it is possible (in 1.2.x) to get the SIP response code
back after doing Dial().
Dial() seems to treat most call-setup problems as dialstatus CONGESTION, and
some are NOANSWER, but I want to know the SIP response code, so I could
return the right tones to the user, not just a congestion tone for every
fault.
Anyone know a way to find out that information, so I want the "604" out of this
lot:
vim chan_sip.c
/Got SIP response
(Hint: there are a few references, they start around line 10.000)
Or where do I need to look to find a SIP response code -> DIALSTATUS mapping?
Are these configurable anywhere or are they hardcoded?
In app_dial.c all it does is:
pbx_builtin_setvar_helper(chan, "DIALSTATUS", status);
It shouldn't be too hard to add another variable for SIPDIALSTATUS or
whatever name you fancy.
If I push the response code back to the handset (Cisco 7960) then it is even
more unhelpful as it uses the same error message for all SIP error type
response codes: "Reorder" but does not tell you why the call failed to set
up. If it actually put the SIP response error on the display, that would be
good, but it doesn't. (at least SIP 8.6 and prior software versions)
That seems like a bug you should address with the vendor.
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users