Hi, I have been working on kamailio with following scenario:
1. Webrtc SIP Users register to Kamailio 2. Users initiate outgoing calls to some other numbers 3. Kamailio dispatches outgoing calls to Asterisk 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 5. At Asterisk end it is showing that message was delivered successfully but when I check SIP user logs, there is no message event.
Please review my config file at following URL: https://gist.github.com/adeshpandey/2c338db7f5d992267f7415de0325e0b4
Developers, I also want to know if there is any way to log *text message* in kamailio server.
Hi Adesh,
sngrep is an great debugging tool for that purpose.
You can use the siptrace module for recording your sip-messages in a database.
route[MESSAGE] { if (is_method("MESSAGE")) { xlog("L_INFO", "[MESSAGE] this is an MSG from <$fU> to <$rU>\n"); sip_trace(); } return; }
Example playaround config from me: https://github.com/khorsmann/kamailio-keepalived/blob/master/roles/kamailio/...
Cheers Karsten
Am Mo., 25. Nov. 2019 um 08:37 Uhr schrieb Adesh Pandey < adesh.pandey@myoperator.co>:
Hi, I have been working on kamailio with following scenario:
- Webrtc SIP Users register to Kamailio
- Users initiate outgoing calls to some other numbers
- Kamailio dispatches outgoing calls to Asterisk
- 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 5. At Asterisk end it is showing that message was delivered successfully but when I check SIP user logs, there is no message event.
Please review my config file at following URL: https://gist.github.com/adeshpandey/2c338db7f5d992267f7415de0325e0b4
Developers, I also want to know if there is any way to log *text message* in kamailio server.
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Hi Karsten, I have added the if block inside my request_route block but message method was not detected.
On Mon, Nov 25, 2019 at 2:35 PM Karsten Horsmann khorsmann@gmail.com wrote:
Hi Adesh,
sngrep is an great debugging tool for that purpose.
You can use the siptrace module for recording your sip-messages in a database.
route[MESSAGE] { if (is_method("MESSAGE")) { xlog("L_INFO", "[MESSAGE] this is an MSG from <$fU> to <$rU>\n"); sip_trace(); } return; }
Example playaround config from me:
https://github.com/khorsmann/kamailio-keepalived/blob/master/roles/kamailio/...
Cheers Karsten
Am Mo., 25. Nov. 2019 um 08:37 Uhr schrieb Adesh Pandey < adesh.pandey@myoperator.co>:
Hi, I have been working on kamailio with following scenario:
- Webrtc SIP Users register to Kamailio
- Users initiate outgoing calls to some other numbers
- Kamailio dispatches outgoing calls to Asterisk
- 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 5. At Asterisk end it is showing that message was delivered successfully but when I check SIP user logs, there is no message event.
Please review my config file at following URL: https://gist.github.com/adeshpandey/2c338db7f5d992267f7415de0325e0b4
Developers, I also want to know if there is any way to log *text message* in kamailio server.
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Mit freundlichen Grüßen *Karsten Horsmann* _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Hello,
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.
sngrep/ngrep should show if the traffic was on the network, they use hooks before the firewall, ...
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.
Cheers, Daniel
On 25.11.19 10:34, Adesh Pandey wrote:
Hi Karsten, I have added the if block inside my request_route block but message method was not detected.
On Mon, Nov 25, 2019 at 2:35 PM Karsten Horsmann <khorsmann@gmail.com mailto:khorsmann@gmail.com> wrote:
Hi Adesh, sngrep is an great debugging tool for that purpose. You can use the siptrace module for recording your sip-messages in a database. route[MESSAGE] { if (is_method("MESSAGE")) { xlog("L_INFO", "[MESSAGE] this is an MSG from <$fU> to <$rU>\n"); sip_trace(); } return; } Example playaround config from me: https://github.com/khorsmann/kamailio-keepalived/blob/master/roles/kamailio/templates/etc/kamailio/kamailio.cfg.j2#L596 Cheers Karsten Am Mo., 25. Nov. 2019 um 08:37 Uhr schrieb Adesh Pandey <adesh.pandey@myoperator.co <mailto:adesh.pandey@myoperator.co>>: Hi, I have been working on kamailio with following scenario: 1. Webrtc SIP Users register to Kamailio 2. Users initiate outgoing calls to some other numbers 3. Kamailio dispatches outgoing calls to Asterisk 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 5. At Asterisk end it is showing that message was delivered successfully but when I check SIP user logs, there is no message event. Please review my config file at following URL: https://gist.github.com/adeshpandey/2c338db7f5d992267f7415de0325e0b4 Developers, I also want to know if there is any way to log *text message* in kamailio server. _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org <mailto:sr-users@lists.kamailio.org> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users -- Mit freundlichen Grüßen *Karsten Horsmann* _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org <mailto:sr-users@lists.kamailio.org> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users