[Freeswitch-users] How to add headers to an outgoing REGISTER

Vallimamod Abdullah vma at vallimamod.org
Mon Apr 23 14:38:58 UTC 2018


Hi,

I have made a quick check on the source and have not seen any call to the SIPTAG_PROXY_REQUIRE_STR() or SIPTAG_REQUIRE_STR() sofia macros. 

So, if I am not mistaken, a patch would be required to add them in the gateway registration functions. 


Best Regards,
-- 
Vallimamod Abdullah
SIP Solutions
linkedin.com/in/vallimamod
.

> On 23 Apr 2018, at 14:38, 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> 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] 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> wrote:
>>> Hello,
>>>  
>>> I have read the documentation under 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
>>> 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
>> _________________________________________________________________________
>> 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
>  
> _________________________________________________________________________
> 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




More information about the FreeSWITCH-users mailing list