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
Parsing capabilities in CUCM LUA
Threads [
Previous
|
Next
]
Christa Sherker
Posts:
1
Join Date:
9/8/11
Recent Posts
Parsing capabilities in CUCM LUA
Answer
9/8/11 4:34 PM
Mark as an Answer
Submit
Reply with Quote
Quick Reply
<pre>We need to utilize LUA to manipulate SIP headers for interoperability
with our SIP trunking provider.
We need the ability to parse the first 6 digits of the From URI-user field of the INVITE
header. Does anyone know of any documentation on the parsing capabilities of the LUA
scripting or any modules that can be added to support this. Thanks.
</pre>
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: Parsing capabilities in CUCM LUA
Answer
9/8/11 8:07 PM as a reply to Christa Sherker.
Mark as an Answer
Submit
Reply with Quote
Quick Reply
Hi,
The this calling party number manipulation functionality you have described can be achieved with number translation on the CUCM admin GUI.
However, doing it with normalization script should be just as easy, for example to add a prefix of "1" to the 6 leftmost digits, the following script should do the trick (never actually tested this one):
1
2
M = {}
3
function M.inbound_INVITE(msg)
4
msg:applyNumberMask("From", "1XXXXXX")
5
end
6
return M
The Lua environment on CUCM does not include all standard Lua libraries, fortunately you have the
string manipulation library
at hand if you want to go freestyle.
Regards,
Yossi.
Sign in to vote.
Flag
Please sign in to flag this as inappropriate.
Top
Collateral
No files available