Skip to content

SIP Trunk Diversion Header Modification

April 28, 2011

Certain Service Providers expect the call originated from theirs own validated DID ANI. And if we need to make a call originated from non validated number through the SIP trunk then we need to use a Diversion header to bypass the limitation.
Eg.

– Phone A’s DID is 4108887777 which is registered to Service provider A
– SIP service is with Service Provider B which allocates DID range of 202888XXXX
when phone A makes an outbound call then the call gets dropped at Service provider B sip server. This is because the SIP server is expecting the call originated from the specified range only 202888XXXX

voice class sip-profiles 2
request INVITE sip-header Diversion add “Diversion: <sip:2028881111@>;privacy=off;reason=deflection;screen=yes”

dial-peer voice 100 voip
destination-pattern [2-9]..[2-9]……
voice-class codec 1
voice-class sip g729 annexb-all
voice-class sip early-offer forced
voice-class sip profiles 2
session protocol sipv2
session target ipv4:
dtmf-relay rtp-nte sip-notify
no vad

a.a.a.a = local CUBE router IP
xx.xx.xx.xx = service provider SIP server
debug ccsip messages

INVITE sip:+1234567890@XX.XX.XX.XX:5060 SIP/2.0
Via: SIP/2.0/UDP a.a.a.a:5060;branch=z9hG4bK121DBAB28
Remote-Party-ID: ;party=calling;screen=yes;privacy=off
From: ;tag=E4492450-FF1
To:
Date: Thu, 28 Apr 2011 19:03:31 GMT
Call-ID: AD48393-710111E0-9564EA07-56006A3D@10.7.1.4
Supported: 100rel,timer,resource-priority,replaces
Min-SE: 1800
Cisco-Guid: 181619371-1895895520-2506025479-1442867773
User-Agent: Cisco-SIPGateway/IOS-12.x
Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTER
CSeq: 101 INVITE
Timestamp: 1304017411
Contact:
Call-Info: ;method=”NOTIFY;Event=telephone-event;Duration=2000″
Diversion: ;privacy=off;reason=deflection;screen=yes
Max-Forwards: 69
Session-Expires: 86400
Content-Type: application/sdp
Content-Disposition: session;handling=required
Content-Length: 258
Diversion: ;

Advertisements
No comments yet

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: