[Freeswitch-users] Passing custom sip headers using re-invite

Babak Yakhchali babak.yakhchali at gmail.com
Tue Oct 12 16:25:11 UTC 2021


I have a lua script as an event hook on sofia::reinvite, I want to get the
variable in the handler and do some logic on it.

On Tue, Oct 12, 2021 at 5:40 PM David Villasmil <
david.villasmil.work at gmail.com> wrote:

>
> How are you trying to use the header on the other side?
>
>
> On Tue, 12 Oct 2021 at 14:07, Babak Yakhchali <babak.yakhchali at gmail.com>
> wrote:
>
>> yes
>>
>> On Tue, Oct 12, 2021 at 2:48 PM Dragos Oancea <dragos at freeswitch.org>
>> wrote:
>>
>>> The custom header name, is it prefixed with "X-" ?
>>>
>>> On Tue, Oct 12, 2021 at 1:11 PM Babak Yakhchali <
>>> babak.yakhchali at gmail.com> wrote:
>>>
>>>> Hi
>>>> I need to pass some custom sip headers between 2 fs boxes after the
>>>> call is established. To do this I'm using "uuid_setvar sip_h_X-myvar=value"
>>>> on the channel and calling    uuid_media_reneg to create a re-invite, fs is
>>>> sending out the re-invite with new custom headers but the other fs box is
>>>> not adding these new custom sip headers to the channel. How can I make fs
>>>> to set new custom headers on the receiving side of the re-invite?
>>>> fs1 ----invite---> fs2
>>>> .... call is established
>>>> fs1 <---re-invite--- fs2 (re-invite with new custom sip X headers)
>>>> fs1 ... not adding new headers to channel
>>>>
>>>> thanks
>>>>
>>>> _________________________________________________________________________
>>>>
>>>> The FreeSWITCH project is sponsored by SignalWire
>>>> https://signalwire.com
>>>> Enhance your FreeSWITCH install with disruptive priced SMS and PSTN
>>>> services.
>>>> Build your next product on our scalable cloud platform.
>>>>
>>>> Join our online community to chat in real time
>>>> https://signalwire.community
>>>>
>>>> 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
>>>
>>> _________________________________________________________________________
>>>
>>> The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
>>> Enhance your FreeSWITCH install with disruptive priced SMS and PSTN
>>> services.
>>> Build your next product on our scalable cloud platform.
>>>
>>> Join our online community to chat in real time
>>> https://signalwire.community
>>>
>>> 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
>>
>> _________________________________________________________________________
>>
>> The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
>> Enhance your FreeSWITCH install with disruptive priced SMS and PSTN
>> services.
>> Build your next product on our scalable cloud platform.
>>
>> Join our online community to chat in real time
>> https://signalwire.community
>>
>> 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
>
> --
> Regards,
>
> David Villasmil
> email: david.villasmil.work at gmail.com
> phone: +34669448337
> _________________________________________________________________________
>
> The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
> Enhance your FreeSWITCH install with disruptive priced SMS and PSTN
> services.
> Build your next product on our scalable cloud platform.
>
> Join our online community to chat in real time
> https://signalwire.community
>
> 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/20211012/6b5f1aea/attachment-0001.html>


More information about the FreeSWITCH-users mailing list