<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">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">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">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">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">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">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">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>