[SR-Users] Remving ISUB tag in FROM field

Alex rsm alex-rsm at hotmail.com
Fri Sep 10 21:30:39 CEST 2010


Hi,

Our openSER proxy is receiving SIP messages from PBX devices. The PBX includes its extension in the FROM field of the SIP message. 
Is there any function in the openSER to strip off the PBX extension (anything after username and before @domain)?

Is uac_replace_from( ) function is the right one?

3d:13h:41m:33s INVITE sip:888-555-1212 at 10.0.0.1;user=phone SIP/2.0
Via: SIP/2.0/UDP 10.5.0.1;branch=z9hG4bKac1169001476
Max-Forwards: 70
From: <sip:8885551212;isub=37313132 at 10.5.0.1.>;tag=1c1168990861
To: <sip:8665551212 at 10.0.0.1;user=phone>
Call-ID: 1168989994392010134133 at 10.0.0.1
CSeq: 1 INVITE
Contact: <sip:4075857112 at 10.5.0.1>
Supported: em,timer,replaces,path,resource-priority,sdp-anat
Allow: REGISTER,OPTIONS,INVITE,ACK,CANCEL,BYE,NOTIFY,PRACK,REFER,INFO,SUBSCRIBE,UPDATE
User-Agent: CS-Pelloni/v.5.60A.021.004
Content-Type: application/sdp
Content-Length: 261Thanks,
AR
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20100910/9063a870/attachment-0001.htm>


More information about the sr-users mailing list