[OpenSIPS-Users] OpenSIPS as Teams SBC

James Hogbin james at ip-sentinel.com
Thu May 7 21:06:57 EST 2020


That fixed the hangup issue.  Thank you very much.  I’d’ve never spotted that in a million years of looking.

Odd that the audio worked at all though

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

if (is_method("INVITE") && !has_totag() && check_source_address(0)) {
     		xlog("[ROUTE]Incoming call to MS: RURI=$ruri, SI=$si, M=$rm\n");
       		strip(1);
        	prefix("+44");
        	record_route_preset("sbc.ip-sentinel.com:5091;transport=tls", "137.117.136.143:5060");
        	add_rr_param(";r2=on");
                $rd="sip.pstnhub.microsoft.com";
                $rp=5061;
        	route(relay);
    	} else if (is_method("INVITE") && ! has_totag() && !check_source_address(0)) {
        	record_route();
        	xlog("[ROUTE]Incoming call from MS: RURI=$ruri, SI=$si, M=$rm\n");
        	$rd="pbx.ip-sentinel.com";
        	$rp=5081;
        	route(relay);

James Hogbin
Director 
 
IP Sentinel 
t. +44 (0)20 3011 4150
m. +44 7786910895
w. https://www.ip-sentinel.com

> On 7 May 2020, at 20:57, Alexey Vasilyev <alexei.vasilyev at gmail.com> wrote:
> 
> Ok James,
> 
> Can you please look at your config with more attention:
> 
> if(has_body("application/sdp")){
> xlog("[RTPPROXY] route[relay] we have sdp on this message\n$rm\n");
> rtpproxy_offer("co", "137.117,136.143");
> }
> 
> }
> 
> xlog("[INFO] Method=$rm, RURI=$ruri, SI=$si ,DU=$du\n");
> if (!t_relay()) {
> send_reply(500,"Internal Error");
> }
> exit;
> }
> 
> onreply_route[handle_nat] {
> xlog("[INFO] onreply_route[handle_nat]: RR=$rr, RS=$rs, SI=$si\n$mb\n");
> # we receive a reply, we need to check about application/sdp
> # on our body, if we have, we answer that
> if(is_method("ACK") && has_body("application/sdp")){
> xlog("[RTPPROXY] onreply_route[handle_nat] ACK rtpproxy_answer\n");
> rtpproxy_answer("co", "137.117,136.143");
> }
> 
> and change comma to point.
> May be this can help?
> 
> 
> 
> 
> -----
> ---
> Alexey Vasilyev
> --
> Sent from: http://opensips-open-sip-server.1449251.n2.nabble.com/OpenSIPS-Users-f1449235.html
> 
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

IP Sentinel Disclaimer 
This communication is for the information of the person to whom it has been delivered and neither it nor any of its contents should be passed on to or used by any other person. 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. 
Disclaimer: Q3dhRSrm_disclaimer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20200507/d6962eb7/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 120050722070100423.png
Type: image/png
Size: 3317 bytes
Desc: not available
URL: <http://lists.opensips.org/pipermail/users/attachments/20200507/d6962eb7/attachment.png>


More information about the Users mailing list