[Freeswitch-users] Is it possible add new item in sip message header?

Steven Ayre steveayre at gmail.com
Sat Oct 13 15:14:26 UTC 2018


That's my point though, anyone can put any value there they like (not in FS
without a code change but you could in a SIP proxy or custom UA). The only
way to limit it to a specific server securely would be via some kind of
authentication or encryption.

On Mon, 8 Oct 2018 at 15:51, 薛光宏 <albert.hsueh at cloudigit.com> wrote:

> Hi
>
> Thanks for reply.
> The app is for school. We think the developer wish this mobile app only
> connect to specific sip server so they do this kind of check.
>
> Sincerley
> Albert
>
> Steven Ayre <steveayre at gmail.com> 於 2018年10月6日 週六 上午3:33寫道:
>
>> Any specific reason the app needs to check that header? It couldn't be
>> considered secure since anyone could insert that header.
>>
>> It's similar to the user-agent which is set in the sofia profile, if
>> implemented it'd likely be implemented in the same way which'd mean a small
>> change to the mod_sofia code. I'd file a Jira.
>>
>> On Thu, 4 Oct 2018 at 17:28, 薛光宏 <albert.hsueh at cloudigit.com> wrote:
>>
>>> Hi All,
>>>
>>> We run a mobile app to *register* FreeSWITCH 1.6.20 via sip. This app
>>> will check value of server field in message header but the packet sent from
>>> FreeSWITCH doesn't have this field.
>>> We would like to know is it possible to add filed "Server" to message
>>> header by adjusting FreeSWITCH configuration?
>>>
>>> We tried this by adjusting dialplan (
>>> https://freeswitch.org/confluence/display/FREESWITCH/Sofia+SIP+Stack)
>>>         <action
>>> application="set"><![CDATA[sip_h_Server=xxxxxx]]></action>
>>>
>>> it works in invite stage, but can not work in register stage. The app
>>> checks the filed "Server" in register stage.
>>>
>>> Thanks in advance.
>>>
>>> --
>>> Sincerely
>>>
>>> Albert Hsueh
>>> System Engineer
>>> Cloudpe Corporation
>>> 02-8712 5955 ext. 831
>>> www.cloudpe.com
>>> _________________________________________________________________________
>>> Professional FreeSWITCH Services
>>> sales at freeswitch.com
>>> https://freeswitch.com
>>>
>>> Official FreeSWITCH Sites
>>> https://freeswitch.com/oss
>>> https://freeswitch.org/confluence
>>> https://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
>>> https://freeswitch.com
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Services
>> sales at freeswitch.com
>> https://freeswitch.com
>>
>> Official FreeSWITCH Sites
>> https://freeswitch.com/oss
>> https://freeswitch.org/confluence
>> https://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
>> https://freeswitch.com
>
>
>
> --
> Sincerely
>
> Albert Hsueh
> System Engineer
> Cloudpe Corporation
> 02-8712 5955 ext. 831
> www.cloudpe.com
> _________________________________________________________________________
> Professional FreeSWITCH Services
> sales at freeswitch.com
> https://freeswitch.com
>
> Official FreeSWITCH Sites
> https://freeswitch.com/oss
> https://freeswitch.org/confluence
> https://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
> https://freeswitch.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20181013/812cd957/attachment-0001.html>


More information about the FreeSWITCH-users mailing list