Version 6.6
443
MP-11x & MP-124
User's Manual
42. SIP Message Manipulation Syntax
•
Explanation: Dialing 3122 creates the following subexpressions:
♦
1: <sip:
♦
2: 31
♦
3: 2
♦
4: 2
♦
5: 10.132.10.100;user=phone>
Example 2 - Manipulation based on source and destination number:
•
Required manipulation: If the destination number has prefix 6, 7, or 8 (e.g.,
85262146) and the source number has prefix 2001, then remove the first five
digits (e.g., 85262) from the destination number and add 3 as the prefix (e.g.,
3146).
♦
Old header:
From:
<sip:[email protected];user=phone>;tag=XINPYDPROEOREGE
IHUHF
To: sip:[email protected];user=phone
♦
New header:
From: <sip:[email protected];user=phone>;tag=1c13519
To: sip:[email protected]
•
Manipulation rules:
Table
42-10: Regex-based Message Manipulation Rules - Example2
Index
Condition
Action Subject
Action Type Action Value
1
header.to regex <sip:(
[6-
8]
[1-
9]{4})(.*)@(.*>)
var.call.dst.0
Modify
'3'+$2
2
header.from regex 2001
header.to.url.user
Modify
var.call.dst.0
•
Explanation: These rules are slightly complex as both the To and From headers
are inspected. This rule executes
♦
If the dialed number is prefixed with a number 6-8 (inclusive)
♦
If the calling party number is prefixed with 2001
If these conditions exist, then:
♦
Remove the first five digits of the dialled string.
♦
Prefix the result with the digit 3.
The first rule matches a dialled number that occurs in the To header (e.g.,
85262146). If a match occurs, it uses a variable to store the remaining three digits
and adds the digit 3 as the prefix. The second rule inspects the From header. If it
contains the string 2001, then the user part of the To header is modified with the
prepared variable. For example, the user (at 20011234) dials 85262146, which
generates the following substring from the first rule:
♦
$1 85262
♦
$2 146
♦
$3 10.132.10.100;user=phone>
Note that this configuration isolates the last three digits in the dialled number and
prefixes them with 3. The variable now is set to 3146. The second rule does not
use sub-expressions. It simply searches for 2001 in the From header and if there
is a match the user part of the To header is manipulated using the standard
manipulation syntax.
Summary of Contents for MediaPack MP-112
Page 2: ......
Page 14: ...User s Manual 14 Document LTRT 65417 MP 11x MP 124 Reader s Notes ...
Page 21: ...Part I Getting Started with Initial Connectivity ...
Page 22: ......
Page 30: ...User s Manual 30 Document LTRT 65417 MP 11x MP 124 Reader s Notes ...
Page 31: ...Part II Management Tools ...
Page 32: ......
Page 34: ...User s Manual 34 Document LTRT 65417 MP 11x MP 124 Reader s Notes ...
Page 78: ...User s Manual 78 Document LTRT 65417 MP 11x MP 124 Reader s Notes ...
Page 84: ...User s Manual 84 Document LTRT 65417 MP 11x MP 124 Reader s Notes ...
Page 86: ...User s Manual 86 Document LTRT 65417 MP 11x MP 124 Reader s Notes ...
Page 91: ...Part III General System Settings ...
Page 92: ......
Page 102: ...User s Manual 102 Document LTRT 65417 MP 11x MP 124 Reader s Notes ...
Page 103: ...Part IV General VoIP Configuration ...
Page 104: ......
Page 162: ...User s Manual 162 Document LTRT 65417 MP 11x MP 124 Reader s Notes ...
Page 172: ...User s Manual 172 Document LTRT 65417 MP 11x MP 124 Reader s Notes ...
Page 199: ...Part V Gateway Application ...
Page 200: ......
Page 202: ...User s Manual 202 Document LTRT 65417 MP 11x MP 124 Reader s Notes ...
Page 240: ...User s Manual 240 Document LTRT 65417 MP 11x MP 124 Reader s Notes ...
Page 286: ...User s Manual 286 Document LTRT 65417 MP 11x MP 124 Reader s Notes ...
Page 287: ...Part VI Stand Alone Survivability Application ...
Page 288: ......
Page 296: ...User s Manual 296 Document LTRT 65417 MP 11x MP 124 Reader s Notes ...
Page 319: ...Part VII Maintenance ...
Page 320: ......
Page 326: ...User s Manual 326 Document LTRT 65417 MP 11x MP 124 Reader s Notes ...
Page 347: ...Part VIII Status Performance Monitoring and Reporting ...
Page 348: ......
Page 377: ...Part IX Diagnostics ...
Page 378: ......
Page 390: ...User s Manual 390 Document LTRT 65417 MP 11x MP 124 ...
Page 392: ...User s Manual 392 Document LTRT 65417 MP 11x MP 124 Reader s Notes ...
Page 403: ...Part X Appendix ...
Page 404: ......
Page 618: ...User s Manual 618 Document LTRT 65417 MP 11x MP 124 Reader s Notes ...