[SR-Users] Kamailio LCR rule matching

Ali Taher ataher at vanrise.com
Tue Jun 2 12:40:17 CEST 2015


Hi,

 

I'm using LCR module in Kamailio , where matching of the rule (From-URI in
LCR-rule table) is currently based on user part of sip address in From field
(highlighted below in blue).

While we need to change the identification to be on the otg value sent in
the sip address in From field (highlighted below in yellow).

 

INVITE sip:86532917453592 at 172.16.5.108:5060
<http://sip:86532917453592@172.16.5.108:5060>  SIP/2.0

Via: SIP/2.0/UDP 172.16.5.112:5060;branch=z9hG4bK1sansay9906915rdb2243

Via: SIP/2.0/UDP 216.53.4.5:5060;branch=z9hG4bK_1852370774_4741_1

Record-Route: <sip:sansay9906915rdb2243 at 172.16.5.112:5060;lr;transport=udp>

To: <sip:86532917453592 at 69.41.186.186:5060
<http://sip:86532917453592@69.41.186.186:5060> >

From: <sip: <http://sip:+249964642906@216.53.4.5:5060>
+249964642906 at 216.53.4.5:5060;otg=024050>;tag=1852370774_C

Call-ID:
sbcsipuac.2_169.132.137.51_b55sb12_1_1_2015052909455960_1852370774_487698

CSeq: 1 INVITE

Contact: <sip:+249964642906 at 216.53.4.5:5060
<http://sip:+249964642906@216.53.4.5:5060> >

P-Asserted-Identity: <sip:+249964642906 at 216.53.4.5:5060
<http://sip:+249964642906@216.53.4.5:5060> >

Privacy: none

User-Agent: VCS  5.9.2.42-01

Allow: INVITE, ACK, CANCEL, BYE

Max-Forwards: 69

Content-Length: 0

 

How can we achieve this ?

 

Any help will be appreciated.

 

Regards,

Ali

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150602/37a5c869/attachment.html>


More information about the sr-users mailing list