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
SIP Normalization Script - Insert Plus for a varable length dial plan
Threads [
Previous
|
Next
]
John Schlimgen
Posts:
1
Join Date:
10/11/10
Recent Posts
SIP Normalization Script - Insert Plus for a varable length dial plan
Answer
8/16/11 8:23 PM
Mark as an Answer
Submit
Reply with Quote
Quick Reply
Can anyone help out? I need to insert a Plus in the the Diversion header User field. The Mask fields listed are all fixed length. The client has a veraible length dial plan.
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
Yossi Ben Hagai
Posts:
4
Join Date:
5/16/11
Recent Posts
RE: SIP Normalization Script - Insert Plus for a varable length dial plan
Answer
9/8/11 8:37 PM as a reply to John Schlimgen.
Mark as an Answer
Submit
Reply with Quote
Quick Reply
You can try something like the below (haven't tested it):
1
2
M = {}
3
function M.outbound_INVITE(msg)
4
local div = msg:getHeader("Diversion")")
5
local uri = string.gsub(div, "<", "<+")
6
msg:modifyHeader("Diversion")", uri)
7
end
8
return M
Regards,
Yossi.
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
Collateral
No files available