...
Configure the SBC1000/2000
Select the new Message Manipulation entry in the navigation tree
Panel |
---|
|
Caption |
---|
0 | Figure |
---|
1 | Select Message Manipulation |
---|
| Image Modified |
|
Add a SIP Message Rule Table
Panel |
---|
|
Caption |
---|
0 | Figure |
---|
1 | Add SIP Message Rule Table |
---|
| Image Modified |
|
Set how the rule will be applied. It can be applied to All SIP Messages, only Requests, only Responses, or Selected Messages.
Panel |
---|
|
Caption |
---|
0 | Figure |
---|
1 | Applicable Messages |
---|
| Image Modified |
|
Add an entry to the new table.
Image Removed |
Caption |
---|
| Image Added |
|
Set
Set the Header Action to Modify and the Header Name to P-Asserted-Identity. As you can see, any SIP Header can be manipulated.
Panel |
---|
|
Caption |
---|
0 | Figure |
---|
1 | Set Header Action and Name |
---|
| Image Modified |
|
To set the new PAI value, click Add/Edit...
Panel |
---|
|
Caption |
---|
| Image Modified |
|
... and add the new value in the Edit Message Field
Image Removed Panel |
---|
|
Caption |
---|
0 | Figure |
---|
1 | Edit Message Field |
---|
| Image Added |
|
Click OK to
Click OK to complete adding the entry to the table.
Panel |
---|
|
Caption |
---|
| Image Modified |
|
In the SG, Enable the Message Manipulation
Panel |
---|
|
Caption |
---|
0 | Figure |
---|
1 | Enable Message Manipulation |
---|
| Image Modified |
|
Add the new Message Manipulation to the
Outbound Message Manipulation Outbound Message Manipulation Table
Panel |
---|
|
Caption |
---|
0 | Figure |
---|
1 | Add Message Table |
---|
| Image Modified |
|
...
Debugging Output
In the debugging output below, you can see the PAI change from +15103644064 to 555
...
By adding a Conditional Rule to the Message Rule, you can perform the manipulation only when it matches a particular condition. In the example below, the PAI would only be modified if the call is from +15103644064.
Add a Conditional Rule Table entry
Panel |
---|
|
Caption |
---|
0 | Figure |
---|
1 | Add Conditional Rule Table Entry |
---|
| Image Modified |
|
Add the Description and set the Match Type from the pulldown. In this case, we're looking to match the calling number, which is represented by the from.uri.userinfo.user token.
Panel |
---|
|
Caption |
---|
0 | Figure |
---|
1 | Add Description and Match Type |
---|
| Image Modified |
|
Set the Operation to Equals. Set the Match Value Type to Literal and put the number to be matched into
the Match Value.the Match Value.
Panel |
---|
|
Caption |
---|
| Image Modified |
|
With the Match information configured, it's time to modify the Message Rule so that it only runs when the Condition is met. In the Message Rule, click the Condition Expression Add/Edit button.
Panel |
---|
|
Caption |
---|
| Image Modified |
|
Set it for Match All Conditions and select the Conditional Rule you just finished programming in the previous steps. Click Apply.
Panel |
---|
|
Caption |
---|
0 | Figure |
---|
1 | Message Rule Condition |
---|
| Image Modified |
|
Click Apply to complete the update to the Message Rule.
Panel |
---|
|
Caption |
---|
0 | Figure |
---|
1 | Update Message Rule |
---|
| Image Modified |
|
Important Notes
Info |
---|
The SIP Header feature cannot generate a new SIP packet. Only arriving or leaving SIP packets changed via the SIP Header function. |