<div dir="ltr"><div dir="ltr"><div dir="ltr">Hi all!<div><br></div><div>got a Kamailio doing load balancing to multiple Asterisk boxes. Kamailio is connected to a carrier's SIP trunk, and distributes calls to Asterisk.</div><div><br></div><div>Receiving calls from carrier's SIP trunk works perfectly: kamailio will use dispatcher module to distribute calls between Asterisk boxes. No problems!</div><div><br></div><div>Kamailio is also connected to the WWW, receiving calls from any authorized IP (whitelisted in Firewall).</div><div>The problem is that if I get a call from the WWW and a from whitelisted IP, kamailio does not detect any INVITE (note that the IP address is not registered).</div><div><br></div><div>here is the SIP Request (IPs are obfuscated)</div><div><br></div><div><div>INVITE <a href="mailto:sip%3A%2B351234567890@10.19.139.66">sip:+351234567890@10.19.139.66</a> SIP/2.0</div><div>Record-Route: <sip:11.22.33.44:5060;r2=on;transport=udp;ftag=11592086_6772d868_135fa74b-2c83-4d5f-9882-4125b131c703;l</div><div><br></div><div>Record-Route: <sip:222.33.44.55:5060;r2=on;transport=udp;ftag=11592086_6772d868_135fa74b-2c83-4d5f-9882-4125b131c703r></div><div>CSeq: 1 INVITE</div><div>From: <<a href="mailto:sip%3A%2B351999999999@somewhere.com">sip:+351999999999@somewhere.com</a>>;tag=11592086_6772d868_135fa74b-2c83-4d5f-9882-4125b131c703</div><div>To: <<a href="mailto:sip%3A%2B351234567890@10.19.139.66">sip:+351234567890@10.19.139.66</a>></div><div>Max-Forwards: 65</div><div>P-Asserted-Identity: "+351999999999" <<a href="mailto:sip%3A%2B351999999999@sip.somewhere.com">sip:+351999999999@sip.somewhere.com</a>></div><div>Date: Tue, 05 Mar 2019 15:55:24 GMT</div><div>Min-SE: 120</div><div>Call-ID: <a href="mailto:799ee9a8cd02e066e2811d8052759715@0.0.0.0">799ee9a8cd02e066e2811d8052759715@0.0.0.0</a></div><div>Via: SIP/2.0/UDP 11.22.33.44:5060;branch=z9hG4bK6b36.f67ca7e4.0</div><div>Via: SIP/2.0/UDP 222.33.44.55:5060;branch=z9hG4bK135fa74b-2c83-4d5f-9882-4125b131c703_6772d868_106-113479085018764135</div><div>Contact: "+351999999999" <sip:+351999999999@222.33.44.55:5060;transport=udp></div><div>Allow: INVITE,ACK,CANCEL,OPTIONS,BYE</div><div>User-Agent: SomeSIPGateway</div><div>Content-Type: application/sdp</div><div>X-SIPGW-CallSid: CA6a5691a75bb7b915c09c7931e253f542</div><div>Content-Length: 262</div><div><br></div><div>v=0</div><div>o=root 1219665045 1219665045 IN IP4 55.66.77.88</div><div>s=SomeSIPGateway</div><div>c=IN IP4 55.66.77.88</div><div>t=0 0</div><div>m=audio 14326 RTP/AVP 0 8 101</div><div>a=rtpmap:0 PCMU/8000</div><div>a=rtpmap:8 PCMA/8000</div><div>a=rtpmap:101 telephone-event/8000</div><div>a=fmtp:101 0-16</div><div>a=ptime:20</div><div>a=sendrecv</div></div><div><br></div><div><br></div><div><div>SIP Messages using SNGrep:</div><div><br></div><div>           <a href="http://11.22.33.44:5060">11.22.33.44:5060</a>             <a href="http://10.19.139.66:5060">10.19.139.66:5060</a> </div><div>         ----------+---------          ----------+---------</div><div> 15:55:25.980727   |        INVITE (SDP)         |         </div><div>       +0.596007       | --------------------------> |         </div><div> 15:55:26.576734   |        INVITE (SDP)         |         </div><div>       +1.003393       | ------------------------>>> |         </div><div> 15:55:27.580127   |        INVITE (SDP)         |         </div><div>       +1.978513       | ------------------------>>> |         </div><div> 15:55:29.558640   |        INVITE (SDP)         |         </div><div>                               | ------------------------>>> |         </div></div><div><br></div><div><br></div><div>I've checked that Kamailio is listennig to all interfaces (OK) and to port 5060 (OK). </div><div>As we can see above, SNGrep shows the incoming message to Kamailio (10.19.139.66) but it gets stuck there as there are no other messages. </div><div>Kamailio.log doesn't show anything too, just like if the request (INVITE) is not recognizes a a SIP message.</div><div><br></div><div>all other use cases work fine :<br></div><div>- from SIP Carrier's trunk OK</div><div>- from registered SIP user OK</div><div>- from registered SIP Trunk ok</div><div><br></div><div>only from a not registered SIP trunk I get this behaviour.... </div><div><br></div><div><br></div><div><div>Any clue?</div><div><br></div><br class="gmail-Apple-interchange-newline"></div><div><br></div><div>Thanks in advance,</div><div><br clear="all"><div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><b><font size="2">Sérgio </font></b><div><a href="http://www.voip.pt">www.voip.pt</a></div><div><br></div><div><br></div></div></div></div></div></div></div></div></div></div>