Log In
Developer Network
Technologies
Join the Network
Member Services
Events & Community
Unified Communications Manager SIP (SIP) Developer Center
Overview
Documentation
Community
Wiki
Testing
Everything
This Site
Blogs
9.1 SIP Documentation Now Available
Adrienne Moherek
10 Jan 2013
Unified Communications 9.0 Partner Bundle Offer Now Available to Order
Amanda Whaley
21 Sep 2012
Update - Silent Monitoring/Recording Supported Devices
George Gary
31 Aug 2012
Developer Partner 2012 US Update Presentations Available
George Gary
29 Jun 2012
Developer Partner 2012 London Update Presentations Available
George Gary
10 Feb 2012
Showing 1 - 5 of 21 results.
Items per Page 5
Page
(Changing the value of this field will reload the page.)
1
2
3
4
5
of 5
First
Previous
Next
Last
Forums
Message Boards Home
Recent Posts
Statistics
Answer
(
Unmark
)
Mark as an Answer
« Back to SIP Transparency and Normalization Questions
Delete the top-most diversion header or change order of Multiple Diversion
Threads [
Previous
|
Next
]
Rune Heggelund
Posts:
4
Join Date:
1/20/09
Recent Posts
Delete the top-most diversion header or change order of Multiple Diversion
Answer
11/8/11 5:22 AM
Mark as an Answer
Submit
Reply with Quote
Quick Reply
I want to change how a voicemail system treats a diverted call.
Calls that are diverted multiple times and eventually sent to a voicemail system are presented with the mailbox for the last forwarding party.
I need a script that makes the voicemail system play the original called numbers mailbox.
For INVITEs received on a SIP trunk, the following behavior applies:
¿ If multiple diversion headers are present in the incoming message, the bottom-most diversion header determines the original called number. The top-most diversion header determines the last forwarding party and diversion reason.
I need to either change the order, or to delete all Diversion headers but the bottom-most diversion header.
Diversion: "nn" <sip:4981@172.29.1.12>;reason=unconditional;privacy=off;screen=yes
Diversion: "nn" <sip:4983@172.29.1.12>;reason=unconditional;privacy=off;screen=yes
Diversion: "nn" <sip:4986@172.29.1.12>;reason=unconditional;privacy=off;screen=yes
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
Charles Ragan
Posts:
6
Join Date:
9/25/11
Recent Posts
RE: Delete the top-most diversion header or change order of Multiple Divers
Answer
11/8/11 6:13 AM as a reply to Rune Heggelund.
Mark as an Answer
Submit
Reply with Quote
Quick Reply
Rune - what is your call flow?
What is your voicemail system?
Charles
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
Rune Heggelund
Posts:
4
Join Date:
1/20/09
Recent Posts
RE: Delete the top-most diversion header or change order of Multiple Divers
Answer
11/8/11 2:14 PM as a reply to Charles Ragan.
Mark as an Answer
Submit
Reply with Quote
Quick Reply
Hi!
This is an attendant system (Trio Enterprise).
The system is not able to interoperate the diversion header different. I need a SIP Normalization Scripts that change the header.
Support both diversion and history header.
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
Charles Ragan
Posts:
6
Join Date:
9/25/11
Recent Posts
RE: Delete the top-most diversion header or change order of Multiple Divers
Answer
11/8/11 6:59 PM as a reply to Rune Heggelund.
Mark as an Answer
Submit
Reply with Quote
Quick Reply
Okay, but the call flow is what?
pstn-----sip----cucm-----sip?------trio-vmail
Is your integration from cucm to trio a sip trunk as well?
Obviously, this will determine where you apply your script.
Also, the next thing you need to do is set up a place where you can make packet captures. This will give you an idea of what values you have for attempting to repopulate the dh with the original called number.
For example, a way to reach back into the originally called number, may be the PAI header. At this point, you could possibly do logic similar to:
-gather pai header
-remove dh
-add dh
-repopulate dh with pai
A lot will depend on your call flow.
Charles
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
Rune Heggelund
Posts:
4
Join Date:
1/20/09
Recent Posts
RE: Delete the top-most diversion header or change order of Multiple Divers
Answer
11/8/11 7:30 PM as a reply to Charles Ragan.
Mark as an Answer
Submit
Reply with Quote
Quick Reply
Thank you for replying.
The setup is as follow;
pstn-----sip----cucm-----sip------trio-vmail
I can apply the script at the outgoing invite to the trio-vmail.
I still need some help to create the script.
Here is what sendt in the Invite header;
Diversion: "nn" <sip:4981@172.29.1.12>;reason=unconditional;privacy=off;screen=yes
Diversion: "nn" <sip:4983@172.29.1.12>;reason=unconditional;privacy=off;screen=yes
Diversion: "nn" <sip:4986@172.29.1.12>;reason=unconditional;privacy=off;screen=yes
If I convert the diversion headers into History-Info headers for outbound INVITE messages. And then remove the Diversion header. This is what I got;
M = {}
function M.outbound_INVITE(msg)
if msg:getHeader("Diversion")
then
msg:convertDiversionToHI()
msg:removeHeader("Diversion")
end
end
return M
History-Info: <sip:4980@172.29.1.12?Reason=sip;cause=302;text="unconditional">;index=1
History-Info: <sip:4981@172.29.1.12?Reason=sip;cause=302;text="unconditional">;index=1.1
History-Info: <sip:9999@172.29.1.17:5060>;index=1.1.1
The Trio System understands both diversion headers and History-Info headers.
If I first convert the diversion headers into History-Info headers, then I got information I need in index=1.
If I now remove all other index lines everything should be ok.
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
Charles Ragan
Posts:
6
Join Date:
9/25/11
Recent Posts
RE: New Message from Rune Heggelund in Cisco Unified Communications Manager
Answer
11/8/11 8:28 PM as a reply to Rune Heggelund.
Mark as an Answer
Submit
Reply with Quote
Quick Reply
Ahh..okay. So trio can¿t choose between 1st redirect or last redirect? ¿
In the values below ¿ what is the numbering scheme for the ¿nn¿ on the dh¿s?
From: Cisco Developer Community Forums [mailto:cdicuser@developer.cisco.com]
Sent: Tuesday, November 08, 2011 1:30 PM
To: cdicuser@developer.cisco.com
Subject: New Message from Rune Heggelund in Cisco Unified Communications Manager SIP (SIP) - SIP Transparency and Normalization Questions: RE: Delete the top-most diversion header or change order of Multiple Divers
Rune Heggelund has created a new message in the forum "SIP Transparency and Normalization Questions":
--------------------------------------------------------------
Thank you for replying.
The setup is as follow;
pstn-----sip----cucm-----sip------trio-vmail
I can apply the script at the outgoing invite to the trio-vmail.
I still need some help to create the script.
Here is what sendt in the Invite header;
Diversion: "nn" <sip:4981@172.29.1.12>;reason=unconditional;privacy=off;screen=yes
Diversion: "nn" <sip:4983@172.29.1.12>;reason=unconditional;privacy=off;screen=yes
Diversion: "nn" <sip:4986@172.29.1.12>;reason=unconditional;privacy=off;screen=yes
If I convert the diversion headers into History-Info headers for outbound INVITE messages. And then remove the Diversion header. This is what I got;
M = {}
function M.outbound_INVITE(msg)
if msg:getHeader("Diversion")
then
msg:convertDiversionToHI()
msg:removeHeader("Diversion")
end
end
return M
History-Info: <sip:4980@172.29.1.12?Reason=sip;cause=302;text="unconditional">;index=1
History-Info: <sip:4981@172.29.1.12?Reason=sip;cause=302;text="unconditional">;index=1.1
History-Info: <sip:9999@172.29.1.17:5060>;index=1.1.1
The Trio System understands both diversion headers and History-Info headers.
If I first convert the diversion headers into History-Info headers, then I got information I need in index=1.
If I now remove all other index lines everything should be ok.
--
To respond to this post, please click the following link:
<http://developer.cisco.com/web/sip/forums/-/message_boards/view_message/4725147>
or simply reply to this email.
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
Charles Ragan
Posts:
6
Join Date:
9/25/11
Recent Posts
RE: New Message from Charles Ragan in Cisco Unified Communications Manager
Answer
11/8/11 8:56 PM as a reply to Charles Ragan.
Mark as an Answer
Submit
Reply with Quote
Quick Reply
Rune ¿ if the pai is there (it would be the original To: I believe) ¿ you should be able to do something similar to...
M = {}
function M.outbound_INVITE(msg)
local uri = msg:getUri("P-Asserted-Identity")
msg:removeHeader("Diversion")
msg:addHeader("Diversion", uri)
end
return M
Rune Heggelund has created a new message in the forum "SIP Transparency and Normalization Questions":
--------------------------------------------------------------
Thank you for replying.
The setup is as follow;
pstn-----sip----cucm-----sip------trio-vmail
I can apply the script at the outgoing invite to the trio-vmail.
I still need some help to create the script.
Here is what sendt in the Invite header;
Diversion: "nn" <sip:4981@172.29.1.12>;reason=unconditional;privacy=off;screen=yes
Diversion: "nn" <sip:4983@172.29.1.12>;reason=unconditional;privacy=off;screen=yes
Diversion: "nn" <sip:4986@172.29.1.12>;reason=unconditional;privacy=off;screen=yes
If I convert the diversion headers into History-Info headers for outbound INVITE messages. And then remove the Diversion header. This is what I got;
M = {}
function M.outbound_INVITE(msg)
if msg:getHeader("Diversion")
then
msg:convertDiversionToHI()
msg:removeHeader("Diversion")
end
end
return M
History-Info: <sip:4980@172.29.1.12?Reason=sip;cause=302;text="unconditional">;index=1
History-Info: <sip:4981@172.29.1.12?Reason=sip;cause=302;text="unconditional">;index=1.1
History-Info: <sip:9999@172.29.1.17:5060>;index=1.1.1
The Trio System understands both diversion headers and History-Info headers.
If I first convert the diversion headers into History-Info headers, then I got information I need in index=1.
If I now remove all other index lines everything should be ok.
--
To respond to this post, please click the following link:
<http://developer.cisco.com/web/sip/forums/-/message_boards/view_message/4725147>
or simply reply to this email.
--
To respond to this post, please click the following link:
<http://developer.cisco.com/web/sip/forums/-/message_boards/view_message/4727040>
or simply reply to this email.
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
Collateral
No files available