[Freeswitch-users] Generate a new variable to reference in dialplan

Aina Mestre aina.mestre at airenetworks.es
Wed Oct 5 09:10:34 UTC 2022


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























-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20221005/0d2573ef/attachment.html>


More information about the FreeSWITCH-users mailing list