[Freeswitch-users] Generate a new variable to reference in dialplan
Brian West
brian at freeswitch.com
Wed Oct 5 12:53:11 UTC 2022
If you're wanting to add the variable to the outbound leg you'll need to
set it in {} on the bridge line.
<action application="bridge"
data="{sip_h_P-Charge-Info=${accountcode}}sofia/gateway/NP/$1"/>
/b
On Wed, Oct 5, 2022 at 4:28 AM Aina Mestre <aina.mestre at airenetworks.es>
wrote:
> Good morning,
>
>
>
> I defined in my directory (/usr/local/freeswitch/conf/directory) a
> variable called accountcode (it’s okey if it has to be another name because
> this is already in use) with value 7777. What I need is that in the
> dialplan is set as a variable so that i can use it as a SIP_Header for my
> call as sip-h-P-Charge-Info, like follows:
>
>
>
>
>
> <extension name="saliente">
>
> <condition field="destination_number" expression="^(\d+)$"
> break="on-true">
>
> <action application="set"
> data="effective_caller_id_number=${caller_id_number}"/>
>
> <action
> application="set"><![CDATA[sip_h_P-Charge-Info=${accountcode}]]></action>
>
> <action application="bridge" data="sofia/gateway/NP/$1"/>
>
> </condition>
>
> </extension>
>
>
>
> Is it that posible? How can I solve it?
>
>
>
> Thank you in advance
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> _________________________________________________________________________
>
> 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
>
--
Brian West | Co-founder and Developer
Need Commercial support? email sales at freeswitch.com
FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045
<https://maps.google.com/?q=17345+Civic+Drive+%232531+Brookfield,+WI+53045&entry=gmail&source=g>
Email: brian at freeswitch.com
Mobile: 918-424-9378
Website: https://www.FreeSWITCH.com <https://www.freeswitch.com/>
[image: https://www.facebook.com/signalwireinc?src=email]
<https://www.facebook.com/freeswitch> [image:
https://twitter.com/freeswitch] <https://twitter.com/freeswitch>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20221005/e7891a24/attachment.html>
More information about the FreeSWITCH-users
mailing list