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@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