VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
aina.mestre at airenet... Guest
|
Posted: Wed Oct 05, 2022 4:32 am Post subject: [Freeswitch-users] Generate a new variable to reference in d |
|
|
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
|
|
Back to top |
|
|
brian at freeswitch.com Guest
|
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|