[Asterisk-Dev] SIPGetHeader now deprecated
Olle E. Johansson
oej at edvina.net
Mon May 2 13:49:14 MST 2005
Andy wrote:
> On 02/05/2005 at 19:00 Olle E. Johansson wrote:
>
>
>>Eric Wieling aka ManxPower wrote:
>>
>>>Olle E. Johansson wrote:
>>>
>>>
>>>>That would be confusing. I am working on a patch to translate the
>>>>SIP return codes to HANGUPCAUSES, so we will be better in returning
>>>>those from the SIP channel. But setting HANGUPCAUSE to 404 will not
>>>>help, since 404 is not a valid Q.931 HANGUPCAUSE :-)
>>>
>>>
>>>What's wrong with mapping SIP response codes to ISDN PRI Cause codes per
>>>http://www.faqs.org/rfcs/rfc3398.html
>>
>>That's exactly what I've done.
>>
>
>
> Then surely it would map correctly, and thus be ok with HANGUPCAUSE.. adding
> SIPHANGUPCAUSE means you have to know that it was a SIP call - most of the time
> no one cares what type of call it was and using HANGUPCAUSE means you can use generic
> routines.
>
Right, but there's been quite a lot of questions about SIP error/hangup
codes from a lot of users, so I see no harm in implementing a function
to read it as well as correcting the SIP support for HANGUPCAUSE.
/O
More information about the asterisk-dev
mailing list