[Freeswitch-users] Unset variable in dialstring

Markus Bönke mbodbg at gmx.net
Wed Feb 5 06:15:35 UTC 2020


Perfect, that works! 

Thank you

Markus
> Am 04.02.2020 um 23:20 schrieb Vallimamod Abdullah <vma at vallimamod.org>:
> 
> Hi,
> 
> For sip headers you need to set an empty value to remove them: {sip_h_Privacy=} 
> 
> or before the bridge: 
> 
> <action application="export" data="_nolocal_sip_h_Privacy="/> 
> 
> the "_nolocal_" (or "nolocal:") prefix tells freeswitch to set the var only on b-leg.
> 
> Hope this helps.
> 
> 
> 
> Best Regards,
> -- 
> Vallimamod Abdullah
> SIP Solutions
> vma at sip.solutions
> linkedin.com/in/vallimamod
> .
> 
> 
>> On 4 Feb 2020, at 20:44, Markus Bönke <mbodbg at gmx.net> wrote:
>> 
>> Unfortunately I doesn’t work. I tried:
>> 
>> <action application="bridge" data="{sip_h_Privacy=_undef_}sofia/gateway/asterisk/+4933333333332" />
>> 
>> and see 
>> 
>> Privacy: _undef_
>> 
>> In the sip INVITE message.
>> 
>> Thanks 
>> 
>> Markus 
>> 
>>> Am 03.02.2020 um 16:48 schrieb Vallimamod Abdullah <vma at vallimamod.org>:
>>> 
>>> Hi,
>>> 
>>> You can try with _undef_, it works in dialplan as <action application="set" data="variable=_undef_"/>
>>> 
>>> 
>>> Best Regards,
>>> -- 
>>> Vallimamod Abdullah
>>> SIP Solutions
>>> vma at sip.solutions
>>> linkedin.com/in/vallimamod
>>> .
>>> 
>>> 
>>>> On 3 Feb 2020, at 16:07, Markus Bönke <mbodbg at gmx.net> wrote:
>>>> 
>>>> Hello NG,
>>>> 
>>>> I know it is possible to unset a variable in the dial plan by using the „unset“ application like:
>>>> 
>>>> <application="unset" data="variable_name“>
>>>> 
>>>> But is it also possible to unset a variable within a bridge command like:
>>>> 
>>>> bridge({variable_name="_unset_"}sofia/gateway/mygateway/+49123456789) 
>>>> 
>>>> _unset_ does not work with FS 1.10.2 but maybe there is any other „special value“ to unset? 
>>>> 
>>>> Thanks and regards
>>>> 
>>>> Markus
>>>> 
>>>> 
>>>> 
>>>> _________________________________________________________________________
>>>> 
>>>> 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
> 
> 
> _________________________________________________________________________
> 
> 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




More information about the FreeSWITCH-users mailing list