v1.14
158
<condition regex="any">
<regex field="${sip_from_host}" expression="domainA"/>
<regex field="${sip_from_uri}" expression="1234567890@domainB"/>
<regex field="${sip_from_uri}" expression="user@domainC"/>
<regex field="caller_id_name" expression="^(John Smith)$"/>
<regex field="caller_id_number" expression="^(55512341)|(55512342)|(55512343)$"/>
<action application="set" data="domain_name=domainZ"/>
<action application="transfer" data="${destination_number} XML domainZ"/>
</condition>
</extension>
This is another example to show that all regex conditions must be true, then the action will get
executed; otherwise, the anti-action will. This is the same logic as follows:
IF (cond1 AND cond2 AND cond3) THEN
do actions
ELSE
do other actions
ENDIF
Basically, the <condition regex="all"> tells the parser, "Hey, execute the <action>'s only if all regexes
PASS, otherwise execute any <anti-action>'s".
<condition regex="all">
<regex field="${sip_gateway}" expression="^${default_provider}$"/>
<regex field="${emergency_call}" expression="^true$"/>
<regex field="${db(select/emergency/autoanswer)}" expression="^1$"/>
<!-- the following actions get executed if all regexes PASS -->
<action application="set" data="call_timeout=60"/>
<action application="set" data="effective_caller_id_name=${regex(${caller_id_name}|^Emerg(_.*)$|Auto%1)}"/>
<action application="set" data="autoanswered=true"/>
<action application="bridge" data="user/1000@${domain_name},sofia/gateway/1006_7217/${mobile_number}"/>
<!-- the following anti-actions are executed if any of the regexes FAIL -->
<anti-action application="set" data="effective_caller_id_name=${regex(${caller_id_name}|^Emerg(_.*)$|NotAuto%1)}"/>
<anti-action application="set" data="call_timeout=30"/>
<anti-action application="set" data="autoanswered=false"/>
Summary of Contents for Netborder SS7
Page 3: ...v1 14 3 This page is intentionally blank...
Page 4: ...v1 14 4 Sangoma Netborder SS7 to VoIP GW User Manual...
Page 110: ...v1 14 110 9 5 SS7 Network Overview...
Page 137: ...v1 14 137 Select the SLAVE option in step 2 and click Next Step to continue...
Page 182: ...v1 14 182...
Page 201: ...v1 14 201 21 Theory...
Page 202: ...v1 14 202...
Page 203: ...v1 14 203...
Page 204: ...v1 14 204...
Page 205: ...v1 14 205...
Page 206: ...v1 14 206...
Page 207: ...v1 14 207...
Page 208: ...v1 14 208...
Page 209: ...v1 14 209...
Page 210: ...v1 14 210...
Page 211: ...v1 14 211...
Page 212: ...v1 14 212...
Page 213: ...v1 14 213...
Page 214: ...v1 14 214...
Page 215: ...v1 14 215...
Page 216: ...v1 14 216...
Page 217: ...v1 14 217...
Page 218: ...v1 14 218...
Page 219: ...v1 14 219...
Page 220: ...v1 14 220...
Page 221: ...v1 14 221...
Page 222: ...v1 14 222...
Page 223: ...v1 14 223...
Page 224: ...v1 14 224...
Page 225: ...v1 14 225...
Page 226: ...v1 14 226...
Page 227: ...v1 14 227...
Page 228: ...v1 14 228...
Page 229: ...v1 14 229...
Page 230: ...v1 14 230...
Page 231: ...v1 14 231...
Page 232: ...v1 14 232...
Page 233: ...v1 14 233...
Page 234: ...v1 14 234...
Page 235: ...v1 14 235...
Page 236: ...v1 14 236...
Page 237: ...v1 14 237...
Page 238: ...v1 14 238...
Page 239: ...v1 14 239...
Page 240: ...v1 14 240...
Page 241: ...v1 14 241...
Page 242: ...v1 14 242...
Page 243: ...v1 14 243...
Page 244: ...v1 14 244...
Page 245: ...v1 14 245...
Page 246: ...v1 14 246...
Page 247: ...v1 14 247...
Page 248: ...v1 14 248...
Page 249: ...v1 14 249...
Page 250: ...v1 14 250...
Page 251: ...v1 14 251...
Page 252: ...v1 14 252...
Page 253: ...v1 14 253...
Page 254: ...v1 14 254...
Page 255: ...v1 14 255...
Page 256: ...v1 14 256...
Page 257: ...v1 14 257...
Page 258: ...v1 14 258...
Page 259: ...v1 14 259...
Page 260: ...v1 14 260...
Page 261: ...v1 14 261...
Page 262: ...v1 14 262...
Page 263: ...v1 14 263...
Page 264: ...v1 14 264...
Page 265: ...v1 14 265...
Page 266: ...v1 14 266...
Page 267: ...v1 14 267...
Page 268: ...v1 14 268...
Page 269: ...v1 14 269...
Page 270: ...v1 14 270...
Page 271: ...v1 14 271...
Page 272: ...v1 14 272...
Page 273: ...v1 14 273...
Page 274: ...v1 14 274...
Page 275: ...v1 14 275...
Page 276: ...v1 14 276...
Page 277: ...v1 14 277...
Page 278: ...v1 14 278...
Page 279: ...v1 14 279...
Page 280: ...v1 14 280...
Page 281: ...v1 14 281...
Page 282: ...v1 14 282...
Page 283: ...v1 14 283...
Page 284: ...v1 14 284...
Page 285: ...v1 14 285...
Page 286: ...v1 14 286...
Page 287: ...v1 14 287...
Page 288: ...v1 14 288...
Page 289: ...v1 14 289...
Page 290: ...v1 14 290...
Page 291: ...v1 14 291...
Page 292: ...v1 14 292...
Page 293: ...v1 14 293...
Page 294: ...v1 14 294...
Page 295: ...v1 14 295...
Page 296: ...v1 14 296...
Page 297: ...v1 14 297...
Page 298: ...v1 14 298...
Page 299: ...v1 14 299...
Page 300: ...v1 14 300...
Page 301: ...v1 14 301...
Page 302: ...v1 14 302...
Page 303: ...v1 14 303...
Page 304: ...v1 14 304...
Page 305: ...v1 14 305...
Page 306: ...v1 14 306...
Page 307: ...v1 14 307...
Page 308: ...v1 14 308...
Page 309: ...v1 14 309...
Page 310: ...v1 14 310...
Page 311: ...v1 14 311...
Page 312: ...v1 14 312...
Page 313: ...v1 14 313...
Page 314: ...v1 14 314...
Page 315: ...v1 14 315...
Page 316: ...v1 14 316...
Page 317: ...v1 14 317...