[Freeswitch-users] How to add headers to an outgoing REGISTER
Michael Jerris
mike at jerris.com
Mon Apr 23 19:28:48 UTC 2018
This is going to require changes to c code in mod_sofia to do properly.
> On Apr 23, 2018, at 8:38 AM, Lars Paulsen <lapa at novatec.de> wrote:
>
> Hello Srigo,
>
> yes, there is.
>
> I am trying to achieve a RFC6140 compliant registration (client side).
> This is e.g. a part of the SIPConnect specification from the SIPForum.
>
> As per RFC6140 this requires the following for a REGISTER request on the client side:
> - include URI parameter "bnc" in Contact-Header-URI (this was simply solved using the configuration)
> - include "gin" option tag in "Require" and "Proxy-Require" headers (that’s where I actually fail)
>
> Thanks for looking into this.
>
> Regards,
> Lars
>
> Von: FreeSWITCH-users [mailto:freeswitch-users-bounces at lists.freeswitch.org] Im Auftrag von KSrigo
> Gesendet: Montag, 23. April 2018 14:29
> An: FreeSWITCH Users Help
> Betreff: Re: [Freeswitch-users] How to add headers to an outgoing REGISTER
>
> Hi Lars,
>
> Thats what I understood. I’m not sure you can add a header to a SIP register send by FS. Is there any reason why you want to add these headers?
>
> srigo
>
>
>> On Apr 20, 2018, at 4:29 PM, Lars Paulsen <lapa at novatec.de <mailto:lapa at novatec.de>> wrote:
>>
>> Hello Srigo,
>>
>> yes, a gateway sending out a REGISTER. And I want to add headers to it before it’s send out.
>> I DO NOT mean adding headers to an REGISTER response send to a local extension.
>>
>> To be precise I wanted to add “Require” and “Proxy-Require” headers.
>> But I failed on adding completely new headers.
>>
>> Regards,
>> Lars
>>
>> Von: FreeSWITCH-users [mailto:freeswitch-users-bounces at lists.freeswitch.org <mailto:freeswitch-users-bounces at lists.freeswitch.org>] Im Auftrag von Srigo Kanapathipillai
>> Gesendet: Freitag, 20. April 2018 03:40
>> An: FreeSWITCH Users Help
>> Betreff: Re: [Freeswitch-users] How to add headers to an outgoing REGISTER
>>
>> Hi,
>>
>> What you mean by outgoing register?a Gateway registering?
>>
>> If yes, I'm not sure you can do it.
>>
>> Srigo
>>
>> On Fri, 20 Apr 2018, 01:33 Lars Paulsen, <lapa at novatec.de <mailto:lapa at novatec.de>> wrote:
>>> Hello,
>>>
>>> I have read the documentation under https://wiki.freeswitch.org/wiki/Sofia-SIP#Adding_Request_Headers <https://wiki.freeswitch.org/wiki/Sofia-SIP#Adding_Request_Headers> and as I understood it is possible to add
>>> Headers to SIP requests simply by changing the configuration.
>>>
>>> But the documentation refers to the dialing plan.
>>> I tried to add headers to an outgoing REGISTER but failed.
>>>
>>> Because the documentation refers to the dialplan and changing headers for existing calls, I am not sure if adding headers to a REGISTER request is possible or not.
>>> Can anyone please tell me if it is possible or not and if yes, how to formulate the correct “<action application=”set” …>” and “<condition>” sections in the configuration.
>>>
>>> Thanks in advance for all answers.
>>>
>>> Best Regards,
>>> Lars
>>> _________________________________________________________________________
>>> Professional FreeSWITCH Consulting Services:
>>> consulting at freeswitch.org <mailto:consulting at freeswitch.org>
>>> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/>
>>>
>>> Official FreeSWITCH Sites
>>> http://www.freeswitch.org <http://www.freeswitch.org/>
>>> http://confluence.freeswitch.org <http://confluence.freeswitch.org/>
>>> http://www.cluecon.com <http://www.cluecon.com/>
>>>
>>> FreeSWITCH-users mailing list
>>> FreeSWITCH-users at lists.freeswitch.org <mailto:FreeSWITCH-users at lists.freeswitch.org>
>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>
>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users>
>>> http://www.freeswitch.org <http://www.freeswitch.org/>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org <mailto:consulting at freeswitch.org>
>> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/>
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org <http://www.freeswitch.org/>
>> http://confluence.freeswitch.org <http://confluence.freeswitch.org/>
>> http://www.cluecon.com <http://www.cluecon.com/>
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org <mailto:FreeSWITCH-users at lists.freeswitch.org>
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users>
>> http://www.freeswitch.org <http://www.freeswitch.org/>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20180423/eba94a88/attachment-0001.html>
More information about the FreeSWITCH-users
mailing list