Hi, I have connected Kamailio like SBC with Teams, and Calls from Teams to Kamailio works..
Now, I have problems with calls from Kamailio to Teams, not works.
How have I send the call? I set record_route_preset, but how send the call to Teams?
Thanks so much
"Teams" is nothing but a set of redundant SIP gateways, so either by setting next hop $du or a more elegant way is ds_select_dst if you're using Dispatcher.
https://www.kamailio.org/docs/modules/5.3.x/modules/dispatcher.html#dispatch...
On Mon, May 4, 2020 at 4:48 AM sip user sipuser404@gmail.com wrote:
Hi, I have connected Kamailio like SBC with Teams, and Calls from Teams to Kamailio works..
Now, I have problems with calls from Kamailio to Teams, not works.
How have I send the call? I set record_route_preset, but how send the call to Teams?
Thanks so much _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Hi Sergiu..
I've configurated dispatcher like this:
modparam("dispatcher", "list_file", "/etc/kamailio/dispatcher.list") modparam("dispatcher", "ds_probing_mode", 1) modparam("dispatcher", "ds_ping_interval", 60) modparam("dispatcher", "flags", 2)
When I try to call to Teams, I have:
record_route_preset("SBC-DNS:5061;transport=tls", "SBC-IP:5060"); add_rr_param(";r2=on"); route(DISPATCH); route(RELAY);
And in route[DISPATCH]
if(!ds_select_dst("1", "0")) { send_reply("404", "No destination"); exit; } xlog("L_INFO","********DISPATCH: VAMOS DE <$ru> VIA <$du>\n******"); t_on_failure("RTF_DISPATCH"); return;
failure_route[RTF_DISPATCH] { if(t_is_canceled()) { exit; } if(t_check_status("500") or (t_branch_timeout() and !t_branch_replied())) { if(ds_next_dst()) { t_on_failure("RTF_DISPATCH"); route(RELAY); exit; } } }
But when I try to call to Teams, always receives 400 Bad request.
Are there any wrong in my kamailio.cfg??
Thanks
El lun., 4 may. 2020 a las 19:59, Sergiu Pojoga (pojogas@gmail.com) escribió:
"Teams" is nothing but a set of redundant SIP gateways, so either by setting next hop $du or a more elegant way is ds_select_dst if you're using Dispatcher.
https://www.kamailio.org/docs/modules/5.3.x/modules/dispatcher.html#dispatch...
On Mon, May 4, 2020 at 4:48 AM sip user sipuser404@gmail.com wrote:
Hi, I have connected Kamailio like SBC with Teams, and Calls from Teams to Kamailio works..
Now, I have problems with calls from Kamailio to Teams, not works.
How have I send the call? I set record_route_preset, but how send the call to Teams?
Thanks so much _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Cfg looks fine to me. I'm no clairvoyant to see why the 400 Bad request, can be anything.
The question "How do I call Teams" in this topic has been answered, leaving the troubleshooting pleasure to you.
On Tue, May 5, 2020 at 5:22 AM sip user sipuser404@gmail.com wrote:
Hi Sergiu..
I've configurated dispatcher like this:
modparam("dispatcher", "list_file", "/etc/kamailio/dispatcher.list") modparam("dispatcher", "ds_probing_mode", 1) modparam("dispatcher", "ds_ping_interval", 60) modparam("dispatcher", "flags", 2)
When I try to call to Teams, I have:
record_route_preset("SBC-DNS:5061;transport=tls", "SBC-IP:5060"); add_rr_param(";r2=on"); route(DISPATCH); route(RELAY);
And in route[DISPATCH]
if(!ds_select_dst("1", "0")) { send_reply("404", "No destination"); exit; } xlog("L_INFO","********DISPATCH: VAMOS DE <$ru> VIA <$du>\n******"); t_on_failure("RTF_DISPATCH"); return;
failure_route[RTF_DISPATCH] { if(t_is_canceled()) { exit; } if(t_check_status("500") or (t_branch_timeout() and !t_branch_replied())) { if(ds_next_dst()) { t_on_failure("RTF_DISPATCH"); route(RELAY); exit; } } }
But when I try to call to Teams, always receives 400 Bad request.
Are there any wrong in my kamailio.cfg??
Thanks
El lun., 4 may. 2020 a las 19:59, Sergiu Pojoga (pojogas@gmail.com) escribió:
"Teams" is nothing but a set of redundant SIP gateways, so either by setting next hop $du or a more elegant way is ds_select_dst if you're using Dispatcher.
https://www.kamailio.org/docs/modules/5.3.x/modules/dispatcher.html#dispatch...
On Mon, May 4, 2020 at 4:48 AM sip user sipuser404@gmail.com wrote:
Hi, I have connected Kamailio like SBC with Teams, and Calls from Teams to Kamailio works..
Now, I have problems with calls from Kamailio to Teams, not works.
How have I send the call? I set record_route_preset, but how send the call to Teams?
Thanks so much _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Hi Sergiu, thanks for your answered and your help.. sorry, I know that I don't send you any information..
I don't know if my problem is in Kamailio routing or in Teams..
Attach the trace, if any can help to try to fix my problem....
U IP-CLIENT:55977 -> SBC-IP:5060 #1 INVITE sip:+324@SBC-IP:5060 SIP/2.0. Via: SIP/2.0/UDP 192.168.1.37:55977 ;branch=z9hG4bK-d8754z-cc1ddf04086f0617-1---d8754z-;rport. Max-Forwards: 70. Contact: sip:1005@IP-CLIENT:55977;rinstance=d27a6c712d24fdaa. To: sip:+324@SBC-IP:5060. From: "1005"sip:1005@SBC-IP:5060;tag=2709ab10. Call-ID: NDQ0OGQ1NDczNTA4ZDYwMDQyNjhkMzY1YTUxODFjNjc.. CSeq: 1 INVITE. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REGISTER, SUBSCRIBE, NOTIFY, REFER, INFO, MESSAGE. Content-Type: application/sdp. Supported: replaces. User-Agent: 3CXPhone 6.0.26523.0. Content-Length: 402. . v=0. o=3cxVCE 34948695 84192900 IN IP4 192.168.1.37. s=3cxVCE Audio Call. c=IN IP4 192.168.1.37. t=0 0. m=audio 40044 RTP/AVP 0 8 3 101. a=rtpmap:0 PCMU/8000. a=rtpmap:8 PCMA/8000. a=rtpmap:3 GSM/8000. a=rtpmap:101 telephone-event/8000. a=fmtp:101 0-15. a=ptime:20. a=sendrecv. m=video 40040 RTP/AVP 34. c=IN IP4 192.168.1.37. a=rtpmap:34 H263/90000. a=fmtp:34 QCIF=1;CIF=1;SQCIF=1;CIF4=1. a=sendrecv.
# U IP-CLIENT:55977 -> SBC-IP:5060 #3 ACK sip:+324@SBC-IP:5060 SIP/2.0. Via: SIP/2.0/UDP 192.168.1.37:55977 ;branch=z9hG4bK-d8754z-cc1ddf04086f0617-1---d8754z-;rport. Max-Forwards: 70. To: sip:+324@SBC-IP:5060;tag=9c964e500fa230af45469f6cd30aca2e.f5d4. From: "1005"sip:1005@SBC-IP:5060;tag=2709ab10. Call-ID: NDQ0OGQ1NDczNTA4ZDYwMDQyNjhkMzY1YTUxODFjNjc.. CSeq: 1 ACK. Content-Length: 0. .
# U IP-CLIENT:55977 -> SBC-IP:5060 #4 INVITE sip:+324@SBC-IP:5060 SIP/2.0. Via: SIP/2.0/UDP 192.168.1.37:55977 ;branch=z9hG4bK-d8754z-dd2ee32c5f34be0e-1---d8754z-;rport. Max-Forwards: 70. Contact: sip:1005@IP-CLIENT:55977;rinstance=d27a6c712d24fdaa. To: sip:+324@SBC-IP:5060. From: "1005"sip:1005@SBC-IP:5060;tag=2709ab10. Call-ID: NDQ0OGQ1NDczNTA4ZDYwMDQyNjhkMzY1YTUxODFjNjc.. CSeq: 2 INVITE. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REGISTER, SUBSCRIBE, NOTIFY, REFER, INFO, MESSAGE. Content-Type: application/sdp. Proxy-Authorization: Digest username="1005",realm="SBC-IP",nonce="XrKkD16youMQcuUoWZ37GidsTva8kHiI",uri="sip:+324@SBC-IP :5060",response="96a1ef1257ebfb5131a535791c828766",algorithm=MD5. Supported: replaces. User-Agent: 3CXPhone 6.0.26523.0. Content-Length: 402. . v=0. o=3cxVCE 34948695 84192900 IN IP4 192.168.1.37. s=3cxVCE Audio Call. c=IN IP4 192.168.1.37. t=0 0. m=audio 40044 RTP/AVP 0 8 3 101. a=rtpmap:0 PCMU/8000. a=rtpmap:8 PCMA/8000. a=rtpmap:3 GSM/8000. a=rtpmap:101 telephone-event/8000. a=fmtp:101 0-15. a=ptime:20. a=sendrecv. m=video 40040 RTP/AVP 34. c=IN IP4 192.168.1.37. a=rtpmap:34 H263/90000. a=fmtp:34 QCIF=1;CIF=1;SQCIF=1;CIF4=1. a=sendrecv.
# U SBC-IP:5060 -> IP-CLIENT:55977 #5 SIP/2.0 100 trying -- your call is important to us. Via: SIP/2.0/UDP 192.168.1.37:55977 ;branch=z9hG4bK-d8754z-dd2ee32c5f34be0e-1---d8754z-;rport=55977;received=IP-CLIENT. To: sip:+324@SBC-IP:5060. From: "1005"sip:1005@SBC-IP:5060;tag=2709ab10. Call-ID: NDQ0OGQ1NDczNTA4ZDYwMDQyNjhkMzY1YTUxODFjNjc.. CSeq: 2 INVITE. Server: kamailio (5.2.1 (x86_64/linux)). Content-Length: 0. .
# U SBC-IP:5060 -> IP-CLIENT:55977 #6 SIP/2.0 400 Bad Request. FROM: "1005"sip:1005@SBC-IP:5060;tag=2709ab10. TO: sip:+324@SBC-IP:5060. CSEQ: 2 INVITE. CALL-ID: NDQ0OGQ1NDczNTA4ZDYwMDQyNjhkMzY1YTUxODFjNjc.. VIA: SIP/2.0/UDP 192.168.1.37:55977 ;received=IP-CLIENT;branch=z9hG4bK-d8754z-dd2ee32c5f34be0e-1---d8754z-;rport=55977. CONTENT-LENGTH: 0. ALLOW: INVITE,ACK,OPTIONS,CANCEL,BYE,NOTIFY. SERVER: Microsoft.PSTNHub.SIPProxy v.2020.4.25.1 i.EUWE.5. .
# U IP-CLIENT:55977 -> SBC-IP:5060 #7 ACK sip:+324@SBC-IP:5060 SIP/2.0. Via: SIP/2.0/UDP 192.168.1.37:55977 ;branch=z9hG4bK-d8754z-dd2ee32c5f34be0e-1---d8754z-;rport. Max-Forwards: 70. To: sip:+324@SBC-IP:5060. From: "1005"sip:1005@SBC-IP:5060;tag=2709ab10. Call-ID: NDQ0OGQ1NDczNTA4ZDYwMDQyNjhkMzY1YTUxODFjNjc.. CSeq: 2 ACK. Content-Length: 0.
If any can help me..... thanks..
El mar., 5 may. 2020 a las 18:26, Sergiu Pojoga (pojogas@gmail.com) escribió:
Cfg looks fine to me. I'm no clairvoyant to see why the 400 Bad request, can be anything.
The question "How do I call Teams" in this topic has been answered, leaving the troubleshooting pleasure to you.
On Tue, May 5, 2020 at 5:22 AM sip user sipuser404@gmail.com wrote:
Hi Sergiu..
I've configurated dispatcher like this:
modparam("dispatcher", "list_file", "/etc/kamailio/dispatcher.list") modparam("dispatcher", "ds_probing_mode", 1) modparam("dispatcher", "ds_ping_interval", 60) modparam("dispatcher", "flags", 2)
When I try to call to Teams, I have:
record_route_preset("SBC-DNS:5061;transport=tls", "SBC-IP:5060"); add_rr_param(";r2=on"); route(DISPATCH); route(RELAY);
And in route[DISPATCH]
if(!ds_select_dst("1", "0")) { send_reply("404", "No destination"); exit; } xlog("L_INFO","********DISPATCH: VAMOS DE <$ru> VIA <$du>\n******"); t_on_failure("RTF_DISPATCH"); return;
failure_route[RTF_DISPATCH] { if(t_is_canceled()) { exit; } if(t_check_status("500") or (t_branch_timeout() and !t_branch_replied())) { if(ds_next_dst()) { t_on_failure("RTF_DISPATCH"); route(RELAY); exit; } } }
But when I try to call to Teams, always receives 400 Bad request.
Are there any wrong in my kamailio.cfg??
Thanks
El lun., 4 may. 2020 a las 19:59, Sergiu Pojoga (pojogas@gmail.com) escribió:
"Teams" is nothing but a set of redundant SIP gateways, so either by setting next hop $du or a more elegant way is ds_select_dst if you're using Dispatcher.
https://www.kamailio.org/docs/modules/5.3.x/modules/dispatcher.html#dispatch...
On Mon, May 4, 2020 at 4:48 AM sip user sipuser404@gmail.com wrote:
Hi, I have connected Kamailio like SBC with Teams, and Calls from Teams to Kamailio works..
Now, I have problems with calls from Kamailio to Teams, not works.
How have I send the call? I set record_route_preset, but how send the call to Teams?
Thanks so much _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users