[Freeswitch-users] Questions about bridge pattern and variables captured by conditions

Iskren Hadzhinedev iskren.hadzhinedev at ikiji.com
Wed May 21 19:11:30 MSD 2014


Hello,
I'm having some trouble understanding a couple of things.

First is what's the difference between:
<action application="bridge" data="sofia/local/1000 at sip.test.com"/>
and
<action application="bridge" data="sofia/sip.test.com/1000"/> ?

The other question:
With these dialplan rules:
<condition field="${destination_number}" expression="^([0-9]{6})$"/>
<condition field="${toll_allow}" expression="local">
	<action application="set" data="hangup_after_bridge=true"/>
	<action application="bridge" 
data="sofia/gateway/${default_gateway}/$1"/>
	<anti-action application="answer"/>
	<anti-action application="speak" data="Local calls are not 
allowed!"/>
</condition>

The variable $1 doesn't get expanded to the captured expression. Is it 
possible to retain it somehow without setting a temporary variable?
Thanks!

Kind regards,
-- 
Iskren Hadzhinedev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140521/ccb5680e/attachment.html 


Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list