Blogs

Check out the new content on the Cisco Developer Network reflecting the New & Enhanced features in Cisco Unified Communication Manager 9.1.

See the new 9.1 SIP Documentation ...Read More

 

The Unified Communications 9.0 Partner Bundle packages Cisco’s Collaboration application software for our Collaboration partner community to leverage for their internal lab or demonstration systems. The 9.0 version is now available for order. Learn More >> ...Read More

 

Silent Monitoring & Recording Partners:

Please review the latest updates to our supported device matrix here: http://developer.cisco.com/web/sip/wikidocs

Regards,

George Gary, Product Manager ...Read More

 

Developer Partners,

Cisco announces the availability of our 2012 Developer Partner presentations shared at CiscoLive San Diego.

Please log into the Cisco Developer Network using your Partner UserID to download this content.

Access these presentations here: http://developer.cisco.com/web/cdc/devforumpreso PARTNER LOGIN REQUIRED
...Read More

 

Developer Partners,

Cisco announces the availability of our 2012 Developer Partner presentations shared at CiscoLive London.

Please log into the Cisco Developer Network using your Partner UserID to download this content.

Access these presentations here: http://developer.cisco.com/web/cdc/devforumpreso PARTNER LOGIN REQUIRED
...Read More

 

Showing 1 - 5 of 21 results.
Items per Page 5
of 5

Forums

« Back to SIP Transparency and Normalization Questions

SIP Normalization Script - Insert Plus for a varable length dial plan

Combination View Flat View Tree View
Threads [ Previous | Next ]
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.

You can try something like the below (haven't tested it):
1
2M = {}
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
8return M


Regards,
Yossi.

Collateral


No files available