<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>Thanks in advance if anyone can point me in the correct direction .<o:p></o:p></p><p class=MsoNormal>I have kamailio running in front of some asterisk VM’s.  SIP endpoint register to their asterisk PBX via Kamailio dispatcher module. I’m running rtpengine with a Wan and private interface to bridge audio stream between these endpoints on the WAN to asterisk PBX running on LAN IP behind Kamailio.<o:p></o:p></p><p class=MsoNormal>Calls from ext to ext work fine audio both directions , calls outbound to PSTN via SIP trunk to SIP provider via trunk on asterisk work fine audio both directions. But incoming calls via SIP provider I only get audio on stream from asterisk registered ext to external caller , no audio from external caller to the asterisk ext.<o:p></o:p></p><p class=MsoNormal>I reckon I have something wrong in my Kamailio.cfg . if I register an ext direct to asterisk I get audio both ways on incoming calls. And rtp logs from rtpenegine show it as trying to send the rtp to the private address of the sip endpoint rather that its WAN address.<o:p></o:p></p><p class=MsoNormal>I think my mistake in somewhere in the cfg below. <o:p></o:p></p><p class=MsoNormal>Do I need to handle invites from the backend asterisk servers different that invites from sip endpoints?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='text-autospace:none'><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@01D2B857.0F3717A0" 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>