[SR-Users] Add Header on cancel
François BERGANZ
francois at acropolistelecom.net
Fri May 21 09:26:51 CEST 2010
When I use forward, it doesnt work!
I don't know how to do
*François
*
*
*
Le 20/05/2010 17:09, Klaus Darilion a écrit :
> I think in tm mode this not possible. The CANCEL gets autogenerated by
> Kamailio so you can not modify it in script.
>
> sip-router trunk has now support for Reason header, but only
> generating it automatically or copy it from received CANCEL.
>
> A workaround would be to have the proxy running in stateless mode (no
> t_relay() but use forward()[1]) - then you can manipulate the CANCEL
> and then forward it.
>
> regards
> Klaus
>
> [1] http://sip-router.org/wiki/cookbooks/core-cookbook/devel#forward
>
> Am 20.05.2010 16:27, schrieb Alex Rendour:
>> Hi,
>> Is it possible to add an header reason in a cancel?
>>
>> We receive a CANCEL without header reason and we need to forward to
>> another SIP proxy with the reason header?
>>
>> We use this code in my conf:
>> if(is_method("CANCEL"))
>> {
>> if(!is_present_hf("Reason:"))
>> {
>> xlog("L_ERR", "reason missing");
>> append_hf("reason: Q.850; cause=31\r\n");
>> xlog("L_ERR", "add raison");
>> }
>>
>> }
>>
>> Thanks,
>>
>> regards,
>>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20100521/dfe0602d/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: francois.vcf
Type: text/x-vcard
Size: 400 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20100521/dfe0602d/attachment.vcf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6488 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20100521/dfe0602d/attachment.bin>
More information about the sr-users
mailing list