[Kamailio-Users] remove 100rel from Supported header

Dmitri G. xbt.dev at gmail.com
Sat Aug 15 19:54:05 CEST 2009


Thank you Uriel and Alex for the helpful tips, I changed it like how it was
suggested by you, and works like a charm!

Thanks,

Dmitri

2009/8/14 Alex Balashov <abalashov at evaristesys.com>

> Or "100rel," if there are other values.
>
> Uriel Rozenbaum wrote:
>
>  Dmitri,
>>
>> I had to do this to workaround some Huawei bug.
>>
>> You have to check for supported and then replace ´100rel;' and then
>> '100rel' just in the case Alex mentioned.
>>
>> You can forward a message with an empty 'Supported:' but you cannot send
>> one with a ';' at last.
>>
>> Check if tha works.
>> Uriel
>>
>> On Fri, Aug 14, 2009 at 2:50 PM, Alex Balashov <abalashov at evaristesys.com<mailto:
>> abalashov at evaristesys.com>> wrote:
>>
>>    I suppose it could, but it would not be SIP-compliant to have a
>>    blank value for the Supported: header if 100rel is the only thing in
>>    there.
>>
>>    Dmitri G. wrote:
>>
>>        Thank you for your reply Alex!
>>
>>        This cannot be done like this?
>>
>>               if(is_present_hf("Supported"))
>>               {
>>                       replace_all("100rel", "");
>>
>>               }
>>
>>        I mean instead of using the subst() function what you mentioned.
>>
>>
>>        Dmitri
>>
>>        2009/8/14 Alex Balashov <abalashov at evaristesys.com
>>        <mailto:abalashov at evaristesys.com>
>>        <mailto:abalashov at evaristesys.com
>>        <mailto:abalashov at evaristesys.com>>>
>>
>>
>>           This can certainly be done using the subst() function in
>> textops,
>>           but it is not proper for a proxy to make such manipulations.
>>
>>           Dmitri G. wrote:
>>
>>               Hello,
>>
>>               Is there a way to remove 100rel from Supported header (only
>>               this, and keep the others) by Kamailio?
>>               I am using Kamailio 1.5.1 notls.
>>
>>               Kind regards,
>>               Dmitri
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>>               _______________________________________________
>>               Kamailio (OpenSER) - Users mailing list
>>               Users at lists.kamailio.org
>>        <mailto:Users at lists.kamailio.org>
>>        <mailto:Users at lists.kamailio.org <mailto:Users at lists.kamailio.org
>> >>
>>
>>
>>               http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
>>
>> http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
>>
>>
>>
>>           --    Alex Balashov
>>           Evariste Systems
>>           Web     : http://www.evaristesys.com/
>>           Tel     : (+1) (678) 954-0670
>>           Direct  : (+1) (678) 954-0671
>>
>>
>>
>>
>>  ------------------------------------------------------------------------
>>
>>        _______________________________________________
>>        Kamailio (OpenSER) - Users mailing list
>>        Users at lists.kamailio.org <mailto:Users at lists.kamailio.org>
>>        http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
>>        http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
>>
>>
>>
>>    --    Alex Balashov
>>    Evariste Systems
>>    Web     : http://www.evaristesys.com/
>>    Tel     : (+1) (678) 954-0670
>>    Direct  : (+1) (678) 954-0671
>>
>>    _______________________________________________
>>    Kamailio (OpenSER) - Users mailing list
>>    Users at lists.kamailio.org <mailto:Users at lists.kamailio.org>
>>    http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
>>    http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
>>
>>
>>
>
> --
> Alex Balashov
> Evariste Systems
> Web     : http://www.evaristesys.com/
> Tel     : (+1) (678) 954-0670
> Direct  : (+1) (678) 954-0671
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20090815/af7d3efb/attachment.htm>


More information about the sr-users mailing list