Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Noprint
Panel
borderColorgreen
bgColortransparent
borderWidth2

Back to Table of Contents

Back to SIP Services

Back to SIP Message Manipulation

Back to SMM Examples

 

This rule involves the following actions.

...

Code Block
languagenone
set profiles signaling sipAdaptorProfile "DIVERSION_ADD" rule "1"
set profiles signaling sipAdaptorProfile "DIVERSION_ADD" rule "1" applyMatchHeader "one"
set profiles signaling sipAdaptorProfile "DIVERSION_ADD" rule "1" criterion "1" type "message"
set profiles signaling sipAdaptorProfile "DIVERSION_ADD" rule "1" criterion "1" message messageTypes "request" methodTypes "invite"
set profiles signaling sipAdaptorProfile "DIVERSION_ADD" rule "1" criterion "2" type "header"
set profiles signaling sipAdaptorProfile "DIVERSION_ADD" rule "1" criterion "2" header name "From" condition "exist" hdrInstance "all"
set profiles signaling sipAdaptorProfile "DIVERSION_ADD" rule "1" criterion "3" type "token"
set profiles signaling sipAdaptorProfile "DIVERSION_ADD" rule "1" criterion "3" token condition "regex-match" tokenType "uriusername"
set profiles signaling sipAdaptorProfile "DIVERSION_ADD" rule "1" criterion "3" token regexp string "^(\+?1)?(8(00|44|55|66|77|88)[2-9]\d{6})$"
 
set profiles signaling sipAdaptorProfile "DIVERSION_ADD" rule "1" action "1" type "variable" operation "store"
set profiles signaling sipAdaptorProfile "DIVERSION_ADD" rule "1" action "1" from type "value" value "tollfree"
set profiles signaling sipAdaptorProfile "DIVERSION_ADD" rule "1" action "1" to type "variable" variableValue "var1" variableScopeValue "local"
 
set profiles signaling sipAdaptorProfile "DIVERSION_ADD" rule "2"
set profiles signaling sipAdaptorProfile "DIVERSION_ADD" rule "2" applyMatchHeader "one"
set profiles signaling sipAdaptorProfile "DIVERSION_ADD" rule "2" criterion "1" type "message"
set profiles signaling sipAdaptorProfile "DIVERSION_ADD" rule "2" criterion "1" message messageTypes "request" methodTypes "invite"
set profiles signaling sipAdaptorProfile "DIVERSION_ADD" rule "2" criterion "2" type "variable"
set profiles signaling sipAdaptorProfile "DIVERSION_ADD" rule "2" criterion "2" variable condition "has-value" variableID "var1" value "tollfree"
set profiles signaling sipAdaptorProfile "DIVERSION_ADD" rule "2" criterion "3" type "header"
set profiles signaling sipAdaptorProfile "DIVERSION_ADD" rule "2" criterion "3" header name "Diversion" condition "absent" hdrInstance "all"
 
set profiles signaling sipAdaptorProfile "DIVERSION_ADD" rule "2" action "1" type "header" operation "add" headerPosition "first"
set profiles signaling sipAdaptorProfile "DIVERSION_ADD" rule "2" action "1" to type "header" value "Diversion"
set profiles signaling sipAdaptorProfile "DIVERSION_ADD" rule "2" action "1" from type "header" value sip:6022826398@105553004000@10.9310.196100.19512;reason=unknown;privacy=off

...

Code Block
languagenone
INVITE sip:6029774112@105551234567@10.9310.107100.2810 SIP/2.0
Via: SIP/2.0/UDP 10.9710.13100.1311;branch=z9hG4bK883050be30F7072B
From: "CharlesJohn SchwabDoe" sip:8004354000@108005551000@10.9710.13100.1311;tag=BE07D554-EB9ADD71
To: sip:6029774112@105551234567@10.9310.107100.2810
CSeq: 1 INVITE
Call-ID: 34045e80-54dc09fd-192eb6e2@10.9710.13100.1311
Contact: sip:6023842702@105557654321@10.9710.13100.1311
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, INFO, MESSAGE, SUBSCRIBE, NOTIFY, PRACK, UPDATE, REFER
User-Agent: PolycomVVX-VVX_600-UA/5.0.1.4068
Accept-Language: en
Supported: 100rel,replaces
Allow-Events: conference,talk,hold
Max-Forwards: 70
Content-Type: application/sdp
Content-Length: 353

...

Code Block
languagenone
INVITE sip:6029774112@1725551234567@172.3100.150000.113000:5073 SIP/2.0
Diversion: sip:6022826398@105553004000@10.9310.196100.19512;reason=unknown;privacy=off
Via: SIP/2.0/UDP 10.9310.196100.19512:5060;branch=z9hG4bK00Befc6712f6c9974d7
From: "CharlesJohn SchwabDoe" sip:8004354000@108005551000@10.9310.196100.19512;tag=gK002bbbdf
To: sip:6029774112@1725551234567@172.3100.150000.113000
Call-ID: 77417777_58493185@1077777777@10.9310.196100.19512
CSeq: 835645375 INVITE
Max-Forwards: 70
Allow: INVITE,ACK,CANCEL,BYE,REFER,NOTIFY,PRACK,OPTIONS
Accept: application/sdp, application/isup, application/dtmf, application/dtmf-relay,  multipart/mixed
Contact: "80043540008005551000" sip:6023842702@105557654321@10.9310.196100.19512:5060
Supported: timer,100rel,precondition,replaces
Session-Expires: 1800
Min-SE: 90
Content-Length:  248
Content-Disposition: session; handling=required
Content-Type: application/sdp 

...