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.
Содержание MediaPack MP-112
Страница 2: ......
Страница 14: ...User s Manual 14 Document LTRT 65417 MP 11x MP 124 Reader s Notes ...
Страница 21: ...Part I Getting Started with Initial Connectivity ...
Страница 22: ......
Страница 30: ...User s Manual 30 Document LTRT 65417 MP 11x MP 124 Reader s Notes ...
Страница 31: ...Part II Management Tools ...
Страница 32: ......
Страница 34: ...User s Manual 34 Document LTRT 65417 MP 11x MP 124 Reader s Notes ...
Страница 78: ...User s Manual 78 Document LTRT 65417 MP 11x MP 124 Reader s Notes ...
Страница 84: ...User s Manual 84 Document LTRT 65417 MP 11x MP 124 Reader s Notes ...
Страница 86: ...User s Manual 86 Document LTRT 65417 MP 11x MP 124 Reader s Notes ...
Страница 91: ...Part III General System Settings ...
Страница 92: ......
Страница 102: ...User s Manual 102 Document LTRT 65417 MP 11x MP 124 Reader s Notes ...
Страница 103: ...Part IV General VoIP Configuration ...
Страница 104: ......
Страница 162: ...User s Manual 162 Document LTRT 65417 MP 11x MP 124 Reader s Notes ...
Страница 172: ...User s Manual 172 Document LTRT 65417 MP 11x MP 124 Reader s Notes ...
Страница 199: ...Part V Gateway Application ...
Страница 200: ......
Страница 202: ...User s Manual 202 Document LTRT 65417 MP 11x MP 124 Reader s Notes ...
Страница 240: ...User s Manual 240 Document LTRT 65417 MP 11x MP 124 Reader s Notes ...
Страница 286: ...User s Manual 286 Document LTRT 65417 MP 11x MP 124 Reader s Notes ...
Страница 287: ...Part VI Stand Alone Survivability Application ...
Страница 288: ......
Страница 296: ...User s Manual 296 Document LTRT 65417 MP 11x MP 124 Reader s Notes ...
Страница 319: ...Part VII Maintenance ...
Страница 320: ......
Страница 326: ...User s Manual 326 Document LTRT 65417 MP 11x MP 124 Reader s Notes ...
Страница 347: ...Part VIII Status Performance Monitoring and Reporting ...
Страница 348: ......
Страница 377: ...Part IX Diagnostics ...
Страница 378: ......
Страница 390: ...User s Manual 390 Document LTRT 65417 MP 11x MP 124 ...
Страница 392: ...User s Manual 392 Document LTRT 65417 MP 11x MP 124 Reader s Notes ...
Страница 403: ...Part X Appendix ...
Страница 404: ......
Страница 618: ...User s Manual 618 Document LTRT 65417 MP 11x MP 124 Reader s Notes ...
Страница 622: ...User s Manual Ver 6 6 www audiocodes com ...