July 2017
Intermediate to advanced
434 pages
12h 59m
English
In the following example, the particular extension will be selected only if the IP address of the calling endpoint is 192.168.1.1. In the second condition, the dialed number is extracted in variable $1 and put in the data of the bridge application, in order to dial out to IP address 192.168.2.2.
<extension name="Test1">
<condition field="network_addr"
expression="^192\.168\.1\.1$"/>
<condition field="destination_number" expression="^(\d+)$">
<action application="bridge"
data="sofia/profilename/$1@192.168.2.2"/>
</condition>
</extension>
The first condition field is terminated by a slash. The last condition field that contains the action tag is terminated by a regular </condition> tag. Also, note that ...
Read now
Unlock full access