<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hello,</p>
<p>if you don't see the INFO log message (and you have at least
debug=2), then the MESSAGE didn't get to Kamailio. Check to see if
you have a firewall rule or other system limits that can drop the
traffic.</p>
<p>sngrep/ngrep should show if the traffic was on the network, they
use hooks before the firewall, ...</p>
<p>Then, as alternative to siptrace, you can look at sipdump if you
want to avoid using a database to catch the traffic processed by
kamailio for troubleshooting reasons.<br>
</p>
<p>Cheers,<br>
Daniel<br>
</p>
<div class="moz-cite-prefix">On 25.11.19 10:34, Adesh Pandey wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAJfqKTVC+nC670iqa8AsX=ebTpPrVASNxSqbPDBh0e1dtn5Vfw@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Hi Karsten,<br>
<div>I have added the if block inside my request_route block but
message method was not detected.</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Mon, Nov 25, 2019 at 2:35
PM Karsten Horsmann <<a href="mailto:khorsmann@gmail.com"
moz-do-not-send="true">khorsmann@gmail.com</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">Hi Adesh,
<div><br>
</div>
<div>sngrep is an great debugging tool for that purpose.</div>
<div><br>
</div>
<div>You can use the siptrace module for recording your
sip-messages in a database.</div>
<div><br>
</div>
<div>route[MESSAGE] {<br>
if (is_method("MESSAGE")) {<br>
xlog("L_INFO", "[MESSAGE] this is an MSG from
<$fU> to <$rU>\n");<br>
sip_trace();<br>
}<br>
return;<br>
}<br>
<br>
Example playaround config from me:<br>
<a
href="https://github.com/khorsmann/kamailio-keepalived/blob/master/roles/kamailio/templates/etc/kamailio/kamailio.cfg.j2#L596"
target="_blank" moz-do-not-send="true">https://github.com/khorsmann/kamailio-keepalived/blob/master/roles/kamailio/templates/etc/kamailio/kamailio.cfg.j2#L596</a><br>
</div>
<div><br>
</div>
<div>Cheers</div>
<div>Karsten</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">Am Mo., 25. Nov. 2019 um
08:37 Uhr schrieb Adesh Pandey <<a
href="mailto:adesh.pandey@myoperator.co" target="_blank"
moz-do-not-send="true">adesh.pandey@myoperator.co</a>>:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
<div dir="ltr">Hi,<br>
<div>I have been working on kamailio with following
scenario:</div>
<div><br>
</div>
<div>1. Webrtc SIP Users register to Kamailio</div>
<div>2. Users initiate outgoing calls to some other
numbers </div>
<div>3. Kamailio dispatches outgoing calls to Asterisk </div>
<div>4. Asterisk answers the call and then send a text
message to the caller using SendText, which was
working fine a few days back but all of sudden it has
stopped working</div>
<div>5. At Asterisk end it is showing that message was
delivered successfully but when I check SIP user logs,
there is no message event.</div>
<div><br>
</div>
<div>Please review my config file at following URL:</div>
<div><a
href="https://gist.github.com/adeshpandey/2c338db7f5d992267f7415de0325e0b4"
target="_blank" moz-do-not-send="true">https://gist.github.com/adeshpandey/2c338db7f5d992267f7415de0325e0b4</a><br>
</div>
<div><br>
</div>
<div>Developers, I also want to know if there is any way
to log <b>text message</b> in kamailio server. </div>
<div><br>
</div>
</div>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org"
target="_blank" moz-do-not-send="true">sr-users@lists.kamailio.org</a><br>
<a
href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users"
rel="noreferrer" target="_blank" moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote>
</div>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr">Mit freundlichen Grüßen<br>
*Karsten Horsmann*<br>
</div>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank"
moz-do-not-send="true">sr-users@lists.kamailio.org</a><br>
<a
href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users"
rel="noreferrer" target="_blank" moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio World Conference - April 27-29, 2020, in Berlin -- <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
</body>
</html>