<html><head></head><body><div class="ydpa720637fyahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:10px;"><div><div dir="ltr" data-setdir="false">Hi All,</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Sorry for the trouble. issue was beyond opensips. the forwarding asterisk server forks the call to both opensips and to another endpoint, the second endpoint answers the call hence asterisk sends a CANCEL to opensips to cancel the ongoing transaction towards teams which makes sense now, Everything working as expected. <br></div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Thank you.<br></div><div><br></div><div class="ydpa720637fsignature"><div><div><font style="BACKGROUND-COLOR:#e6e6e6;"></font> </div><div><font style="BACKGROUND-COLOR:#e6e6e6;"></font> </div><div><font style="BACKGROUND-COLOR:#e6e6e6;"></font> </div><div><font style="BACKGROUND-COLOR:#e6e6e6;"></font> </div><div><font style="BACKGROUND-COLOR:#e6e6e6;"></font> </div><div><font style="BACKGROUND-COLOR:#e6e6e6;"></font> </div><div><font style="BACKGROUND-COLOR:#e6e6e6;"></font> </div><div><font style="BACKGROUND-COLOR:#e6e6e6;"></font> </div><div><font style="BACKGROUND-COLOR:#e6e6e6;"></font> </div><div><font style="BACKGROUND-COLOR:#e6e6e6;"></font> </div><div><font style="BACKGROUND-COLOR:#e6e6e6;"></font> </div><div><font style="BACKGROUND-COLOR:#e6e6e6;">Distinguishing <font color="#0000ff"><strong>What</strong></font> && <font color="#ff007f"><strong>How</strong></font> !</font></div></div></div></div>
<div><br></div><div><br></div>
</div><div id="yahoo_quoted_1073852003" class="yahoo_quoted">
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
<div>
On Thursday, 2 September 2021, 06:40:16 pm GMT+5:30, Pasan Meemaduma <pasan_5@yahoo.com> wrote:
</div>
<div><br></div>
<div><br></div>
<div><div id="yiv7961707184"><div><div class="yiv7961707184ydp1d2e08e6yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:10px;"><div dir="ltr"><div>Hi Guys,</div><div><br clear="none"></div><div dir="ltr">upon further checking I'm seeing opensips sending a CANCEL as while microsoft teams replying with a 100 Trying. Is this I'm missing something for multi-tenancy in opensips config? I can even see a 180 Ringing coming but it appears opensips cancelling the transaction right after it send the INVITE to teams. Following is my opensips.cfg for aliases. I tried adding the second domain as an alias too, but it has no effect.</div><div dir="ltr"><br clear="none"></div><div dir="ltr"><span>Thank you</span><br clear="none"></div><div dir="ltr"><br clear="none"></div><div dir="ltr">/etc/opensips.cfg</div><div dir="ltr"><br clear="none"></div><div dir="ltr"><div>auto_aliases=no<br clear="none">alias=tls:voippabx.cloud:5061<br clear="none">alias=tls:pasanm.voippabx.cloud:5061<br clear="none">alias=udp:172.31.36.39:5060<br clear="none"><br clear="none">listen=tls:172.31.36.39:5061<br clear="none">listen=udp:172.31.36.39:5060 # CUSTOMIZE ME<br clear="none">advertised_address=x.x.x.x<br clear="none"><br clear="none"><br clear="none"></div><div><br clear="none"></div><div dir="ltr"><div>#### Transaction Module<br clear="none">loadmodule "tm.so"<br clear="none">modparam("tm", "fr_timeout", 15)<br clear="none">modparam("tm", "fr_inv_timeout", 90)<br clear="none">modparam("tm", "restart_fr_on_each_reply", 0)<br clear="none">modparam("tm", "onreply_avp_mode", 1)<br clear="none">modparam("tm", "via1_matching", 0)<br clear="none">modparam("tm", "ruri_matching", 0)<br clear="none"><br clear="none"></div><div><br clear="none"></div><div dir="ltr"><div>modparam("tls_mgm", "certificate", "/etc/opensips/tls/default.crt")<br clear="none">modparam("tls_mgm", "private_key","/etc/opensips/tls/default.key")<br clear="none">modparam("tls_mgm", "ca_list", "/etc/opensips/tls/ca-default.crt")<br clear="none">modparam("tls_mgm", "ca_dir", "/etc/ssl/certs/")<br clear="none">modparam("tls_mgm","verify_cert", "1")<br clear="none">modparam("tls_mgm","require_cert", "1")<br clear="none"><br clear="none">modparam("tls_mgm", "server_domain", "dom1=172.31.36.39:5061")<br clear="none">modparam("tls_mgm","verify_cert", "[dom1]0")<br clear="none">modparam("tls_mgm","require_cert", "[dom1]1")<br clear="none">modparam("tls_mgm","tls_method", "[dom1]TLSv1_2")<br clear="none">modparam("tls_mgm","certificate", "[dom1]/etc/tls/voippabx.cloud/voippabx.cloud.crt")<br clear="none">modparam("tls_mgm","private_key", "[dom1]/etc/tls/voippabx.cloud/voippabx.cloud.key")<br clear="none">modparam("tls_mgm", "ca_list", "[dom1]/etc/tls/voippabx.cloud/voippabx.cloud-ca.crt")<br clear="none">modparam("tls_mgm", "ca_dir", "[dom1]/etc/ssl/certs/")<br clear="none">modparam("tls_mgm", "tls_handshake_timeout", 3000)<br clear="none">modparam("proto_tls", "tls_max_msg_chunks", 4048)<br clear="none"><br clear="none"><br clear="none"></div><div dir="ltr">--- fail call log of inbound call to teams ---<br clear="none"></div></div></div></div><div dir="ltr"><br clear="none"></div><div dir="ltr"><div> [29809] DBG:proto_tls:tls_update_fd: New fd is 73<br clear="none"> [29809] DBG:proto_tls:tls_write: write was successful (1240 bytes)<br clear="none"> [29809] DBG:proto_tls:proto_tls_send: after write: c= 0x7fa175ec28e8 n=1240 fd=73<br clear="none"> [29809] DBG:proto_tls:proto_tls_send: buf=<br clear="none"> INVITE sip:+xxxxxxxxxxx@sip.pstnhub.microsoft.com SIP/2.0<br clear="none"> Record-Route: <sip:pasanm.voippabx.cloud:5061;transport=tls;ftag=as0e54f44e;lr;r2=on><br clear="none"> Record-Route: <sip:172.31.36.39:5060;ftag=as0e54f44e;lr;r2=on><br clear="none"> Via: SIP/2.0/TLS a.a.a.a:5061;branch=z9hG4bKa8.655a009.0;i=0599f386<br clear="none"> Via: SIP/2.0/TLS b.b.b.b:5061;received=b.b.b.b;branch=z9hG4bK4449b234;rport=34212<br clear="none"> Max-Forwards: 69<br clear="none"> From: "Private" <sip:0000000000@b.b.b.b>;tag=as0e54f44e<br clear="none"> To: <sip:+xxxxxxxxxxx@msteamssbc.voippabx.cloud><br clear="none"> Contact: <sip:0000000000@b.b.b.b:5061;transport=tls><br clear="none"> Call-ID: 6f4643c21ba3b6f921fbbbbb63f9ab06@b.b.b.b:5061<br clear="none"> CSeq: 102 INVITE<br clear="none"> User-Agent: Asterisk PBX 16.2.1~dfsg-1+deb10u2<br clear="none"> Date: Thu, 02 Sep 2021 11:14:53 GMT<br clear="none"> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE<br clear="none"> Supported: replaces<br clear="none"> Content-Type: application/sdp<br clear="none"> Content-Length: 339<br clear="none"> #015<br clear="none"> v=0<br clear="none"> o=root 698222221 698222221 IN IP4 b.b.b.b<br clear="none"> s=Asterisk PBX 16.2.1~dfsg-1+deb10u2<br clear="none"> c=IN IP4 b.b.b.b<br clear="none"> t=0 0<br clear="none"> m=audio 11364 RTP/SAVP 8 101<br clear="none"> a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:EQ71mHmln2YJHJn8ujv0J/v+MiH6XJlfv7lSiXsv<br clear="none"> a=rtpmap:8 PCMA/8000<br clear="none"> a=rtpmap:101 telephone-event/8000<br clear="none"> a=fmtp:101 0-16<br clear="none"> a=maxptime:150<br clear="none"> a=sendrecv<br clear="none"> [29809] DBG:tm:insert_timer_unsafe: [0]: 0x7fa175f4c480 (939)<br clear="none"> [29809] DBG:tm:do_t_cleanup: transaction 0x7fa175f4c230 already updated! Skipping update!<br clear="none"> [29809] DBG:tm:t_unref: UNREF_UNSAFE: [0x7fa175f4c230] after is 0<br clear="none"> [29809] DBG:core:destroy_avp_list: destroying list (nil)<br clear="none"> [29809] DBG:core:receive_msg: cleaning up<br clear="none"> [29809] DBG:proto_tls:tls_read_req: tls_read_req end<br clear="none"> [29809] DBG:proto_tls:tls_read_req: Using the global ( per process ) buff<br clear="none"> [29809] DBG:proto_tls:tls_update_fd: New fd is 5<br clear="none"> [29809] DBG:proto_tls:_tls_read: 460 bytes read<br clear="none"> [29809] DBG:proto_tls:tcp_handle_req: content-length= 0<br clear="none"> [29809] DBG:proto_tls:tcp_handle_req: Nothing more to read on TCP conn 0x7fa175ea5000, currently in state 0<br clear="none"> [29809] DBG:core:parse_msg: SIP Request:<br clear="none"> [29809] DBG:core:parse_msg: method: <CANCEL><br clear="none"> [29809] DBG:core:parse_msg: uri: <sip:+xxxxxxxxxxx@msteamssbc.voippabx.cloud><br clear="none"> [29809] DBG:core:parse_msg: version: <SIP/2.0><br clear="none"> [29809] DBG:core:parse_headers: flags=ffffffffffffffff<br clear="none"> [29809] DBG:core:parse_via_param: found param type 232, <branch> = <z9hG4bK4449b234>; state=6<br clear="none"> [29809] DBG:core:parse_via_param: found param type 235, <rport> = <n/a>; state=17<br clear="none"> [29809] DBG:core:parse_via: end of header reached, state=5<br clear="none"> [29809] DBG:core:parse_headers: via found, flags=ffffffffffffffff<br clear="none"> [29809] DBG:core:parse_headers: this is the first via<br clear="none"> [29809] DBG:core:_parse_to: end of header reached, state=10<br clear="none"> [29809] DBG:core:_parse_to: display={}, ruri={sip:+xxxxxxxxxxx@msteamssbc.voippabx.cloud}<br clear="none"> [29809] DBG:core:get_hdr_field: <To> [46]; uri=[sip:+xxxxxxxxxxx@msteamssbc.voippabx.cloud]<br clear="none"> [29809] DBG:core:get_hdr_field: to body [<sip:+xxxxxxxxxxx@msteamssbc.voippabx.cloud><br clear="none"> ]<br clear="none"> [29809] DBG:core:get_hdr_field: cseq <CSeq>: <102> <CANCEL><br clear="none"> [29809] DBG:core:get_hdr_field: content_length=0<br clear="none"> [29809] DBG:core:get_hdr_field: found end of header<br clear="none"> [29809] DBG:core:receive_msg: After parse_msg...<br clear="none"> [29809] DBG:core:receive_msg: preparing to run routing scripts...<br clear="none"> [29809] DBG:maxfwd:is_maxfwd_present: value = 70<br clear="none"> [29809] DBG:core:parse_headers: flags=78<br clear="none"> [29809] DBG:tm:t_lookupOriginalT: searching on hash entry 138<br clear="none"> [29809] DBG:tm:matching_3261: RFC3261 transaction matched, tid=4449b234<br clear="none"> [29809] DBG:tm:t_lookupOriginalT: canceled transaction found (0x7fa175f4c230)!<br clear="none"> [29809] DBG:tm:t_lookupOriginalT: REF_UNSAFE:[0x7fa175f4c230] after is 1<br clear="none"> [29809] DBG:tm:t_lookupOriginalT: t_lookupOriginalT completed<br clear="none"> [29809] DBG:uri:has_totag: no totag<br clear="none"> [29809] DBG:core:parse_headers: flags=78<br clear="none"> [29809] DBG:tm:t_newtran: transaction on entrance=0xffffffffffffffff<br clear="none"> [29809] DBG:core:parse_headers: flags=ffffffffffffffff<br clear="none"> [29809] DBG:core:parse_headers: flags=78<br clear="none"> [29809] DBG:tm:t_lookup_request: start searching: hash=138, isACK=0<br clear="none"> [29809] DBG:tm:matching_3261: RFC3261 transaction matching failed<br clear="none"> [29809] DBG:tm:t_lookup_request: no transaction found<br clear="none"> [29809] DBG:core:MD5StringArray: MD5 calculated: 691657b3333bfaff8b58f9a39aceccad<br clear="none"> [29809] DBG:core:parse_headers: flags=ffffffffffffffff<br clear="none"> [29809] DBG:core:_shm_resize: resize(0) called<br clear="none"> [29809] DBG:tm:cleanup_uac_timers: RETR/FR timers reset<br clear="none"> [29809] DBG:tm:insert_timer_unsafe: [2]: 0x7fa175f6d250 (929)<br clear="none"> [29809] DBG:core:tcp_conn_get: con found in state 0<br clear="none"> [29809] DBG:core:tcp_conn_get: tcp connection found (0x7fa175ea5000) already in this process ( 14 ) , fd = 5<br clear="none"> [29809] DBG:proto_tls:proto_tls_send: sending via fd 5...<br clear="none"> [29809] DBG:proto_tls:tls_update_fd: New fd is 5<br clear="none"> [29809] DBG:proto_tls:tls_write: write was successful (415 bytes)<br clear="none"> [29809] DBG:proto_tls:proto_tls_send: after write: c= 0x7fa175ea5000 n=415 fd=5<br clear="none"> [29809] DBG:proto_tls:proto_tls_send: buf=<br clear="none"> SIP/2.0 200 canceling<br clear="none"> Via: SIP/2.0/TLS b.b.b.b:5061;received=b.b.b.b;branch=z9hG4bK4449b234;rport=34212<br clear="none"> From: "Private" <sip:0000000000@b.b.b.b>;tag=as0e54f44e<br clear="none"> To: <sip:+xxxxxxxxxxx@msteamssbc.voippabx.cloud>;tag=b731-691657b3333bfaff8b58f9a39aceccad<br clear="none"> Call-ID: 6f4643c21ba3b6f921fbbbbb63f9ab06@b.b.b.b:5061<br clear="none"> CSeq: 102 CANCEL<br clear="none"> Server: OpenSIPS (2.4.8 (x86_64/linux))<br clear="none"> Content-Length: 0<br clear="none"> #015<br clear="none"> [29809] DBG:tm:_reply_light: reply sent out. buf=0x7fa17de3dfa0: SIP/2.0 2..., shmem=0x7fa175f07700: SIP/2.0 2<br clear="none"> [29811] DBG:core:parse_msg: SIP Reply (status):<br clear="none"> [29811] DBG:core:parse_msg: version: <SIP/2.0><br clear="none"> [29811] DBG:core:parse_msg: status: <100><br clear="none"> [29811] DBG:core:parse_msg: reason: <Trying><br clear="none"> [29811] DBG:core:parse_headers: flags=ffffffffffffffff<br clear="none"> [29811] DBG:core:_parse_to: end of header reached, state=10<br clear="none"> [29811] DBG:core:_parse_to: display={}, ruri={sip:+xxxxxxxxxxx@msteamssbc.voippabx.cloud}<br clear="none"> [29811] DBG:core:get_hdr_field: <TO> [46]; uri=[sip:+xxxxxxxxxxx@msteamssbc.voippabx.cloud]<br clear="none"> [29811] DBG:core:get_hdr_field: to body [<sip:+xxxxxxxxxxx@msteamssbc.voippabx.cloud><br clear="none"> ]<br clear="none"> [29811] DBG:core:get_hdr_field: cseq <CSEQ>: <102> <INVITE><br clear="none"> [29811] DBG:core:parse_via_param: found param type 232, <branch> = <z9hG4bKa8.655a009.0>; state=6<br clear="none"> [29811] DBG:core:parse_via_param: found param type 236, <i> = <0599f386>; state=9<br clear="none"> [29811] DBG:core:parse_via: next_via<br clear="none"> [29811] DBG:core:parse_via_param: found param type 234, <received> = <b.b.b.b>; state=6<br clear="none"> [29811] DBG:core:parse_via_param: found param type 232, <branch> = <z9hG4bK4449b234>; state=6<br clear="none"> [29811] DBG:core:parse_via_param: found param type 235, <rport> = <34212>; state=16<br clear="none"> [29811] DBG:core:parse_via: end of header reached, state=5<br clear="none"> [29811] DBG:core:parse_headers: via found, flags=ffffffffffffffff<br clear="none"> [29811] DBG:core:parse_headers: this is the first via<br clear="none"> [29811] DBG:core:get_hdr_field: content_length=0<br clear="none"> [29811] DBG:core:get_hdr_field: found end of header<br clear="none"> [29811] DBG:core:receive_msg: After parse_msg...<br clear="none"> [29811] DBG:core:forward_reply: found module tm, passing reply to it<br clear="none"> [29811] DBG:tm:t_check: start=0xffffffffffffffff<br clear="none"> [29811] DBG:core:parse_headers: flags=22<br clear="none"> [29811] DBG:core:parse_headers: flags=8<br clear="none"> [29811] DBG:tm:t_reply_matching: hash 138 label 151037270 branch 0<br clear="none"> [29811] DBG:tm:t_reply_matching: REF_UNSAFE:[0x7fa175f4c230] after is 1<br clear="none"> [29811] DBG:tm:t_reply_matching: reply matched (T=0x7fa175f4c230)!<br clear="none"> [29811] DBG:tm:t_check: end=0x7fa175f4c230<br clear="none"> [29811] DBG:tm:reply_received: org. status uas=100, uac[0]=0 local=0 is_invite=1)<br clear="none"> [29811] incoming reply: RR=Trying, RS=100, SI=52.114.16.74 CI=6f4643c21ba3b6f921fbbbbb63f9ab06@b.b.b.b:5061<br clear="none"> [29811] DBG:tm:build_local: using FROM=<From: "Private" <sip:0000000000@b.b.b.b>;tag=as0e54f44e<br clear="none"> >, TO=<To: <sip:+xxxxxxxxxxx@msteamssbc.voippabx.cloud><br clear="none"> >, CSEQ_N=<CSeq: 102><br clear="none"> [29811] DBG:tm:cancel_branch: sending cancel...<br clear="none"> [29811] DBG:core:tcp_conn_get: con found in state 0<br clear="none"> [29811] DBG:core:tcp_conn_get: tcp connection found (0x7fa175ec28e8) already in this process ( 16 ) , fd = 5<br clear="none"> [29811] DBG:proto_tls:proto_tls_send: sending via fd 5...<br clear="none"> [29811] DBG:proto_tls:tls_update_fd: New fd is 5<br clear="none"> [29811] DBG:proto_tls:tls_write: write was successful (398 bytes)<br clear="none"> [29811] DBG:proto_tls:proto_tls_send: after write: c= 0x7fa175ec28e8 n=398 fd=5<br clear="none"> [29811] DBG:proto_tls:proto_tls_send: buf=<br clear="none"> CANCEL sip:+xxxxxxxxxxx@sip.pstnhub.microsoft.com SIP/2.0<br clear="none"> Via: SIP/2.0/TLS a.a.a.a:5061;branch=z9hG4bKa8.655a009.0<br clear="none"> From: "Private" <sip:0000000000@b.b.b.b>;tag=as0e54f44e<br clear="none"> Call-ID: 6f4643c21ba3b6f921fbbbbb63f9ab06@b.b.b.b:5061<br clear="none"> To: <sip:+xxxxxxxxxxx@msteamssbc.voippabx.cloud><br clear="none"> CSeq: 102 CANCEL<br clear="none"> Max-Forwards: 70<br clear="none"> User-Agent: OpenSIPS (2.4.8 (x86_64/linux))<br clear="none"> Content-Length: 0<br clear="none"> #015<br clear="none"> [29811] DBG:tm:insert_timer_unsafe: [0]: 0x7fa175f4c548 (939)<br clear="none"> [29811] DBG:tm:t_should_relay_response: T_code=100, new_code=100<br clear="none"> [29811] DBG:tm:relay_reply: T_state=5, branch=0, save=0, relay=-1, cancel_BM=0<br clear="none"> [29811] DBG:tm:reply_received: FR_INV_TIMER = 90<br clear="none"> [29811] DBG:tm:set_timer: relative timeout is 90<br clear="none"> [29811] DBG:tm:insert_timer_unsafe: [1]: 0x7fa175f4c480 (1014)<br clear="none"> SIP/2.0 180 Ringing<br clear="none"> FROM: "Private"<sip:0000000000@b.b.b.b>;tag=as5d689a00<br clear="none"> TO: <sip:+61291391361@msteamssbc.voippabx.cloud>;tag=e4748eaef0f44bf687956fe76d968596<br clear="none"> CSEQ: 102 INVITE<br clear="none"> CALL-ID: 259311ff6c557c7c53e9a711736311e5@b.b.b.b:5061<br clear="none"> VIA: SIP/2.0/TLS b.b.b.b:5061;received=b.b.b.b;branch=z9hG4bK502b3c25;rport=34212<br clear="none"> RECORD-ROUTE: <sip:sip-du-a-au.pstnhub.microsoft.com:5061;transport=tls;lr>,<sip:pasanm.voippabx.cloud:5061;transport=tls;ftag=as5d689a00;lr;r2=on>,<sip:172.31.36.39:5060;ftag=as5d689a00;lr;r2=on><br clear="none"> CONTACT: <sip:api-du-a-auea.pstnhub.microsoft.com:443;x-i=f65bd2eb-86c9-4a76-85ea-84f5df8f4635;x-c=595513d129e95e99bf4e9e900b804fe1/s/1/e4f1e971d27f46829c743e805ba58c16><br clear="none"> CONTENT-LENGTH: 0<br clear="none"> ALLOW: INVITE,ACK,OPTIONS,CANCEL,BYE,NOTIFY<br clear="none"> SERVER: Microsoft.PSTNHub.SIPProxy v.2021.8.30.8 i.AUEA.2<br clear="none"> #015<br clear="none">DBG:tm:relay_reply: sent buf=0x7fa17de3e820: SIP/2.0 1..., shmem=0x7fa175f768a8: SIP/2.0 1<br clear="none">DBG:tm:reply_received: FR_INV_TIMER = 90<br clear="none">DBG:tm:set_timer: relative timeout is 90<br clear="none">DBG:tm:insert_timer_unsafe: [1]: 0x7fa175f4c480 (1721)<br clear="none">DBG:tm:t_unref: UNREF_UNSAFE: [0x7fa175f4c230] after is 0<br clear="none">DBG:core:destroy_avp_list: destroying list (nil)<br clear="none">DBG:core:receive_msg: cleaning up<br clear="none">DBG:proto_tls:tls_read_req: tls_read_req end<br clear="none"> DBG:proto_tls:tls_read_req: Using the global ( per process ) buff<br clear="none"> DBG:proto_tls:tls_update_fd: New fd is 5<br clear="none"> DBG:proto_tls:_tls_read: 460 bytes read<br clear="none"> DBG:proto_tls:tcp_handle_req: content-length= 0<br clear="none"> DBG:proto_tls:tcp_handle_req: Nothing more to read on TCP conn 0x7fa175ea5000, currently in state 0<br clear="none"> DBG:core:parse_msg: SIP Request:<br clear="none"> DBG:core:parse_msg: method: <CANCEL><br clear="none"> DBG:core:parse_msg: uri: <sip:+61291391361@msteamssbc.voippabx.cloud><br clear="none"> DBG:core:parse_msg: version: <SIP/2.0><br clear="none"> DBG:core:parse_headers: flags=ffffffffffffffff<br clear="none"> DBG:core:parse_via_param: found param type 232, <branch> = <z9hG4bK502b3c25>; state=6<br clear="none"> DBG:core:parse_via_param: found param type 235, <rport> = <n/a>; state=17<br clear="none"> DBG:core:parse_via: end of header reached, state=5<br clear="none"> DBG:core:parse_headers: via found, flags=ffffffffffffffff<br clear="none"> DBG:core:parse_headers: this is the first via<br clear="none"> DBG:core:_parse_to: end of header reached, state=10<br clear="none"> DBG:core:_parse_to: display={}, ruri={sip:+61291391361@msteamssbc.voippabx.cloud}<br clear="none"> DBG:core:get_hdr_field: <To> [46]; uri=[sip:+61291391361@msteamssbc.voippabx.cloud]<br clear="none"> DBG:core:get_hdr_field: to body [<sip:+61291391361@msteamssbc.voippabx.cloud><br clear="none"> ]<br clear="none"> DBG:core:get_hdr_field: cseq <CSeq>: <102> <CANCEL><br clear="none"> DBG:core:get_hdr_field: content_length=0<br clear="none"> DBG:core:get_hdr_field: found end of header<br clear="none"> DBG:core:receive_msg: After parse_msg...<br clear="none"> DBG:core:receive_msg: preparing to run routing scripts...<br clear="none"> DBG:maxfwd:is_maxfwd_present: value = 70<br clear="none"> DBG:core:parse_headers: flags=78<br clear="none"> DBG:tm:t_lookupOriginalT: searching on hash entry 19441<br clear="none"> DBG:tm:matching_3261: RFC3261 transaction matched, tid=502b3c25<br clear="none"> DBG:tm:t_lookupOriginalT: canceled transaction found (0x7fa175f4c230)!<br clear="none"> DBG:tm:t_lookupOriginalT: REF_UNSAFE:[0x7fa175f4c230] after is 1<br clear="none"> DBG:tm:t_lookupOriginalT: t_lookupOriginalT completed<br clear="none"> DBG:uri:has_totag: no totag<br clear="none"> DBG:core:parse_headers: flags=78<br clear="none"> DBG:tm:t_newtran: transaction on entrance=0xffffffffffffffff<br clear="none"> DBG:core:parse_headers: flags=ffffffffffffffff<br clear="none"> DBG:core:parse_headers: flags=78<br clear="none"> DBG:tm:t_lookup_request: start searching: hash=19441, isACK=0<br clear="none"> DBG:tm:matching_3261: RFC3261 transaction matching failed<br clear="none"> DBG:tm:t_lookup_request: no transaction found<br clear="none"> DBG:core:MD5StringArray: MD5 calculated: 31453c5e285c477e8c5ea130fd29f816<br clear="none"> DBG:core:parse_headers: flags=ffffffffffffffff<br clear="none"> DBG:core:_shm_resize: resize(0) called<br clear="none"> DBG:tm:cleanup_uac_timers: RETR/FR timers reset<br clear="none"> DBG:tm:insert_timer_unsafe: [2]: 0x7fa175f6d250 (1636)<br clear="none"> DBG:core:tcp_conn_get: con found in state 0<br clear="none"> DBG:core:tcp_conn_get: tcp connection found (0x7fa175ea5000) already in this process ( 14 ) , fd = 5<br clear="none"> DBG:proto_tls:proto_tls_send: sending via fd 5...<br clear="none"> DBG:proto_tls:tls_update_fd: New fd is 5<br clear="none"> DBG:proto_tls:tls_write: write was successful (415 bytes)<br clear="none"> DBG:proto_tls:proto_tls_send: after write: c= 0x7fa175ea5000 n=415 fd=5<br clear="none"> DBG:proto_tls:proto_tls_send: buf=<br clear="none"> SIP/2.0 200 canceling<br clear="none"> Via: SIP/2.0/TLS b.b.b.b:5061;received=b.b.b.b;branch=z9hG4bK502b3c25;rport=34212<br clear="none"> From: "Private" <sip:0000000000@b.b.b.b>;tag=as5d689a00<br clear="none"> To: <sip:+61291391361@msteamssbc.voippabx.cloud>;tag=b731-31453c5e285c477e8c5ea130fd29f816<br clear="none"> Call-ID: 259311ff6c557c7c53e9a711736311e5@b.b.b.b:5061<br clear="none"> CSeq: 102 CANCEL<br clear="none"> Server: OpenSIPS (2.4.8 (x86_64/linux))<br clear="none"> Content-Length: 0<br clear="none"> #015<br clear="none"><br clear="none"></div><div><br clear="none"></div> </div><div class="yiv7961707184ydp1d2e08e6signature"><div><div><font style="BACKGROUND-COLOR:#e6e6e6;"></font> </div><div><font style="BACKGROUND-COLOR:#e6e6e6;"></font> </div><div><font style="BACKGROUND-COLOR:#e6e6e6;"></font> </div><div dir="ltr"> <br clear="none"></div><div><font style="BACKGROUND-COLOR:#e6e6e6;"></font> </div><div><font style="BACKGROUND-COLOR:#e6e6e6;"></font> </div><div><font style="BACKGROUND-COLOR:#e6e6e6;"></font> </div><div><font style="BACKGROUND-COLOR:#e6e6e6;"></font> </div><div><font style="BACKGROUND-COLOR:#e6e6e6;">Distinguishing <font color="#0000ff"><strong>What</strong></font> && <font color="#ff007f"><strong>How</strong></font> !</font></div></div></div></div>
<div><br clear="none"></div><div><br clear="none"></div>
</div><div class="yiv7961707184yahoo_quoted" id="yiv7961707184yahoo_quoted_0786600813">
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
<div class="yiv7961707184yqt3441560702" id="yiv7961707184yqt54125"><div>
On Wednesday, 1 September 2021, 03:07:59 pm GMT+5:30, Pasan Meemaduma via Users <users@lists.opensips.org> wrote:
</div>
<div><br clear="none"></div>
<div><br clear="none"></div>
<div><div id="yiv7961707184"><div><div class="yiv7961707184ydp59c66915yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:10px;"><div><div dir="ltr">Hi All,</div><div dir="ltr"><br clear="none"></div><div dir="ltr">I hope all of you are well and safe. I was able to setup teams direct routing referring to this blogpost <a rel="nofollow noopener noreferrer" shape="rect" target="_blank" href="https://blog.opensips.org/2019/09/16/opensips-as-ms-teams-sbc/">https://blog.opensips.org/2019/09/16/opensips-as-ms-teams-sbc/</a></div><div dir="ltr"><br clear="none"></div><div dir="ltr">When I add a second tenant, incoming calls to the second tenant don't work, as Microsoft teams not responding to the invite. outgoing calls from the second tenant works fine.</div><div dir="ltr"><br clear="none"></div><div dir="ltr">I have configured the second tenant using a derived trunk. any idea why following INVITE not respond by Microsoft but later (first tenant INVITE ) works?</div><div dir="ltr"><br clear="none"></div><div dir="ltr">------ SECOND TENANT INVITE -------</div><div dir="ltr"><br clear="none"></div><div dir="ltr"><div>Sep 1 17:13:47 msteams-sbc opensips[26043]: INVITE <a rel="nofollow noopener noreferrer" shape="rect" ymailto="mailto:sip%3A%2B61291391360@sip.pstnhub.microsoft.com" target="_blank" href="mailto:sip%3A%2B61291391360@sip.pstnhub.microsoft.com">sip:+xxxxxxxxxx@sip.pstnhub.microsoft.com</a> SIP/2.0<br clear="none">Sep 1 17:13:47 msteams-sbc opensips[26043]: Record-Route: <sip:pasanm.voippabx.cloud:5061;transport=tls;ftag=as0e9dc8dc;lr;r2=on><br clear="none">Sep 1 17:13:47 msteams-sbc opensips[26043]: Record-Route: <sip:172.31.36.39:5060;ftag=as0e9dc8dc;lr;r2=on><br clear="none">Sep 1 17:13:47 msteams-sbc opensips[26043]: Via: SIP/2.0/TLS x.x.x.x:5061;branch=z9hG4bKf0c.bd20fe7.0;i=609325e7<br clear="none">Sep 1 17:13:47 msteams-sbc opensips[26043]: Via: SIP/2.0/TLS y.y.y.y:5061;received=y.y.y.y;branch=z9hG4bK54c25df9;rport=49408<br clear="none">Sep 1 17:13:47 msteams-sbc opensips[26043]: Max-Forwards: 69<br clear="none">Sep 1 17:13:47 msteams-sbc opensips[26043]: From: "Private" <<a rel="nofollow noopener noreferrer" shape="rect" ymailto="mailto:sip%3A0000000000@52.63.230.198" target="_blank" href="mailto:sip%3A0000000000@52.63.230.198">sip:0000000000@y.y.y.y</a>>;tag=as0e9dc8dc<br clear="none">Sep 1 17:13:47 msteams-sbc opensips[26043]: To: <sip:+xxxxxxxxxx@msteamssbc.voippabx.cloud><br clear="none"><div>Sep 1 17:13:47 msteams-sbc opensips[26043]: Contact: <sip:0000000000@y.y.y.y:5061;transport=tls></div></div><div><br clear="none"></div><div><br clear="none"></div><div dir="ltr">---FIRST TENANT INVITE---- (WORKING)</div></div><div><div><div><br clear="none"></div><div>Sep 1 17:17:46 msteams-sbc opensips[26043]: INVITE <a rel="nofollow noopener noreferrer" shape="rect" ymailto="mailto:sip%3A%2B61370011112@sip.pstnhub.microsoft.com" target="_blank" href="mailto:sip%3A%2B61370011112@sip.pstnhub.microsoft.com">sip:+cccccccccc@sip.pstnhub.microsoft.com</a> SIP/2.0<br clear="none">Sep 1 17:17:46 msteams-sbc opensips[26043]: Record-Route: <sip:voippabx.cloud:5061;transport=tls;ftag=as5e20130f;lr;r2=on><br clear="none">Sep 1 17:17:46 msteams-sbc opensips[26043]: Record-Route: <sip:172.31.36.39:5060;ftag=as5e20130f;lr;r2=on><br clear="none">Sep 1 17:17:46 msteams-sbc opensips[26043]: Via: SIP/2.0/TLS x.x.x.x:5061;branch=z9hG4bKe5f8.239f87a3.0;i=009325e7<br clear="none">Sep 1 17:17:46 msteams-sbc opensips[26043]: Via: SIP/2.0/TLS z.z.z.z:5061;received=z.z.z.z;branch=z9hG4bK7ff0149e;rport=44650<br clear="none">Sep 1 17:17:46 msteams-sbc opensips[26043]: Max-Forwards: 69<br clear="none">Sep 1 17:17:46 msteams-sbc opensips[26043]: From: "Extension" <<a rel="nofollow noopener noreferrer" shape="rect" ymailto="mailto:sip%3A9001@175.103.19.67" target="_blank" href="mailto:sip%3A9001@175.103.19.67">sip:9001@z.z.z.z</a>>;tag=as5e20130f<br clear="none">Sep 1 17:17:46 msteams-sbc opensips[26043]: To: <sip:+cccccccccc@msteamssbc.voippabx.cloud><br clear="none">Sep 1 17:17:46 msteams-sbc opensips[26043]: Contact: <sip:9001@z.z.z.z:5061;transport=tls></div></div><br clear="none"></div><div class="yiv7961707184ydp59c66915signature"><div><div dir="ltr"> I only have voippabx.cloud configured as a sbc on first Tenant. As per the above documentation I'm putting correct domain on RR header. Did I miss anything?</div><div><font style="BACKGROUND-COLOR:#e6e6e6;"></font> </div><div> </div><div dir="ltr">Thank you.<br clear="none"></div><div><font style="BACKGROUND-COLOR:#e6e6e6;"></font> </div><div><font style="BACKGROUND-COLOR:#e6e6e6;"></font> </div><div><font style="BACKGROUND-COLOR:#e6e6e6;"></font> </div><div><font style="BACKGROUND-COLOR:#e6e6e6;"></font> </div><div><font style="BACKGROUND-COLOR:#e6e6e6;"></font> </div><div><font style="BACKGROUND-COLOR:#e6e6e6;"></font> </div><div><font style="BACKGROUND-COLOR:#e6e6e6;"></font> </div><div><font style="BACKGROUND-COLOR:#e6e6e6;"></font> </div><div><font style="BACKGROUND-COLOR:#e6e6e6;">Distinguishing <font color="#0000ff"><strong>What</strong></font> && <font color="#ff007f"><strong>How</strong></font> !</font></div></div></div></div></div></div></div>_______________________________________________<br clear="none">Users mailing list<br clear="none"><a rel="nofollow noopener noreferrer" shape="rect" ymailto="mailto:Users@lists.opensips.org" target="_blank" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br clear="none"><a rel="nofollow noopener noreferrer" shape="rect" target="_blank" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br clear="none"></div></div>
</div>
</div></div></div></div>
</div>
</div></body></html>