<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Century Gothic";
        panose-1:2 11 5 2 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-IE link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal>Hi <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I’m looking to check if what I’m trying to configure is feasible .<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>UA -> WAN(X.X.X.X) -> Kamailio(LAN 192.X.X.148) -> internal PBX(LAN 192.X.X.131)<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I have a WN IP forwarded to and internal Kamailio server which is sitting in front of an asterisk server. SIP requests are sent to asterisk from Kamailio via dispatcher .<o:p></o:p></p><p class=MsoNormal>SIP client can register via WAN and Kamailio to asterisk , I have rtpenine configured as below.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>/usr/sbin/rtpengine --interface=192.X.X.148!X.X.X.X --listen-ng=7722 --timeout=60 --silent-timeout=3600 --pidfile=/var/run/ngcp-rtpengine-daemon.pid --table=0 --log-level=6 --log-facility=local7 --log-facility-rtcp=local7 --homer=192.168.200.5:9060 --homer-protocol=udp --homer-id=2002<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>But SIP SDP when sent to asterisk is still show the WAN IP of the Sip client in the SDP offer that goes to asterisk , ive tried adding parameter “<em><span style='font-family:"Calibri",sans-serif'>via-branch=” </span></em><em><span style='font-family:"Calibri",sans-serif;font-style:normal'>and “</span></em><em><span style='font-family:"Calibri",sans-serif'>auto-bridge” </span></em><em><span style='font-family:"Calibri",sans-serif;font-style:normal'>to rtpengine_offer but they don’t seem to make a difference , is there anyone way I can force the SDP offer that goes to the backend PBX to use the IP of Kamailio server that rtpengine is running on rather that the WAN IP that I’m advertising(X.X.X.X) ?<o:p></o:p></span></em></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Example SIP SDP from WAN client to asterisk <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><b><span style='color:red'>INVITE</span></b> sip:*97@sip.domain.com;transport=UDP SIP/2.0<o:p></o:p></p><p class=MsoNormal> Via: SIP/2.0/UDP Client-IP:29345;branch=<b><span style='color:green'>z9hG4bK-524287-1---e38082af1f110ad1</span></b>;rport Max-Forwards: 70 <o:p></o:p></p><p class=MsoNormal>Contact: <sip:21@Client-IP:29345;transport=UDP> To: <sip:*97@sip.domain.com;transport=UDP> <o:p></o:p></p><p class=MsoNormal>From: <sip:21@sip.domain.com;transport=UDP>;tag=<b><span style='color:red'>e637343b</span></b> <o:p></o:p></p><p class=MsoNormal>Call-ID: <b><span style='color:blue'>jvqeIB9f48_OGcTq0UxP7w..</span></b> <o:p></o:p></p><p class=MsoNormal>CSeq: 2 <b><span style='color:red'>INVITE</span></b> Allow: <b><span style='color:red'>INVITE</span></b>, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE <o:p></o:p></p><p class=MsoNormal>Content-Type: application/sdp <o:p></o:p></p><p class=MsoNormal>User-Agent: Zoiper rv2.8.40 <o:p></o:p></p><p class=MsoNormal>o=Z <o:p></o:p></p><p class=MsoNormal>0 0 IN IP4 Client-IP <o:p></o:p></p><p class=MsoNormal>s=Z <o:p></o:p></p><p class=MsoNormal>c=IN IP4 Client-IP <o:p></o:p></p><p class=MsoNormal>t=0 0 <o:p></o:p></p><p class=MsoNormal>m=audio 29344 RTP/AVP 8 0 101 <o:p></o:p></p><p class=MsoNormal>a=rtpmap:101 telephone-event/8000 <o:p></o:p></p><p class=MsoNormal>a=fmtp:101 0-16 <o:p></o:p></p><p class=MsoNormal>a=sendrecv<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>and SDP that Kamailio sends to asterisk <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><b><span style='color:red'>INVITE</span></b> sip:*97@sip.domain.com;transport=UDP SIP/2.0 <o:p></o:p></p><p class=MsoNormal>Record-Route: <sip:192.X.X.148;lr> <o:p></o:p></p><p class=MsoNormal>Via: SIP/2.0/UDP 192.X.X.148;branch=<b><span style='color:green'>z9hG4bKd924.bcc4248735b53e9cf783c87c81dfee28.0</span></b> <o:p></o:p></p><p class=MsoNormal>Via: SIP/2.0/UDP Client-IP:29345;received=Client-IP;branch=z9hG4bK-524287-1---e38082af1f110ad1;rport=29345 Max-Forwards: 69 <o:p></o:p></p><p class=MsoNormal>Contact: <sip:21@Client-IP:29345;transport=UDP> To: <sip:*97@sip.domain.com;transport=UDP> <o:p></o:p></p><p class=MsoNormal>From: <sip:21@sip.domain.com;transport=UDP>;tag=<b><span style='color:red'>e637343b</span></b> <o:p></o:p></p><p class=MsoNormal>Call-ID: <b><span style='color:blue'>jvqeIB9f48_OGcTq0UxP7w..</span></b> <o:p></o:p></p><p class=MsoNormal>CSeq: 2 <b><span style='color:red'>INVITE</span></b> Allow: <b><span style='color:red'>INVITE</span></b>, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE <o:p></o:p></p><p class=MsoNormal>Content-Type: application/sdp User-Agent: Zoiper rv2.8.40 <o:p></o:p></p><p class=MsoNormal> Path: <sip:192.X.X.148;lr;received=sip:Client-IP:29345> <o:p></o:p></p><p class=MsoNormal>v=0 <o:p></o:p></p><p class=MsoNormal>o=Z 0 0 IN IP4 Client-IP <o:p></o:p></p><p class=MsoNormal>s=Z c=IN IP4 X.X.X.X <o:p></o:p></p><p class=MsoNormal>t=0 0 <o:p></o:p></p><p class=MsoNormal>m=audio 32550 RTP/AVP 8 0 101 <o:p></o:p></p><p class=MsoNormal>a=rtpmap:101 telephone-event/8000 <o:p></o:p></p><p class=MsoNormal>a=fmtp:101 0-16 <o:p></o:p></p><p class=MsoNormal>a=sendrecv <o:p></o:p></p><p class=MsoNormal>a=rtcp:32551 <o:p></o:p></p><p class=MsoNormal>a=ice-ufrag:Dwd23Dem <o:p></o:p></p><p class=MsoNormal>a=ice-pwd:9Itp6Cq7lkYJxMkeDeA1I2kkzw <o:p></o:p></p><p class=MsoNormal>a=candidate:KZyzUR5lXJJpt1Et 1 UDP 2130706431 X.X.X.X 32550 typ host a=candidate:KZyzUR5lXJJpt1Et 2 UDP 2130706430 X.X.X.X 32551 typ host<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><b><span lang=NL style='font-size:12.0pt;font-family:"Century Gothic",sans-serif;color:#4D4D4D;mso-fareast-language:EN-IE'>Gerry Kernan</span></b><span lang=NL style='font-size:12.0pt;font-family:"Century Gothic",sans-serif;color:#4D4D4D;mso-fareast-language:EN-IE'><o:p></o:p></span></p><p class=MsoNormal><span lang=NL style='font-size:10.0pt;font-family:"Century Gothic",sans-serif;color:gray;mso-fareast-language:EN-IE'> <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Century Gothic",sans-serif;color:gray;mso-fareast-language:EN-IE'><img width=172 height=51 id="Picture_x0020_3" src="cid:image001.jpg@01D2DA29.2F5A5850" alt="cid:image001.jpg@01D105A5.2701B0E0"><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Century Gothic",sans-serif;color:gray;mso-fareast-language:EN-IE'><o:p> </o:p></span></p><p class=MsoNormal style='line-height:115%'><b><span style='font-size:10.0pt;line-height:115%;font-family:"Century Gothic",sans-serif;color:#4D4D4D;mso-fareast-language:EN-IE'>Infinity IT   |   17 The Mall   |   Beacon Court   |   Sandyford   |   Dublin D18 E3C8   |   Ireland<o:p></o:p></span></b></p><p class=MsoNormal style='line-height:115%'><b><span style='font-size:10.0pt;line-height:115%;font-family:"Century Gothic",sans-serif;color:#4D4D4D;mso-fareast-language:EN-IE'>Tel:  +353 - (0)1 - 293 0090   |   E-Mail:  </span></b><span style='font-size:10.0pt;line-height:115%;font-family:"Century Gothic",sans-serif;mso-fareast-language:EN-IE'><a href="mailto:gerry.kernan@infinityit.ie"><span style='color:#0563C1'>gerry.kernan@infinityit.ie</span></a><b><span style='color:red'><o:p></o:p></span></b></span></p><p class=MsoNormal style='line-height:115%'><b><span style='font-size:10.0pt;line-height:115%;font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:EN-IE'><o:p> </o:p></span></b></p><p class=MsoNormal style='line-height:115%'><b><span style='font-size:10.0pt;line-height:115%;font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:EN-IE'>Managed IT Services<u>       </u>Infinity IT</span></b><span style='font-size:10.0pt;line-height:115%;font-family:"Century Gothic",sans-serif;color:red;mso-fareast-language:EN-IE'> </span><span style='font-size:10.0pt;line-height:115%;font-family:"Century Gothic",sans-serif;color:#4D4D4D;mso-fareast-language:EN-IE'>- </span><span style='font-size:12.0pt;line-height:115%;mso-fareast-language:EN-IE'><a href="http://www.infinityit.ie/"><span style='font-size:10.0pt;line-height:115%;font-family:"Century Gothic",sans-serif;color:#0563C1'>www.infinityit.ie</span></a></span><span style='font-size:10.0pt;line-height:115%;font-family:"Century Gothic",sans-serif;color:#4D4D4D;mso-fareast-language:EN-IE'><o:p></o:p></span></p><p class=MsoNormal style='line-height:115%'><b><span style='font-size:10.0pt;line-height:115%;font-family:"Century Gothic",sans-serif;color:#767171;mso-fareast-language:EN-IE'>IP Telephony<u>                    </u>Asterisk Consulting</span></b><span style='font-size:10.0pt;line-height:115%;font-family:"Century Gothic",sans-serif;color:#767171;mso-fareast-language:EN-IE'> </span><span style='font-size:10.0pt;line-height:115%;font-family:"Century Gothic",sans-serif;color:#4D4D4D;mso-fareast-language:EN-IE'>– </span><span style='font-size:12.0pt;line-height:115%;mso-fareast-language:EN-IE'><a href="http://www.asteriskconsulting.com"><span style='font-size:10.0pt;line-height:115%;font-family:"Century Gothic",sans-serif;color:#0563C1'>www.asteriskconsulting.com</span></a></span><span style='font-size:10.0pt;line-height:115%;font-family:"Century Gothic",sans-serif;color:#4D4D4D;mso-fareast-language:EN-IE'><o:p></o:p></span></p><p class=MsoNormal style='line-height:115%'><b><span style='font-size:10.0pt;line-height:115%;font-family:"Century Gothic",sans-serif;color:#FF8A15;mso-fareast-language:EN-IE'>Contact Centre<u>                </u>Total Interact</span></b><span style='font-size:10.0pt;line-height:115%;font-family:"Century Gothic",sans-serif;color:#FFC000;mso-fareast-language:EN-IE'> </span><span style='font-size:10.0pt;line-height:115%;font-family:"Century Gothic",sans-serif;color:#4D4D4D;mso-fareast-language:EN-IE'>– </span><span style='font-size:12.0pt;line-height:115%;mso-fareast-language:EN-IE'><a href="http://www.totalinteract.com"><span style='font-size:10.0pt;line-height:115%;font-family:"Century Gothic",sans-serif;color:#0563C1'>www.totalinteract.com</span></a></span><span style='font-size:10.0pt;line-height:115%;font-family:"Century Gothic",sans-serif;color:#4D4D4D;mso-fareast-language:EN-IE'><o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>