[Asterisk-Dev] SIPGetHeader now deprecated

Andy lists at automated.it
Mon May 2 10:22:51 MST 2005


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.

Andy




More information about the asterisk-dev mailing list