170
Views
0
Helpful
0
Comments

Options
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
on 01-24-2014 02:31 PM
This document was generated from CDN thread
Created by: John Schlimgen on 16-08-2011 03:23:00 PM
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.
Subject: RE: SIP Normalization Script - Insert Plus for a varable length dial plan
Replied by: Yossi Ben Hagai on 08-09-2011 03:37:39 PM
You can try something like the below (haven't tested it):
Regards,
Yossi.
Created by: John Schlimgen on 16-08-2011 03:23:00 PM
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.
Subject: RE: SIP Normalization Script - Insert Plus for a varable length dial plan
Replied by: Yossi Ben Hagai on 08-09-2011 03:37:39 PM
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
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.
Labels: