[SR-Users] Kamailio troubleshooting

2018-07-17 Thread Sergey Safarov
One my server with perl external script time to time is stopping processing SIP messages. Perl script make calls to kamailio database on mysql. I have found this in logs DEBUG: [core/io_wait.h:380]: io_watch_add(): DBG: io_watch_add(0x56427eb40c40, 495, 2, 0x7f1a9f9ba408), fd_no=33 DEBUG:

Re: [SR-Users] SIP re-invite Packets

2018-07-17 Thread yu
ReInvites like all in-dialog requests are processed in has_totag()/loose_route part. Default kamailio.cfg has almost identical part for this purpose. Main idea is that an initial request (non in-dialog) hasn't To tag already. It appears only when your request "hits" remote side (called or

[SR-Users] how to configure ims in kamailio

2018-07-17 Thread vinod mn
Hi what are the requirements to configure the ims to work with kamailio. -- Thanks and regards Vinod.M.N ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Re: [SR-Users] SIP re-invite Packets

2018-07-17 Thread Ali Taher
Hi Alex, Thank you for your reply. Does below config forward all sip requests coming from the customer to the supplier , and relay sip replies back to customer ? Where re-invite packets are handled in the below config file? Thank you Ali Taher -Original Message- From: sr-users On

Re: [SR-Users] SIP re-invite Packets

2018-07-17 Thread Alex Balashov
On Tue, Jul 17, 2018 at 04:21:25PM +0300, Ali Taher wrote: > Can you please send me a simplified config that suit my case ? Try this for a main request route: --- route { if(!mf_process_maxfwd_header("10")) { sl_send_reply("483", "Too Many Hops"); exit;

Re: [SR-Users] SIP re-invite Packets

2018-07-17 Thread Ali Taher
Hi Alex, So loose_route() is only responsible of In-dialog requests ? Can you please send me a simplified config that suit my case ? Noting that I'm using Kamailio only as proxy between my customer and my supplier. Much appreciated. Ali Taher -Original Message- From: sr-users On

Re: [SR-Users] SIP re-invite Packets

2018-07-17 Thread Alex Balashov
Hi, In-dialog requests must be handled using loose_route(). You can find the proper boilerplate in the stock configuration file: https://github.com/kamailio/kamailio/blob/master/etc/kamailio.cfg#L587 To note, your config is not sufficient to handle all aspects of a call between endpoints in an

[SR-Users] SIP re-invite Packets

2018-07-17 Thread Ali Taher
Hello, I'm using below routing logic to change the 183 reply to 180 and send it back to the origination. Noting that Kamailio is listening on 5065. route{ if (is_method("INVITE")) { xlog("L_INFO","INSIDE request route $si \n"); insert_hf("X-AUTH-IP: $si\r\n"); }

[SR-Users] Keep dialog info on Kamailio restart?

2018-07-17 Thread Yu Boot
Hello. I want that all dialog- and acc- related stuff were saved on kamailio restart and then on Kamailio startup was loaded from SQL tables. dialog settings: modparam("dialog", "db_url", DBURL) modparam("dialog", "db_mode", 1) modparam("dialog", "dlg_flag", 4) modparam("dialog",

Re: [SR-Users] Error on Kamailio 4.3.7 and dialog

2018-07-17 Thread Laura
Hi, via kamctl/kamcmd only.. Regards Il 17/07/18 10:51, Daniel-Constantin Mierla ha scritto: Hello, what do you use for sending the rpc command? Is via kamctl/kamcmd or you have your own implementation? Cheers, Daniel On 17.07.18 10:24, Laura wrote: Hello, i just log all the traffic

Re: [SR-Users] ACK Cseq incrases after 404 on uac_auth()

2018-07-17 Thread Yuriy Gorlichenko
Yep that works thx! 2018-07-17 9:14 GMT+03:00 Daniel-Constantin Mierla : > Hello, > > one more thing, do: > > $dlg_var(cseq_diff) = $null; > > when you reset the internal flag for uac auth. > > Cheers, > Daniel > > On 16.07.18 21:13, Yuriy Gorlichenko wrote: > > Hi > thx for answer > But still

Re: [SR-Users] Error on Kamailio 4.3.7 and dialog

2018-07-17 Thread Daniel-Constantin Mierla
Hello, what do you use for sending the rpc command? Is via kamctl/kamcmd or you have your own implementation? Cheers, Daniel On 17.07.18 10:24, Laura wrote: > Hello, > > i just log all the traffic inside this system on 5060, so that i can > control sip signaling, but, how can i trace the rpc

Re: [SR-Users] Error on Kamailio 4.3.7 and dialog

2018-07-17 Thread Laura
Hello, i just log all the traffic inside this system on 5060, so that i can control sip signaling, but, how can i trace the rpc command ? Cheers, Laura Il 17/07/18 10:17, Daniel-Constantin Mierla ha scritto: Hello, based on the log messages it appears that the rpc command to end the

Re: [SR-Users] Error on Kamailio 4.3.7 and dialog

2018-07-17 Thread Daniel-Constantin Mierla
Hello, based on the log messages it appears that the rpc command to end the dialog is received before 200ok/ACK for initial INVITE or after the call was ended already. Can you watch the network for these rpc commands and compare with what happens for sip packets traffic? Cheers, Daniel On

Re: [SR-Users] Error on Kamailio 4.3.7 and dialog

2018-07-17 Thread Laura
Hello, I have an external program that query RPC for the list of active calls "kamctl dialog show" and kill calls only when the system decide to close a customer.. but this cannot be the situation becuase i have these errors every few seconds... Also I'm using dialog timeout parameters

Re: [SR-Users] ACK Cseq incrases after 404 on uac_auth()

2018-07-17 Thread Daniel-Constantin Mierla
Hello, one more thing, do: $dlg_var(cseq_diff) = $null; when you reset the internal flag for uac auth. Cheers, Daniel On 16.07.18 21:13, Yuriy Gorlichenko wrote: > HiĀ  > thx for answer > But still the same > I tried to use thids flag in case if answer not 401 or 407 in failure > route but