<html><body>That fixed the hangup issue. Thank you very much. I’d’ve never spotted that in a million years of looking.<BR>
<BR>
Odd that the audio worked at all though<BR>
<BR>
I’m still confused as to why the Teams can route out but the pbx cannot route back. Other than adding the Record route I’m not doing anything different between them<BR>
<BR>
if (is_method("INVITE") && !has_totag() && check_source_address(0)) {<BR>
xlog("[ROUTE]Incoming call to MS: RURI=$ruri, SI=$si, M=$rm\n");<BR>
strip(1);<BR>
prefix("+44");<BR>
record_route_preset("sbc.ip-sentinel.com:5091;transport=tls", "137.117.136.143:5060");<BR>
add_rr_param(";r2=on");<BR>
$rd="sip.pstnhub.microsoft.com";<BR>
$rp=5061;<BR>
route(relay);<BR>
} else if (is_method("INVITE") && ! has_totag() && !check_source_address(0)) {<BR>
record_route();<BR>
xlog("[ROUTE]Incoming call from MS: RURI=$ruri, SI=$si, M=$rm\n");<BR>
$rd="pbx.ip-sentinel.com";<BR>
$rp=5081;<BR>
route(relay);<BR>
<br>
<p style="font-family: Open Sans,sans-serif;">
<b><span style="font-family: Open Sans,sans-serif; font-size:10.0pt;color:#888888">James Hogbin</span></b>
<b><span style="font-family: Open Sans,sans-serif;font-size:8.0pt;color:#888888;"><br>Director</span></b>
</p>
<table border="0" cellspacing="0" cellpadding="0"><tr><td><a href="http://ip-sentinel.com"><IMG border="0" alt="IP Sentinel Logo" src="cid:120050722070100123@uk-mta-170.uk.mimecast.lan" ></A></td></tr></table>
<span style="font-family: Open Sans,sans-serif;font-size:8.0pt;color:#222222;"><br>t. <a href="tel:+442030114150" target="_blank">+44 (0)20 3011 4150</a><br></span><span style="font-family: Open Sans,sans-serif;font-size:8.0pt;color:#222222;">m. +44 7786910895<br></span><span style="font-family: Open Sans,sans-serif;font-size:8.0pt;color:#222222">w. <a href="https://www.ip-sentinel.com/" target="_blank">https://www.ip-sentinel.com</a><br></span><table>
<tbody><tr>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
</tbody></table>
<br>
<BR>
> On 7 May 2020, at 20:57, Alexey Vasilyev <alexei.vasilyev@gmail.com> wrote:<BR>
> <BR>
> Ok James,<BR>
> <BR>
> Can you please look at your config with more attention:<BR>
> <BR>
> if(has_body("application/sdp")){<BR>
> xlog("[RTPPROXY] route[relay] we have sdp on this message\n$rm\n");<BR>
> rtpproxy_offer("co", "137.117,136.143");<BR>
> }<BR>
> <BR>
> }<BR>
> <BR>
> xlog("[INFO] Method=$rm, RURI=$ruri, SI=$si ,DU=$du\n");<BR>
> if (!t_relay()) {<BR>
> send_reply(500,"Internal Error");<BR>
> }<BR>
> exit;<BR>
> }<BR>
> <BR>
> onreply_route[handle_nat] {<BR>
> xlog("[INFO] onreply_route[handle_nat]: RR=$rr, RS=$rs, SI=$si\n$mb\n");<BR>
> # we receive a reply, we need to check about application/sdp<BR>
> # on our body, if we have, we answer that<BR>
> if(is_method("ACK") && has_body("application/sdp")){<BR>
> xlog("[RTPPROXY] onreply_route[handle_nat] ACK rtpproxy_answer\n");<BR>
> rtpproxy_answer("co", "137.117,136.143");<BR>
> }<BR>
> <BR>
> and change comma to point.<BR>
> May be this can help?<BR>
> <BR>
> <BR>
> <BR>
> <BR>
> -----<BR>
> ---<BR>
> Alexey Vasilyev<BR>
> --<BR>
> Sent from: <a href="http://opensips-open-sip-server.1449251.n2.nabble.com/OpenSIPS-Users-f1449235.html" target="_blank">http://opensips-open-sip-server.1449251.n2.nabble.com/OpenSIPS-Users-f1449235.html</a><BR>
> <BR>
> _______________________________________________<BR>
> Users mailing list<BR>
> <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><BR>
> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><BR>
<p style="font-family: Open Sans, Arial, sans-serif;padding: 5px;background:#D5EAFF">
<span style="font-family: Open Sans,sans-serif;font-size:8.0pt;color:red">IP Sentinel Disclaimer <br></span>
<span style="font-family: Open Sans,sans-serif;font-size:6.0pt;color:black">The information contained in this e-mail, and any attachment, is confidential and is intended solely for the use of the intended recipient. Access, copying or re-use of the e-mail or any attachment, or any information contained therein, by any other person is not authorized. Unintended recipients are prohibited from taking action on the basis of information in this e-mail. If you are not the intended recipient or have received this email in error, please notify the sender immediately by return email and delete the email from your computer.
E-mail messages may contain computer viruses or other defects, may not be accurately replicated on other systems, or may be intercepted, deleted or interfered with without the knowledge of the sender or the intended recipient. We do not guarantee that either are virus-free and accept no liability for any damage sustained as a result of computer viruses or other defects.
. IP Sentinel Ltd is a limited company registered in England and Wales under Registered Number 08648097. Registered Office: Newnhams Wood, Horsted Keynes, West Sussex, RH17 7BT. </span>
</p><span style="font-size:1.0pt;color:white">Q3dhRSrm_disclaimer</span>
</body></html>