<p>Hi!<br /><br />I got this and now ask if someone can tell me if it's normal or I should do something with...<br /><br /> <br /><br />I debuging OpenSIPS 1.6.2 on multihomed PC with mhomed=1<br /><br />where OpenSIPS has public IP 8.8.2.2 and on second interface private 192.168.1.200<br /><br />calls terminated to gateway 192.168.1.203<br /><br /><br /><br />So issue happens on call not being connected, but right after CANCEL when I get BYE method from caller!<br /><br /> <br /><br />I got this error at every similar BYE<br /><br />Apr 21 01:18:06 ser /usr/sbin/opensips[590]: CRITICAL:dialog:log_next_state_dlg: bogus event 7 in state 2 for dlg 0xb3b8e304 [1541:1721026758] with clid '320623852@1.1.1.1' and tags '1779091552' 'b151f93a-724884'<br /><br /><br /><br />and SIP TRACE shows strange loop of BYE message from 1 interface to another at the same host<br /><br />causing this error:<br /><br />#<br />U 2010/04/21 01:17:29.568172 1.1.1.1:5060 -&gt; 8.8.2.2:5060<br />INVITE sip:0583@8.8.2.2 SIP/2.0.<br />Max-Forwards: 20.<br />Via: SIP/2.0/UDP 1.1.1.1:5060;rport;branch=z9hG4bK228107990.<br />From: &lt;sip:8795@1.1.1.1&gt;;tag=1779091552.<br />To: &lt;sip:0583@8.8.2.2&gt;.<br />Call-ID: 320623852@1.1.1.1.<br />CSeq: 1220310 INVITE.<br />User-Agent: MediaCore/0.9.<br />Contact: &lt;sip:8795@1.1.1.1:5060&gt;.<br />Allow: ACK, INVITE, BYE, CANCEL, REGISTER, REFER, OPTIONS, INFO.<br />Content-Type: application/sdp.<br />Content-Length: 206.<br />.<br />v=0.<br />o=mc 1271790746 1271790746 IN IP4 1.1.1.1.<br />s=SIP Call.<br />c=IN IP4 1.1.1.1.<br />t=0 0.<br />m=audio 18594 RTP/AVP 18 101.<br />a=rtpmap:18 G729/8000.<br />a=fmtp:18 annexb=no.<br />a=rtpmap:101 telephone-event/8000.<br /><br />#<br />U 2010/04/21 01:17:29.585860 8.8.2.2:5060 -&gt; 1.1.1.1:5060<br />SIP/2.0 100 Giving a try.<br />Via: SIP/2.0/UDP 1.1.1.1:5060;rport=5060;branch=z9hG4bK228107990.<br />From: &lt;sip:8795@1.1.1.1&gt;;tag=1779091552.<br />To: &lt;sip:0583@8.8.2.2&gt;.<br />Call-ID: 320623852@1.1.1.1.<br />CSeq: 1220310 INVITE.<br />Server: Proxy.<br />Content-Length: 0.<br />.<br /><br />#<br />U 2010/04/21 01:17:29.585970 192.168.1.200:5060 -&gt; 192.168.1.203:5060<br />INVITE sip:560583@192.168.1.203:5060 SIP/2.0.<br />Record-Route: &lt;sip:192.168.1.200;r2=on;lr=on;ftag=1779091552;did=506.6c8c4966;vsf=AAAAAAAFDQcACQIKBQx1cQgLHR8HCBofCB4FHgE-&gt;.<br />Record-Route: &lt;sip:8.8.2.2;r2=on;lr=on;ftag=1779091552;did=506.6c8c4966;vsf=AAAAAAAFDQcACQIKBQx1cQgLHR8HCBofCB4FHgE-&gt;.<br />Max-Forwards: 19.<br />Via: SIP/2.0/UDP 192.168.1.200;branch=z9hG4bK8852.a7f98af4.0.<br />Via: SIP/2.0/UDP 1.1.1.1:5060;received=1.1.1.1;rport=5060;branch=z9hG4bK228107990.<br />From: "2225" &lt;sip:2225@192.168.1.200&gt;;tag=1779091552.<br />To: &lt;sip:0583@8.8.2.2&gt;.<br />Call-ID: 320623852@1.1.1.1.<br />CSeq: 1220310 INVITE.<br />User-Agent: MediaCore/0.9.<br />Contact: &lt;sip:8795@1.1.1.1:5060&gt;.<br />Allow: ACK, INVITE, BYE, CANCEL, REGISTER, REFER, OPTIONS, INFO.<br />Content-Type: application/sdp.<br />Content-Length: 206.<br />.<br />v=0.<br />o=mc 1271790746 1271790746 IN IP4 1.1.1.1.<br />s=SIP Call.<br />c=IN IP4 8.8.2.2.<br />t=0 0.<br />m=audio 51438 RTP/AVP 18 101.<br />a=rtpmap:18 G729/8000.<br />a=fmtp:18 annexb=no.<br />a=rtpmap:101 telephone-event/8000.<br /><br />#<br />U 2010/04/21 01:17:29.634981 192.168.1.203:5060 -&gt; 192.168.1.200:5060<br />SIP/2.0 100 Trying.<br />Via: SIP/2.0/UDP 192.168.1.200;branch=z9hG4bK8852.a7f98af4.0.<br />Via: SIP/2.0/UDP 1.1.1.1:5060;rport=5060;received=1.1.1.1;branch=z9hG4bK228107990.<br />From: "2225" &lt;sip:2225@192.168.1.200&gt;;tag=1779091552.<br />To: &lt;sip:0583@8.8.2.2&gt;.<br />Call-ID: 320623852@1.1.1.1.<br />CSeq: 1220310 INVITE.<br />Content-Type: application/sdp.<br />Content-Length: 0.<br />.<br /><br />#<br />U 2010/04/21 01:17:30.618689 192.168.1.203:5060 -&gt; 192.168.1.200:5060<br />SIP/2.0 180 Ringing.<br />Via: SIP/2.0/UDP 192.168.1.200;branch=z9hG4bK8852.a7f98af4.0.<br />Via: SIP/2.0/UDP 1.1.1.1:5060;rport=5060;received=1.1.1.1;branch=z9hG4bK228107990.<br />From: "2225" &lt;sip:2225@192.168.1.200&gt;;tag=1779091552.<br />To: &lt;sip:0583@8.8.2.2&gt;;tag=b151f93a-724884.<br />Call-ID: 320623852@1.1.1.1.<br />CSeq: 1220310 INVITE.<br />Contact: &lt;sip:mygw@192.168.1.203:5060&gt;.<br />Record-Route: &lt;sip:192.168.1.200;r2=on;lr=on;ftag=1779091552;did=506.6c8c4966;vsf=AAAAAAAFDQcACQIKBQx1cQgLHR8HCBofCB4FHgE-&gt;,&lt;sip:8.8.2.2;r2=on;lr=on;ftag=1779091552;did=506.6c8c4966;vsf=AAAAAAAFDQcACQIKBQx1cQgLHR8HCBofCB4FHgE-&gt;.<br />User-Agent: 048 12-35-3923109.<br />Content-Length: 0.<br />.<br /><br />#<br />U 2010/04/21 01:17:30.619521 8.8.2.2:5060 -&gt; 1.1.1.1:5060<br />SIP/2.0 180 Ringing.<br />Via: SIP/2.0/UDP 1.1.1.1:5060;rport=5060;received=1.1.1.1;branch=z9hG4bK228107990.<br />From: &lt;sip:8795@1.1.1.1&gt;;tag=1779091552.<br />To: &lt;sip:0583@8.8.2.2&gt;;tag=b151f93a-724884.<br />Call-ID: 320623852@1.1.1.1.<br />CSeq: 1220310 INVITE.<br />Contact: &lt;sip:mygw@192.168.1.203:5060&gt;.<br />Record-Route: &lt;sip:192.168.1.200;r2=on;lr=on;ftag=1779091552;did=506.6c8c4966;vsf=AAAAAAAFDQcACQIKBQx1cQgLHR8HCBofCB4FHgE-&gt;,&lt;sip:8.8.2.2;r2=on;lr=on;ftag=1779091552;did=506.6c8c4966;vsf=AAAAAAAFDQcACQIKBQx1cQgLHR8HCBofCB4FHgE-&gt;.<br />User-Agent: 048 12-35-3923109.<br />Content-Length: 0.<br />.<br /><br />#<br />U 2010/04/21 01:18:06.341867 1.1.1.1:5060 -&gt; 8.8.2.2:5060<br />CANCEL sip:0583@8.8.2.2 SIP/2.0.<br />Via: SIP/2.0/UDP 1.1.1.1:5060;rport;branch=z9hG4bK228107990.<br />From: &lt;sip:8795@1.1.1.1&gt;;tag=1779091552.<br />To: &lt;sip:0583@8.8.2.2&gt;.<br />Call-ID: 320623852@1.1.1.1.<br />CSeq: 1220310 CANCEL.<br />User-Agent: MediaCore/0.9.<br />Max-Forwards: 70.<br />Allow: ACK, INVITE, BYE, CANCEL, REGISTER, REFER, OPTIONS, INFO.<br />Content-Length: 0.<br />.<br /><br />#<br />U 2010/04/21 01:18:06.342096 8.8.2.2:5060 -&gt; 1.1.1.1:5060<br />SIP/2.0 200 canceling.<br />Via: SIP/2.0/UDP 1.1.1.1:5060;rport=5060;branch=z9hG4bK228107990.<br />From: &lt;sip:8795@1.1.1.1&gt;;tag=1779091552.<br />To: &lt;sip:0583@8.8.2.2&gt;;tag=155c340f586c28d0300cf5a6ccf90d99-7e51.<br />Call-ID: 320623852@1.1.1.1.<br />CSeq: 1220310 CANCEL.<br />Server: Proxy.<br />Content-Length: 0.<br />.<br /><br />#<br />U 2010/04/21 01:18:06.342096 8.8.2.2:5060 -&gt; 1.1.1.1:5060<br />SIP/2.0 200 canceling.<br />Via: SIP/2.0/UDP 1.1.1.1:5060;rport=5060;branch=z9hG4bK228107990.<br />From: &lt;sip:8795@1.1.1.1&gt;;tag=1779091552.<br />To: &lt;sip:0583@8.8.2.2&gt;;tag=155c340f586c28d0300cf5a6ccf90d99-7e51.<br />Call-ID: 320623852@1.1.1.1.<br />CSeq: 1220310 CANCEL.<br />Server: Proxy.<br />Content-Length: 0.<br />.<br /><br />#<br />U 2010/04/21 01:18:06.342555 1.1.1.1:5060 -&gt; 8.8.2.2:5060<br />BYE sip:0583@8.8.2.2 SIP/2.0.<br />Route: &lt;sip:8.8.2.2;r2=on;lr=on;ftag=1779091552;did=506.6c8c4966;vsf=AAAAAAAFDQcACQIKBQx1cQgLHR8HCBofCB4FHgE-&gt;.<br />Route: &lt;sip:192.168.1.200;r2=on;lr=on;ftag=1779091552;did=506.6c8c4966;vsf=AAAAAAAFDQcACQIKBQx1cQgLHR8HCBofCB4FHgE-&gt;.<br />Call-ID: 320623852@1.1.1.1.<br />From: &lt;sip:8795@1.1.1.1&gt;;tag=1779091552.<br />To: &lt;sip:0583@8.8.2.2&gt;;tag=b151f93a-724884.<br />Reason: Q850;cause=16.<br />Via: SIP/2.0/UDP 1.1.1.1:5060;rport;branch=z9hG4bK52996011.<br />CSeq: 1220400 BYE.<br />User-Agent: MediaCore/0.9.<br />Max-Forwards: 70.<br />Allow: ACK, INVITE, BYE, CANCEL, REGISTER, REFER, OPTIONS, INFO.<br />Content-Length: 0.<br />.<br /><br />[[[[[[[[[[[[[[[HERE IS MESSAGE THAT COMES FROM OpenSIPS TO HIMSELF BUT AT ANOTHER interface!]]]]]]]]]]]]]]]]]]]]]<br /><br />#<br />U 2010/04/21 01:18:06.342809 8.8.2.2:5060 -&gt; 192.168.1.200:5060<br />BYE sip:192.168.1.200;r2=on;lr=on;ftag=1779091552;did=506.6c8c4966;vsf=AAAAAAAFDQcACQIKBQx1cQgLHR8HCBofCB4FHgE- SIP/2.0.<br />Call-ID: 320623852@1.1.1.1.<br />From: &lt;sip:8795@1.1.1.1&gt;;tag=1779091552.<br />To: &lt;sip:0583@8.8.2.2&gt;;tag=b151f93a-724884.<br />Reason: Q850;cause=16.<br />Via: SIP/2.0/UDP 8.8.2.2;branch=z9hG4bKf348.cc3dffa2.0.<br />Via: SIP/2.0/UDP 1.1.1.1:5060;received=1.1.1.1;rport=5060;branch=z9hG4bK52996011.<br />CSeq: 1220400 BYE.<br />User-Agent: MediaCore/0.9.<br />Max-Forwards: 69.<br />Allow: ACK, INVITE, BYE, CANCEL, REGISTER, REFER, OPTIONS, INFO.<br />Content-Length: 0.<br />.<br /><br />#<br />U 2010/04/21 01:18:06.342861 192.168.1.200:5060 -&gt; 192.168.1.203:5060<br />CANCEL sip:560583@192.168.1.203:5060 SIP/2.0.<br />Via: SIP/2.0/UDP 192.168.1.200;branch=z9hG4bK8852.a7f98af4.0.<br />From: "2225" &lt;sip:2225@192.168.1.200&gt;;tag=1779091552.<br />Call-ID: 320623852@1.1.1.1.<br />To: &lt;sip:0583@8.8.2.2&gt;.<br />CSeq: 1220310 CANCEL.<br />Max-Forwards: 70.<br />User-Agent: D.<br />Content-Length: 0.<br />.<br /><br />[[[[[[[[[[[[[[[HERE IS REPLY MESSAGE THAT COMES FROM OpenSIPS TO HIMSELF BUT AT ANOTHER interface!]]]]]]]]]]]]]]]]]]]]]<br />[[[[[[[[[[[[[[[this make CRITICAL:dialog:log_next_state_dlg: bogus event 7 in state 2]]]]]]]]]]]]]]]]]]]]]<br /><br />#<br />U 2010/04/21 01:18:06.342912 192.168.1.200:5060 -&gt; 8.8.2.2:5060<br />SIP/2.0 404 Not here.<br />Call-ID: 320623852@1.1.1.1.<br />From: &lt;sip:8795@1.1.1.1&gt;;tag=1779091552.<br />To: &lt;sip:0583@8.8.2.2&gt;;tag=b151f93a-724884.<br />Via: SIP/2.0/UDP 8.8.2.2;branch=z9hG4bKf348.cc3dffa2.0.<br />Via: SIP/2.0/UDP 1.1.1.1:5060;received=1.1.1.1;rport=5060;branch=z9hG4bK52996011.<br />CSeq: 1220400 BYE.<br />Server: Proxy.<br />Content-Length: 0.<br />.<br /><br />#<br />U 2010/04/21 01:18:06.343074 8.8.2.2:5060 -&gt; 1.1.1.1:5060<br />SIP/2.0 404 Not here.<br />Call-ID: 320623852@1.1.1.1.<br />From: &lt;sip:8795@1.1.1.1&gt;;tag=1779091552.<br />To: &lt;sip:0583@8.8.2.2&gt;;tag=b151f93a-724884.<br />Via: SIP/2.0/UDP 1.1.1.1:5060;received=1.1.1.1;rport=5060;branch=z9hG4bK52996011.<br />CSeq: 1220400 BYE.<br />Server: Proxy.<br />Content-Length: 0.<br />.<br /><br />#<br />U 2010/04/21 01:18:06.416211 192.168.1.203:5060 -&gt; 192.168.1.200:5060<br />SIP/2.0 487 Request Terminated.<br />Via: SIP/2.0/UDP 192.168.1.200;branch=z9hG4bK8852.a7f98af4.0.<br />Via: SIP/2.0/UDP 1.1.1.1:5060;rport=5060;received=1.1.1.1;branch=z9hG4bK228107990.<br />From: "2225" &lt;sip:2225@192.168.1.200&gt;;tag=1779091552.<br />To: &lt;sip:0583@8.8.2.2&gt;;tag=b151f93a-724884.<br />Call-ID: 320623852@1.1.1.1.<br />CSeq: 1220310 INVITE.<br />Record-Route: &lt;sip:192.168.1.200;r2=on;lr=on;ftag=1779091552;did=506.6c8c4966;vsf=AAAAAAAFDQcACQIKBQx1cQgLHR8HCBofCB4FHgE-&gt;,&lt;sip:8.8.2.2;r2=on;lr=on;ftag=1779091552;did=506.6c8c4966;vsf=AAAAAAAFDQcACQIKBQx1cQgLHR8HCBofCB4FHgE-&gt;.<br />User-Agent: 048 12-35-3923109.<br />Content-Length: 0.<br />.<br /><br />#<br />U 2010/04/21 01:18:06.416896 192.168.1.200:5060 -&gt; 192.168.1.203:5060<br />ACK sip:560583@192.168.1.203:5060 SIP/2.0.<br />Via: SIP/2.0/UDP 192.168.1.200;branch=z9hG4bK8852.a7f98af4.0.<br />From: "2225" &lt;sip:2225@192.168.1.200&gt;;tag=1779091552.<br />Call-ID: 320623852@1.1.1.1.<br />To: &lt;sip:0583@8.8.2.2&gt;;tag=b151f93a-724884.<br />CSeq: 1220310 ACK.<br />Max-Forwards: 70.<br />User-Agent: D.<br />Content-Length: 0.<br />.<br /><br />#<br />U 2010/04/21 01:18:06.422826 192.168.1.203:5060 -&gt; 192.168.1.200:5060<br />SIP/2.0 200 OK.<br />Via: SIP/2.0/UDP 192.168.1.200;branch=z9hG4bK8852.a7f98af4.0.<br />From: "2225" &lt;sip:2225@192.168.1.200&gt;;tag=1779091552.<br />To: &lt;sip:0583@8.8.2.2&gt;;tag=b151f93a-724884.<br />Call-ID: 320623852@1.1.1.1.<br />CSeq: 1220310 CANCEL.<br />User-Agent: 048 12-35-3923109.<br />Content-Length: 0.<br />.<br /><br />#<br />U 2010/04/21 01:18:06.455191 8.8.2.2:5060 -&gt; 1.1.1.1:5060<br />SIP/2.0 487 Request Terminated.<br />Via: SIP/2.0/UDP 1.1.1.1:5060;rport=5060;received=1.1.1.1;branch=z9hG4bK228107990.<br />From: &lt;sip:8795@1.1.1.1&gt;;tag=1779091552.<br />To: &lt;sip:0583@8.8.2.2&gt;;tag=b151f93a-724884.<br />Call-ID: 320623852@1.1.1.1.<br />CSeq: 1220310 INVITE.<br />Record-Route: &lt;sip:192.168.1.200;r2=on;lr=on;ftag=1779091552;did=506.6c8c4966;vsf=AAAAAAAFDQcACQIKBQx1cQgLHR8HCBofCB4FHgE-&gt;,&lt;sip:8.8.2.2;r2=on;lr=on;ftag=1779091552;did=506.6c8c4966;vsf=AAAAAAAFDQcACQIKBQx1cQgLHR8HCBofCB4FHgE-&gt;.<br />User-Agent: 048 12-35-3923109.<br />Content-Length: 0.<br />.<br /><br />#<br />U 2010/04/21 01:18:06.573706 1.1.1.1:5060 -&gt; 8.8.2.2:5060<br />ACK sip:0583@8.8.2.2 SIP/2.0.<br />Via: SIP/2.0/UDP 1.1.1.1:5060;rport;branch=z9hG4bK228107990.<br />From: &lt;sip:8795@1.1.1.1&gt;;tag=1779091552.<br />To: &lt;sip:0583@8.8.2.2&gt;;tag=b151f93a-724884.<br />Call-ID: 320623852@1.1.1.1.<br />CSeq: 1220310 ACK.<br />Max-Forwards: 20.<br />Contact: &lt;sip:8795@1.1.1.1:5060&gt;.<br />User-Agent: MediaCore/0.9.<br />Content-Length: 0.<br />.<br /><br /></p>