Re: [SR-Users] JSON Error
Thats what I was hoping to avoid unless there was an alternate option. -dan From: sr-users on behalf of Ovidiu Sas Sent: Wednesday, November 24, 2021 10:51:33 PM To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] JSON Error Add a log in the config on each location and correlate with the error log. -ovidiu On Wed, Nov 24, 2021 at 22:37 Daniel W. Graham mailto:d...@cmsinter.net>> wrote: That’s what I’m looking to do, but there are lots of locations in the config file json is used and the error doesn’t give any indication what call to jansson_get is causing the error. -dan From: sr-users mailto:sr-users-boun...@lists.kamailio.org>> on behalf of Fred Posner mailto:f...@palner.com>> Date: Wednesday, November 24, 2021 at 10:11 PM To: sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org> mailto:sr-users@lists.kamailio.org>> Subject: Re: [SR-Users] JSON Error Are you verifying the document is valid JSON? Fred Posner | palner.com<http://palner.com> Matrix: @fred:matrix.lod.com<http://matrix.lod.com> o: +1 (212) 937-7844 On 11/24/21 7:47 PM, Daniel W. Graham wrote: > My log is filled with this and have been unsuccessful locating > additional information by increasing debug level. > > > > Any thoughts on how to quickly isolate? > > > > /usr/local/sbin/kamailio[7678]: ERROR: jansson [jansson_funcs.c:48]: > janssonmod_get_helper(): json error at line 1, col 0: '[' or '{' > expected near end of file > > /usr/local/sbin/kamailio[7677]: ERROR: jansson [jansson_funcs.c:46]: > janssonmod_get_helper(): failed to parse json: > > /usr/local/sbin/kamailio[7677]: ERROR: jansson [jansson_funcs.c:48]: > janssonmod_get_helper(): json error at line 1, col 0: '[' or '{' > expected near end of file > > /usr/local/sbin/kamailio[7675]: ERROR: jansson [jansson_funcs.c:46]: > janssonmod_get_helper(): failed to parse json: > > /usr/local/sbin/kamailio[7675]: ERROR: jansson [jansson_funcs.c:48]: > janssonmod_get_helper(): json error at line 1, col 0: '[' or '{' > expected near end of file > > > > -dan > > > > > __ > Kamailio - Users Mailing List - Non Commercial Discussions > * sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org> > Important: keep the mailing list in the recipients, do not reply only to the > sender! > Edit mailing list options or unsubscribe: > * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users > __ Kamailio - Users Mailing List - Non Commercial Discussions * sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org> Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users __ Kamailio - Users Mailing List - Non Commercial Discussions * sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org> Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users -- VoIP Embedded, Inc. http://www.voipembedded.com __ Kamailio - Users Mailing List - Non Commercial Discussions * sr-users@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] JSON Error
That’s what I’m looking to do, but there are lots of locations in the config file json is used and the error doesn’t give any indication what call to jansson_get is causing the error. -dan From: sr-users on behalf of Fred Posner Date: Wednesday, November 24, 2021 at 10:11 PM To: sr-users@lists.kamailio.org Subject: Re: [SR-Users] JSON Error Are you verifying the document is valid JSON? Fred Posner | palner.com Matrix: @fred:matrix.lod.com o: +1 (212) 937-7844 On 11/24/21 7:47 PM, Daniel W. Graham wrote: > My log is filled with this and have been unsuccessful locating > additional information by increasing debug level. > > > > Any thoughts on how to quickly isolate? > > > > /usr/local/sbin/kamailio[7678]: ERROR: jansson [jansson_funcs.c:48]: > janssonmod_get_helper(): json error at line 1, col 0: '[' or '{' > expected near end of file > > /usr/local/sbin/kamailio[7677]: ERROR: jansson [jansson_funcs.c:46]: > janssonmod_get_helper(): failed to parse json: > > /usr/local/sbin/kamailio[7677]: ERROR: jansson [jansson_funcs.c:48]: > janssonmod_get_helper(): json error at line 1, col 0: '[' or '{' > expected near end of file > > /usr/local/sbin/kamailio[7675]: ERROR: jansson [jansson_funcs.c:46]: > janssonmod_get_helper(): failed to parse json: > > /usr/local/sbin/kamailio[7675]: ERROR: jansson [jansson_funcs.c:48]: > janssonmod_get_helper(): json error at line 1, col 0: '[' or '{' > expected near end of file > > > > -dan > > > > > __ > Kamailio - Users Mailing List - Non Commercial Discussions > * sr-users@lists.kamailio.org > Important: keep the mailing list in the recipients, do not reply only to the > sender! > Edit mailing list options or unsubscribe: > * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users > __ Kamailio - Users Mailing List - Non Commercial Discussions * sr-users@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users __ Kamailio - Users Mailing List - Non Commercial Discussions * sr-users@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
[SR-Users] JSON Error
My log is filled with this and have been unsuccessful locating additional information by increasing debug level. Any thoughts on how to quickly isolate? /usr/local/sbin/kamailio[7678]: ERROR: jansson [jansson_funcs.c:48]: janssonmod_get_helper(): json error at line 1, col 0: '[' or '{' expected near end of file /usr/local/sbin/kamailio[7677]: ERROR: jansson [jansson_funcs.c:46]: janssonmod_get_helper(): failed to parse json: /usr/local/sbin/kamailio[7677]: ERROR: jansson [jansson_funcs.c:48]: janssonmod_get_helper(): json error at line 1, col 0: '[' or '{' expected near end of file /usr/local/sbin/kamailio[7675]: ERROR: jansson [jansson_funcs.c:46]: janssonmod_get_helper(): failed to parse json: /usr/local/sbin/kamailio[7675]: ERROR: jansson [jansson_funcs.c:48]: janssonmod_get_helper(): json error at line 1, col 0: '[' or '{' expected near end of file -dan __ Kamailio - Users Mailing List - Non Commercial Discussions * sr-users@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] SECSIPID Identity Decode
This was already pointed out, $mb. Thanks, -dan On Jul 2, 2021, at 4:40 PM, Daniel W. Graham wrote: __ Kamailio - Users Mailing List - Non Commercial Discussions * sr-users@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] SECSIPID Identity Decode
Found it. record_route bit me. ERROR: [core/msg_translator.c:3355]: sip_msg_apply_changes(): cannot apply msg changes after adding record-route header - it breaks conditional 2nd header Assuming not but thought I’d ask, any way to access a header before its added to the message? Future request, that secsipid_add_identity() returns the auto generated uuid for origid. -dan From: sr-users on behalf of Daniel Graham Reply-To: "Kamailio (SER) - Users Mailing List" Date: Friday, July 2, 2021 at 1:54 PM To: "mico...@gmail.com" Cc: "Kamailio (SER) - Users Mailing List" Subject: Re: [SR-Users] SECSIPID Identity Decode I checked twice but nothing. I will test again in case I am missing something, I found it odd too that its failing but no error in debug. I tried adding another header and msg_apply_changes() before the call to secsipid_add_identity(), and that doesnt show up in $mb or accessible by $hdr() either. Daniel W. Graham, CTO CMSInter.net LLC DIRECT (989) 400-4230 INTERNET | TELEPHONE | MANAGED IT From: "mico...@gmail.com" Reply-To: "mico...@gmail.com" Date: Friday, July 2, 2021 at 1:46 PM To: Daniel Graham Cc: "Kamailio (SER) - Users Mailing List" Subject: Re: [SR-Users] SECSIPID Identity Decode If msg_apply_changes() fails, then there has to be other error messages in the logs. Don't you see any? Cheers, Daniel On 02.07.21 18:18, Daniel W. Graham wrote: Sorry. msg_apply_changes() was in config and I didn’t see the execution in debug. I just changed to this and receive “Failed to apply changes”. if (!msg_apply_changes()) { xlogl("L_WARN", "Failed to apply changes\n"); } -dan From: "mico...@gmail.com"<mailto:mico...@gmail.com> <mailto:mico...@gmail.com> Reply-To: "mico...@gmail.com"<mailto:mico...@gmail.com> <mailto:mico...@gmail.com> Date: Friday, July 2, 2021 at 9:24 AM To: Daniel Graham <mailto:d...@cmsinter.net> Cc: "Kamailio (SER) - Users Mailing List" <mailto:sr-users@lists.kamailio.org> Subject: Re: [SR-Users] SECSIPID Identity Decode What do you mean? Do you have msg_apply_changes() in the config, it is executed but has no effect? Or you don't have msg_apply_changes() in the config and thus not executed? Cheers, Daniel On 02.07.21 15:10, Daniel W. Graham wrote: Its not being executed. Version 5.5 Daniel W. Graham, CTO CMS Internet LLC DIRECT (989) 400-4230 INTERNET | TELEPHONE | MANAGED IT On Jul 2, 2021, at 3:12 AM, Daniel-Constantin Mierla <mailto:mico...@gmail.com> wrote: Can you doublecheck msg_apply_changes() is executed? What version are you using? Cheers, Daniel On 02.07.21 08:58, Daniel W. Graham wrote: I don’t see any issues in the log. The identity header is being sent but still nothing in $mb Daniel W. Graham, CTO CMSInter.net LLC DIRECT (989) 400-4230 INTERNET | TELEPHONE | MANAGED IT From: "mico...@gmail.com"<mailto:mico...@gmail.com> <mailto:mico...@gmail.com> Reply-To: "mico...@gmail.com"<mailto:mico...@gmail.com> <mailto:mico...@gmail.com> Date: Friday, July 2, 2021 at 2:41 AM To: Daniel Graham <mailto:d...@cmsinter.net>, "Kamailio (SER) - Users Mailing List" <mailto:sr-users@lists.kamailio.org> Subject: Re: [SR-Users] SECSIPID Identity Decode Then secsipid_add_identity() or msg_apply_changes() failed -- do you get error messages? Try to run with debug=3 for seeing more details in the logs. Cheers, Daniel On 02.07.21 08:19, Daniel W. Graham wrote: Identity is not in $mb. Daniel W. Graham, CTO CMSInter.net LLC DIRECT (989) 400-4230 INTERNET | TELEPHONE | MANAGED IT From: "mico...@gmail.com"<mailto:mico...@gmail.com> <mailto:mico...@gmail.com> Reply-To: "mico...@gmail.com"<mailto:mico...@gmail.com> <mailto:mico...@gmail.com> Date: Friday, July 2, 2021 at 2:09 AM To: "Kamailio (SER) - Users Mailing List" <mailto:sr-users@lists.kamailio.org>, Daniel Graham <mailto:d...@cmsinter.net> Subject: Re: [SR-Users] SECSIPID Identity Decode Hello, try to print $mb after secsipid_add_identity() and msg_apply_changes(), is the Identity header there? Cheers, Daniel On 02.07.21 07:53, Daniel W. Graham wrote: I need to immediately get the uuid created by secsipid_add_identity(). Is there a way to immediately read a header after its added? I tried msg_apply_changes() but $hdr(Identity) is null. -dan From: sr-users <mailto:sr-users-boun...@lists.kamailio.org> on behalf of Daniel Graham <mailto:d...@cmsinter.net> Reply-To: "Kamailio (SER) - Users Mailing List" <mailto:sr-users@lists.kamailio.org> Date: Thursday, July 1, 2021 at 6:11 PM To: "Kamailio (SER) - Users Mailing List" <mailto:sr-users@lists.kamailio.org> Subject: Re: [SR-Users] SECSIPID Identity Decode Confirmed it
Re: [SR-Users] SECSIPID Identity Decode
I checked twice but nothing. I will test again in case I am missing something, I found it odd too that its failing but no error in debug. I tried adding another header and msg_apply_changes() before the call to secsipid_add_identity(), and that doesnt show up in $mb or accessible by $hdr() either. Daniel W. Graham, CTO CMSInter.net LLC DIRECT (989) 400-4230 INTERNET | TELEPHONE | MANAGED IT From: "mico...@gmail.com" Reply-To: "mico...@gmail.com" Date: Friday, July 2, 2021 at 1:46 PM To: Daniel Graham Cc: "Kamailio (SER) - Users Mailing List" Subject: Re: [SR-Users] SECSIPID Identity Decode If msg_apply_changes() fails, then there has to be other error messages in the logs. Don't you see any? Cheers, Daniel On 02.07.21 18:18, Daniel W. Graham wrote: Sorry. msg_apply_changes() was in config and I didn’t see the execution in debug. I just changed to this and receive “Failed to apply changes”. if (!msg_apply_changes()) { xlogl("L_WARN", "Failed to apply changes\n"); } -dan From: "mico...@gmail.com"<mailto:mico...@gmail.com> <mailto:mico...@gmail.com> Reply-To: "mico...@gmail.com"<mailto:mico...@gmail.com> <mailto:mico...@gmail.com> Date: Friday, July 2, 2021 at 9:24 AM To: Daniel Graham <mailto:d...@cmsinter.net> Cc: "Kamailio (SER) - Users Mailing List" <mailto:sr-users@lists.kamailio.org> Subject: Re: [SR-Users] SECSIPID Identity Decode What do you mean? Do you have msg_apply_changes() in the config, it is executed but has no effect? Or you don't have msg_apply_changes() in the config and thus not executed? Cheers, Daniel On 02.07.21 15:10, Daniel W. Graham wrote: Its not being executed. Version 5.5 Daniel W. Graham, CTO CMS Internet LLC DIRECT (989) 400-4230 INTERNET | TELEPHONE | MANAGED IT On Jul 2, 2021, at 3:12 AM, Daniel-Constantin Mierla <mailto:mico...@gmail.com> wrote: Can you doublecheck msg_apply_changes() is executed? What version are you using? Cheers, Daniel On 02.07.21 08:58, Daniel W. Graham wrote: I don’t see any issues in the log. The identity header is being sent but still nothing in $mb Daniel W. Graham, CTO CMSInter.net LLC DIRECT (989) 400-4230 INTERNET | TELEPHONE | MANAGED IT From: "mico...@gmail.com"<mailto:mico...@gmail.com> <mailto:mico...@gmail.com> Reply-To: "mico...@gmail.com"<mailto:mico...@gmail.com> <mailto:mico...@gmail.com> Date: Friday, July 2, 2021 at 2:41 AM To: Daniel Graham <mailto:d...@cmsinter.net>, "Kamailio (SER) - Users Mailing List" <mailto:sr-users@lists.kamailio.org> Subject: Re: [SR-Users] SECSIPID Identity Decode Then secsipid_add_identity() or msg_apply_changes() failed -- do you get error messages? Try to run with debug=3 for seeing more details in the logs. Cheers, Daniel On 02.07.21 08:19, Daniel W. Graham wrote: Identity is not in $mb. Daniel W. Graham, CTO CMSInter.net LLC DIRECT (989) 400-4230 INTERNET | TELEPHONE | MANAGED IT From: "mico...@gmail.com"<mailto:mico...@gmail.com> <mailto:mico...@gmail.com> Reply-To: "mico...@gmail.com"<mailto:mico...@gmail.com> <mailto:mico...@gmail.com> Date: Friday, July 2, 2021 at 2:09 AM To: "Kamailio (SER) - Users Mailing List" <mailto:sr-users@lists.kamailio.org>, Daniel Graham <mailto:d...@cmsinter.net> Subject: Re: [SR-Users] SECSIPID Identity Decode Hello, try to print $mb after secsipid_add_identity() and msg_apply_changes(), is the Identity header there? Cheers, Daniel On 02.07.21 07:53, Daniel W. Graham wrote: I need to immediately get the uuid created by secsipid_add_identity(). Is there a way to immediately read a header after its added? I tried msg_apply_changes() but $hdr(Identity) is null. -dan From: sr-users <mailto:sr-users-boun...@lists.kamailio.org> on behalf of Daniel Graham <mailto:d...@cmsinter.net> Reply-To: "Kamailio (SER) - Users Mailing List" <mailto:sr-users@lists.kamailio.org> Date: Thursday, July 1, 2021 at 6:11 PM To: "Kamailio (SER) - Users Mailing List" <mailto:sr-users@lists.kamailio.org> Subject: Re: [SR-Users] SECSIPID Identity Decode Confirmed it was due to the sngrep copy. Thanks for mentioning it! -dan From: sr-users <mailto:sr-users-boun...@lists.kamailio.org> on behalf of Ben Kaufman <mailto:bkauf...@nexvortex.com> Reply-To: "Kamailio (SER) - Users Mailing List" <mailto:sr-users@lists.kamailio.org> Date: Thursday, July 1, 2021 at 12:49 PM To: "Kamailio (SER) - Users Mailing List" <mailto:sr-users@lists.kamailio.org> Subject: Re: [SR-Users] SECSIPID Identity Decode Dump the header to your log file, and copy it from there. I don’t know what happens with the ncurses in sngrep, but I finally looked them side by side and …. “Hey! This one
Re: [SR-Users] SECSIPID Identity Decode
Sorry. msg_apply_changes() was in config and I didn’t see the execution in debug. I just changed to this and receive “Failed to apply changes”. if (!msg_apply_changes()) { xlogl("L_WARN", "Failed to apply changes\n"); } -dan From: "mico...@gmail.com" Reply-To: "mico...@gmail.com" Date: Friday, July 2, 2021 at 9:24 AM To: Daniel Graham Cc: "Kamailio (SER) - Users Mailing List" Subject: Re: [SR-Users] SECSIPID Identity Decode What do you mean? Do you have msg_apply_changes() in the config, it is executed but has no effect? Or you don't have msg_apply_changes() in the config and thus not executed? Cheers, Daniel On 02.07.21 15:10, Daniel W. Graham wrote: Its not being executed. Version 5.5 Daniel W. Graham, CTO CMS Internet LLC DIRECT (989) 400-4230 INTERNET | TELEPHONE | MANAGED IT On Jul 2, 2021, at 3:12 AM, Daniel-Constantin Mierla <mailto:mico...@gmail.com> wrote: Can you doublecheck msg_apply_changes() is executed? What version are you using? Cheers, Daniel On 02.07.21 08:58, Daniel W. Graham wrote: I don’t see any issues in the log. The identity header is being sent but still nothing in $mb Daniel W. Graham, CTO CMSInter.net LLC DIRECT (989) 400-4230 INTERNET | TELEPHONE | MANAGED IT From: "mico...@gmail.com"<mailto:mico...@gmail.com> <mailto:mico...@gmail.com> Reply-To: "mico...@gmail.com"<mailto:mico...@gmail.com> <mailto:mico...@gmail.com> Date: Friday, July 2, 2021 at 2:41 AM To: Daniel Graham <mailto:d...@cmsinter.net>, "Kamailio (SER) - Users Mailing List" <mailto:sr-users@lists.kamailio.org> Subject: Re: [SR-Users] SECSIPID Identity Decode Then secsipid_add_identity() or msg_apply_changes() failed -- do you get error messages? Try to run with debug=3 for seeing more details in the logs. Cheers, Daniel On 02.07.21 08:19, Daniel W. Graham wrote: Identity is not in $mb. Daniel W. Graham, CTO CMSInter.net LLC DIRECT (989) 400-4230 INTERNET | TELEPHONE | MANAGED IT From: "mico...@gmail.com"<mailto:mico...@gmail.com> <mailto:mico...@gmail.com> Reply-To: "mico...@gmail.com"<mailto:mico...@gmail.com> <mailto:mico...@gmail.com> Date: Friday, July 2, 2021 at 2:09 AM To: "Kamailio (SER) - Users Mailing List" <mailto:sr-users@lists.kamailio.org>, Daniel Graham <mailto:d...@cmsinter.net> Subject: Re: [SR-Users] SECSIPID Identity Decode Hello, try to print $mb after secsipid_add_identity() and msg_apply_changes(), is the Identity header there? Cheers, Daniel On 02.07.21 07:53, Daniel W. Graham wrote: I need to immediately get the uuid created by secsipid_add_identity(). Is there a way to immediately read a header after its added? I tried msg_apply_changes() but $hdr(Identity) is null. -dan From: sr-users <mailto:sr-users-boun...@lists.kamailio.org> on behalf of Daniel Graham <mailto:d...@cmsinter.net> Reply-To: "Kamailio (SER) - Users Mailing List" <mailto:sr-users@lists.kamailio.org> Date: Thursday, July 1, 2021 at 6:11 PM To: "Kamailio (SER) - Users Mailing List" <mailto:sr-users@lists.kamailio.org> Subject: Re: [SR-Users] SECSIPID Identity Decode Confirmed it was due to the sngrep copy. Thanks for mentioning it! -dan From: sr-users <mailto:sr-users-boun...@lists.kamailio.org> on behalf of Ben Kaufman <mailto:bkauf...@nexvortex.com> Reply-To: "Kamailio (SER) - Users Mailing List" <mailto:sr-users@lists.kamailio.org> Date: Thursday, July 1, 2021 at 12:49 PM To: "Kamailio (SER) - Users Mailing List" <mailto:sr-users@lists.kamailio.org> Subject: Re: [SR-Users] SECSIPID Identity Decode Dump the header to your log file, and copy it from there. I don’t know what happens with the ncurses in sngrep, but I finally looked them side by side and …. “Hey! This one’s missing bytes!” Ben Kaufman Sr. VoIP Engineer P: E: bkauf...@nexvortex.com<mailto:bkauf...@nexvortex.com> 24 hour client support: 855.639.6300 From: sr-users <mailto:sr-users-boun...@lists.kamailio.org> On Behalf Of Daniel W. Graham Sent: Thursday, July 1, 2021 10:25 AM To: Kamailio (SER) - Users Mailing List <mailto:sr-users@lists.kamailio.org> Subject: Re: [SR-Users] SECSIPID Identity Decode Haha, yep :) I wondered if that was biting me. -dan On Jul 1, 2021, at 11:07 AM, Ben Kaufman mailto:bkauf...@nexvortex.com>> wrote: I observed a similar behavior, but it was the result of my cutting and pasting the identity header from sngrep, which looks to have dropped a few bytes on the line break. Any chance that’s what you’re doing, too? Ben Kaufman Sr. VoIP Engineer P: E: bkauf...@nexvortex.com<mailto:bkauf...@nexvortex.com> 24 hour client support: 855.639.6300 From: sr-users mailto:sr-users-boun...@lists.kamailio.org>> On
Re: [SR-Users] SECSIPID Identity Decode
Its not being executed. Version 5.5 Daniel W. Graham, CTO CMS Internet LLC DIRECT (989) 400-4230 INTERNET | TELEPHONE | MANAGED IT On Jul 2, 2021, at 3:12 AM, Daniel-Constantin Mierla wrote: Can you doublecheck msg_apply_changes() is executed? What version are you using? Cheers, Daniel On 02.07.21 08:58, Daniel W. Graham wrote: I don’t see any issues in the log. The identity header is being sent but still nothing in $mb Daniel W. Graham, CTO CMSInter.net LLC DIRECT (989) 400-4230 INTERNET | TELEPHONE | MANAGED IT From: "mico...@gmail.com"<mailto:mico...@gmail.com> <mailto:mico...@gmail.com> Reply-To: "mico...@gmail.com"<mailto:mico...@gmail.com> <mailto:mico...@gmail.com> Date: Friday, July 2, 2021 at 2:41 AM To: Daniel Graham <mailto:d...@cmsinter.net>, "Kamailio (SER) - Users Mailing List" <mailto:sr-users@lists.kamailio.org> Subject: Re: [SR-Users] SECSIPID Identity Decode Then secsipid_add_identity() or msg_apply_changes() failed -- do you get error messages? Try to run with debug=3 for seeing more details in the logs. Cheers, Daniel On 02.07.21 08:19, Daniel W. Graham wrote: Identity is not in $mb. Daniel W. Graham, CTO CMSInter.net LLC DIRECT (989) 400-4230 INTERNET | TELEPHONE | MANAGED IT From: "mico...@gmail.com"<mailto:mico...@gmail.com> <mailto:mico...@gmail.com> Reply-To: "mico...@gmail.com"<mailto:mico...@gmail.com> <mailto:mico...@gmail.com> Date: Friday, July 2, 2021 at 2:09 AM To: "Kamailio (SER) - Users Mailing List" <mailto:sr-users@lists.kamailio.org>, Daniel Graham <mailto:d...@cmsinter.net> Subject: Re: [SR-Users] SECSIPID Identity Decode Hello, try to print $mb after secsipid_add_identity() and msg_apply_changes(), is the Identity header there? Cheers, Daniel On 02.07.21 07:53, Daniel W. Graham wrote: I need to immediately get the uuid created by secsipid_add_identity(). Is there a way to immediately read a header after its added? I tried msg_apply_changes() but $hdr(Identity) is null. -dan From: sr-users <mailto:sr-users-boun...@lists.kamailio.org> on behalf of Daniel Graham <mailto:d...@cmsinter.net> Reply-To: "Kamailio (SER) - Users Mailing List" <mailto:sr-users@lists.kamailio.org> Date: Thursday, July 1, 2021 at 6:11 PM To: "Kamailio (SER) - Users Mailing List" <mailto:sr-users@lists.kamailio.org> Subject: Re: [SR-Users] SECSIPID Identity Decode Confirmed it was due to the sngrep copy. Thanks for mentioning it! -dan From: sr-users <mailto:sr-users-boun...@lists.kamailio.org> on behalf of Ben Kaufman <mailto:bkauf...@nexvortex.com> Reply-To: "Kamailio (SER) - Users Mailing List" <mailto:sr-users@lists.kamailio.org> Date: Thursday, July 1, 2021 at 12:49 PM To: "Kamailio (SER) - Users Mailing List" <mailto:sr-users@lists.kamailio.org> Subject: Re: [SR-Users] SECSIPID Identity Decode Dump the header to your log file, and copy it from there. I don’t know what happens with the ncurses in sngrep, but I finally looked them side by side and …. “Hey! This one’s missing bytes!” Ben Kaufman Sr. VoIP Engineer P: E: bkauf...@nexvortex.com<mailto:bkauf...@nexvortex.com> 24 hour client support: 855.639.6300 From: sr-users <mailto:sr-users-boun...@lists.kamailio.org> On Behalf Of Daniel W. Graham Sent: Thursday, July 1, 2021 10:25 AM To: Kamailio (SER) - Users Mailing List <mailto:sr-users@lists.kamailio.org> Subject: Re: [SR-Users] SECSIPID Identity Decode Haha, yep :) I wondered if that was biting me. -dan On Jul 1, 2021, at 11:07 AM, Ben Kaufman mailto:bkauf...@nexvortex.com>> wrote: I observed a similar behavior, but it was the result of my cutting and pasting the identity header from sngrep, which looks to have dropped a few bytes on the line break. Any chance that’s what you’re doing, too? Ben Kaufman Sr. VoIP Engineer P: E: bkauf...@nexvortex.com<mailto:bkauf...@nexvortex.com> 24 hour client support: 855.639.6300 From: sr-users mailto:sr-users-boun...@lists.kamailio.org>> On Behalf Of Daniel W. Graham Sent: Wednesday, June 30, 2021 10:31 PM To: Kamailio (SER) - Users Mailing List mailto:sr-users@lists.kamailio.org>>; David Villasmil mailto:david.villasmil.w...@gmail.com>>; Daniel-Constantin Mierla mailto:mico...@gmail.com>> Subject: Re: [SR-Users] SECSIPID Identity Decode Here is an example, payload taken from Identity header. Identity was added with secsipid_add_identity Payload test: $var(test) = "eyJhdHRlc3QiOiJBIiwiZGVzdCI6eyJ0biI6I5ODkyODkyMjgwIl19LCJpYXQiOjE2MjUxMDk2MzQsIm9yaWciOnsidG4iOiI5ODk0MDA0MjMwIn0sIm9yaWdpZCI6IjNmYmE4NTg0LTRkNzMtNGU2NC04NDc5LTQ5MjU2ZGIyMWFhYSJ9"; xlogl("L_WARN", "$(var(test){s.decode.base64t})\n"); Result is: {"attest":"A","dest
Re: [SR-Users] SECSIPID Identity Decode
I don’t see any issues in the log. The identity header is being sent but still nothing in $mb Daniel W. Graham, CTO CMSInter.net LLC DIRECT (989) 400-4230 INTERNET | TELEPHONE | MANAGED IT From: "mico...@gmail.com" Reply-To: "mico...@gmail.com" Date: Friday, July 2, 2021 at 2:41 AM To: Daniel Graham , "Kamailio (SER) - Users Mailing List" Subject: Re: [SR-Users] SECSIPID Identity Decode Then secsipid_add_identity() or msg_apply_changes() failed -- do you get error messages? Try to run with debug=3 for seeing more details in the logs. Cheers, Daniel On 02.07.21 08:19, Daniel W. Graham wrote: Identity is not in $mb. Daniel W. Graham, CTO CMSInter.net LLC DIRECT (989) 400-4230 INTERNET | TELEPHONE | MANAGED IT From: "mico...@gmail.com"<mailto:mico...@gmail.com> <mailto:mico...@gmail.com> Reply-To: "mico...@gmail.com"<mailto:mico...@gmail.com> <mailto:mico...@gmail.com> Date: Friday, July 2, 2021 at 2:09 AM To: "Kamailio (SER) - Users Mailing List" <mailto:sr-users@lists.kamailio.org>, Daniel Graham <mailto:d...@cmsinter.net> Subject: Re: [SR-Users] SECSIPID Identity Decode Hello, try to print $mb after secsipid_add_identity() and msg_apply_changes(), is the Identity header there? Cheers, Daniel On 02.07.21 07:53, Daniel W. Graham wrote: I need to immediately get the uuid created by secsipid_add_identity(). Is there a way to immediately read a header after its added? I tried msg_apply_changes() but $hdr(Identity) is null. -dan From: sr-users <mailto:sr-users-boun...@lists.kamailio.org> on behalf of Daniel Graham <mailto:d...@cmsinter.net> Reply-To: "Kamailio (SER) - Users Mailing List" <mailto:sr-users@lists.kamailio.org> Date: Thursday, July 1, 2021 at 6:11 PM To: "Kamailio (SER) - Users Mailing List" <mailto:sr-users@lists.kamailio.org> Subject: Re: [SR-Users] SECSIPID Identity Decode Confirmed it was due to the sngrep copy. Thanks for mentioning it! -dan From: sr-users <mailto:sr-users-boun...@lists.kamailio.org> on behalf of Ben Kaufman <mailto:bkauf...@nexvortex.com> Reply-To: "Kamailio (SER) - Users Mailing List" <mailto:sr-users@lists.kamailio.org> Date: Thursday, July 1, 2021 at 12:49 PM To: "Kamailio (SER) - Users Mailing List" <mailto:sr-users@lists.kamailio.org> Subject: Re: [SR-Users] SECSIPID Identity Decode Dump the header to your log file, and copy it from there. I don’t know what happens with the ncurses in sngrep, but I finally looked them side by side and …. “Hey! This one’s missing bytes!” Ben Kaufman Sr. VoIP Engineer P: E: bkauf...@nexvortex.com<mailto:bkauf...@nexvortex.com> 24 hour client support: 855.639.6300 From: sr-users <mailto:sr-users-boun...@lists.kamailio.org> On Behalf Of Daniel W. Graham Sent: Thursday, July 1, 2021 10:25 AM To: Kamailio (SER) - Users Mailing List <mailto:sr-users@lists.kamailio.org> Subject: Re: [SR-Users] SECSIPID Identity Decode Haha, yep :) I wondered if that was biting me. -dan On Jul 1, 2021, at 11:07 AM, Ben Kaufman mailto:bkauf...@nexvortex.com>> wrote: I observed a similar behavior, but it was the result of my cutting and pasting the identity header from sngrep, which looks to have dropped a few bytes on the line break. Any chance that’s what you’re doing, too? Ben Kaufman Sr. VoIP Engineer P: E: bkauf...@nexvortex.com<mailto:bkauf...@nexvortex.com> 24 hour client support: 855.639.6300 From: sr-users mailto:sr-users-boun...@lists.kamailio.org>> On Behalf Of Daniel W. Graham Sent: Wednesday, June 30, 2021 10:31 PM To: Kamailio (SER) - Users Mailing List mailto:sr-users@lists.kamailio.org>>; David Villasmil mailto:david.villasmil.w...@gmail.com>>; Daniel-Constantin Mierla mailto:mico...@gmail.com>> Subject: Re: [SR-Users] SECSIPID Identity Decode Here is an example, payload taken from Identity header. Identity was added with secsipid_add_identity Payload test: $var(test) = "eyJhdHRlc3QiOiJBIiwiZGVzdCI6eyJ0biI6I5ODkyODkyMjgwIl19LCJpYXQiOjE2MjUxMDk2MzQsIm9yaWciOnsidG4iOiI5ODk0MDA0MjMwIn0sIm9yaWdpZCI6IjNmYmE4NTg0LTRkNzMtNGU2NC04NDc5LTQ5MjU2ZGIyMWFhYSJ9"; xlogl("L_WARN", "$(var(test){s.decode.base64t})\n"); Result is: {"attest":"A","dest":{"tn":#���#��##�#002%���&�#027B#�#023c#S#023#003�#023sB�&�&�r#��'F�#�#���C#003#003C#3#002'��&�&�v�B#�Vc�s#006f"�&6#026#022�CVCB�#023c3#022�3#0066#�#026#6#026S�r' -dan From: sr-users mailto:sr-users-boun...@lists.kamailio.org>> on behalf of Daniel Graham mailto:d...@cmsinter.net>> Reply-To: "Kamailio (SER) - Users Mailing List" mailto:sr-users@lists.kamailio.org>> Date: Wednesday, June 30, 2021 at 5:32 PM To: David Villasmil mailto:david.villasmil.w...@gmail.com&g
Re: [SR-Users] SECSIPID Identity Decode
Identity is not in $mb. Daniel W. Graham, CTO CMSInter.net LLC DIRECT (989) 400-4230 INTERNET | TELEPHONE | MANAGED IT From: "mico...@gmail.com" Reply-To: "mico...@gmail.com" Date: Friday, July 2, 2021 at 2:09 AM To: "Kamailio (SER) - Users Mailing List" , Daniel Graham Subject: Re: [SR-Users] SECSIPID Identity Decode Hello, try to print $mb after secsipid_add_identity() and msg_apply_changes(), is the Identity header there? Cheers, Daniel On 02.07.21 07:53, Daniel W. Graham wrote: I need to immediately get the uuid created by secsipid_add_identity(). Is there a way to immediately read a header after its added? I tried msg_apply_changes() but $hdr(Identity) is null. -dan From: sr-users <mailto:sr-users-boun...@lists.kamailio.org> on behalf of Daniel Graham <mailto:d...@cmsinter.net> Reply-To: "Kamailio (SER) - Users Mailing List" <mailto:sr-users@lists.kamailio.org> Date: Thursday, July 1, 2021 at 6:11 PM To: "Kamailio (SER) - Users Mailing List" <mailto:sr-users@lists.kamailio.org> Subject: Re: [SR-Users] SECSIPID Identity Decode Confirmed it was due to the sngrep copy. Thanks for mentioning it! -dan From: sr-users <mailto:sr-users-boun...@lists.kamailio.org> on behalf of Ben Kaufman <mailto:bkauf...@nexvortex.com> Reply-To: "Kamailio (SER) - Users Mailing List" <mailto:sr-users@lists.kamailio.org> Date: Thursday, July 1, 2021 at 12:49 PM To: "Kamailio (SER) - Users Mailing List" <mailto:sr-users@lists.kamailio.org> Subject: Re: [SR-Users] SECSIPID Identity Decode Dump the header to your log file, and copy it from there. I don’t know what happens with the ncurses in sngrep, but I finally looked them side by side and …. “Hey! This one’s missing bytes!” Ben Kaufman Sr. VoIP Engineer P: E: bkauf...@nexvortex.com<mailto:bkauf...@nexvortex.com> 24 hour client support: 855.639.6300 From: sr-users <mailto:sr-users-boun...@lists.kamailio.org> On Behalf Of Daniel W. Graham Sent: Thursday, July 1, 2021 10:25 AM To: Kamailio (SER) - Users Mailing List <mailto:sr-users@lists.kamailio.org> Subject: Re: [SR-Users] SECSIPID Identity Decode Haha, yep :) I wondered if that was biting me. -dan On Jul 1, 2021, at 11:07 AM, Ben Kaufman mailto:bkauf...@nexvortex.com>> wrote: I observed a similar behavior, but it was the result of my cutting and pasting the identity header from sngrep, which looks to have dropped a few bytes on the line break. Any chance that’s what you’re doing, too? Ben Kaufman Sr. VoIP Engineer P: E: bkauf...@nexvortex.com<mailto:bkauf...@nexvortex.com> 24 hour client support: 855.639.6300 From: sr-users mailto:sr-users-boun...@lists.kamailio.org>> On Behalf Of Daniel W. Graham Sent: Wednesday, June 30, 2021 10:31 PM To: Kamailio (SER) - Users Mailing List mailto:sr-users@lists.kamailio.org>>; David Villasmil mailto:david.villasmil.w...@gmail.com>>; Daniel-Constantin Mierla mailto:mico...@gmail.com>> Subject: Re: [SR-Users] SECSIPID Identity Decode Here is an example, payload taken from Identity header. Identity was added with secsipid_add_identity Payload test: $var(test) = "eyJhdHRlc3QiOiJBIiwiZGVzdCI6eyJ0biI6I5ODkyODkyMjgwIl19LCJpYXQiOjE2MjUxMDk2MzQsIm9yaWciOnsidG4iOiI5ODk0MDA0MjMwIn0sIm9yaWdpZCI6IjNmYmE4NTg0LTRkNzMtNGU2NC04NDc5LTQ5MjU2ZGIyMWFhYSJ9"; xlogl("L_WARN", "$(var(test){s.decode.base64t})\n"); Result is: {"attest":"A","dest":{"tn":#���#��##�#002%���&�#027B#�#023c#S#023#003�#023sB�&�&�r#��'F�#�#���C#003#003C#3#002'��&�&�v�B#�Vc�s#006f"�&6#026#022�CVCB�#023c3#022�3#0066#�#026#6#026S�r' -dan From: sr-users mailto:sr-users-boun...@lists.kamailio.org>> on behalf of Daniel Graham mailto:d...@cmsinter.net>> Reply-To: "Kamailio (SER) - Users Mailing List" mailto:sr-users@lists.kamailio.org>> Date: Wednesday, June 30, 2021 at 5:32 PM To: David Villasmil mailto:david.villasmil.w...@gmail.com>>, "mico...@gmail.com<mailto:mico...@gmail.com>" mailto:mico...@gmail.com>>, "Kamailio (SER) - Users Mailing List" mailto:sr-users@lists.kamailio.org>> Subject: Re: [SR-Users] SECSIPID Identity Decode That’s the same way I am doing it, I was just trying to do a verification that the identity header/payload was correct before activating new changes. I will do further testing and share results. Just found it odd that the header would decode but payload wouldn’t. Daniel W. Graham, CTO CMSInter.net LLC DIRECT (989) 400-4230 INTERNET | TELEPHONE | MANAGED IT From: David Villasmil mailto:david.villasmil.w...@gmail.com>> Date: Wednesday, June 30, 2021 at 4:06 PM To: "mico...@gmail.com<mailto:mico...@gmail.com>" mailto:mico...@gmail.com>>, "Kama
Re: [SR-Users] SECSIPID Identity Decode
I need to immediately get the uuid created by secsipid_add_identity(). Is there a way to immediately read a header after its added? I tried msg_apply_changes() but $hdr(Identity) is null. -dan From: sr-users on behalf of Daniel Graham Reply-To: "Kamailio (SER) - Users Mailing List" Date: Thursday, July 1, 2021 at 6:11 PM To: "Kamailio (SER) - Users Mailing List" Subject: Re: [SR-Users] SECSIPID Identity Decode Confirmed it was due to the sngrep copy. Thanks for mentioning it! -dan From: sr-users on behalf of Ben Kaufman Reply-To: "Kamailio (SER) - Users Mailing List" Date: Thursday, July 1, 2021 at 12:49 PM To: "Kamailio (SER) - Users Mailing List" Subject: Re: [SR-Users] SECSIPID Identity Decode Dump the header to your log file, and copy it from there. I don’t know what happens with the ncurses in sngrep, but I finally looked them side by side and …. “Hey! This one’s missing bytes!” Ben Kaufman Sr. VoIP Engineer P: E: bkauf...@nexvortex.com<mailto:bkauf...@nexvortex.com> 24 hour client support: 855.639.6300 From: sr-users On Behalf Of Daniel W. Graham Sent: Thursday, July 1, 2021 10:25 AM To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] SECSIPID Identity Decode Haha, yep :) I wondered if that was biting me. -dan On Jul 1, 2021, at 11:07 AM, Ben Kaufman mailto:bkauf...@nexvortex.com>> wrote: I observed a similar behavior, but it was the result of my cutting and pasting the identity header from sngrep, which looks to have dropped a few bytes on the line break. Any chance that’s what you’re doing, too? Ben Kaufman Sr. VoIP Engineer P: E: bkauf...@nexvortex.com<mailto:bkauf...@nexvortex.com> 24 hour client support: 855.639.6300 From: sr-users mailto:sr-users-boun...@lists.kamailio.org>> On Behalf Of Daniel W. Graham Sent: Wednesday, June 30, 2021 10:31 PM To: Kamailio (SER) - Users Mailing List mailto:sr-users@lists.kamailio.org>>; David Villasmil mailto:david.villasmil.w...@gmail.com>>; Daniel-Constantin Mierla mailto:mico...@gmail.com>> Subject: Re: [SR-Users] SECSIPID Identity Decode Here is an example, payload taken from Identity header. Identity was added with secsipid_add_identity Payload test: $var(test) = "eyJhdHRlc3QiOiJBIiwiZGVzdCI6eyJ0biI6I5ODkyODkyMjgwIl19LCJpYXQiOjE2MjUxMDk2MzQsIm9yaWciOnsidG4iOiI5ODk0MDA0MjMwIn0sIm9yaWdpZCI6IjNmYmE4NTg0LTRkNzMtNGU2NC04NDc5LTQ5MjU2ZGIyMWFhYSJ9"; xlogl("L_WARN", "$(var(test){s.decode.base64t})\n"); Result is: {"attest":"A","dest":{"tn":#���#��##�#002%���&�#027B#�#023c#S#023#003�#023sB�&�&�r#��'F�#�#���C#003#003C#3#002'��&�&�v�B#�Vc�s#006f"�&6#026#022�CVCB�#023c3#022�3#0066#�#026#6#026S�r' -dan From: sr-users mailto:sr-users-boun...@lists.kamailio.org>> on behalf of Daniel Graham mailto:d...@cmsinter.net>> Reply-To: "Kamailio (SER) - Users Mailing List" mailto:sr-users@lists.kamailio.org>> Date: Wednesday, June 30, 2021 at 5:32 PM To: David Villasmil mailto:david.villasmil.w...@gmail.com>>, "mico...@gmail.com<mailto:mico...@gmail.com>" mailto:mico...@gmail.com>>, "Kamailio (SER) - Users Mailing List" mailto:sr-users@lists.kamailio.org>> Subject: Re: [SR-Users] SECSIPID Identity Decode That’s the same way I am doing it, I was just trying to do a verification that the identity header/payload was correct before activating new changes. I will do further testing and share results. Just found it odd that the header would decode but payload wouldn’t. Daniel W. Graham, CTO CMSInter.net LLC DIRECT (989) 400-4230 INTERNET | TELEPHONE | MANAGED IT From: David Villasmil mailto:david.villasmil.w...@gmail.com>> Date: Wednesday, June 30, 2021 at 4:06 PM To: "mico...@gmail.com<mailto:mico...@gmail.com>" mailto:mico...@gmail.com>>, "Kamailio (SER) - Users Mailing List" mailto:sr-users@lists.kamailio.org>> Cc: Daniel Graham mailto:d...@cmsinter.net>> Subject: Re: [SR-Users] SECSIPID Identity Decode I DO IT WITH: # Break JWT $var(jwt1) = $(hdr(Identity){s.select,0,.}{s.decode.base64t}); $var(jwt2) = $(hdr(Identity){s.select,1,.}{s.decode.base64t}); Regards, David Villasmil email: david.villasmil.w...@gmail.com<mailto:david.villasmil.w...@gmail.com> phone: +34669448337 On Wed, Jun 30, 2021 at 8:48 PM Daniel-Constantin Mierla mailto:mico...@gmail.com>> wrote: Hello, not familiar with python functions, have you tried with Kamailio transformation? https://www.kamailio.org/wiki/cookbooks/5.5.x/transformations#sdecodebase64url Maybe you have to specify in Python that it is ASCII, I remember I had to do decoding when porting kamcli to work with Python3 -- had to change from using directly the variables received as parameter to a decoded valu
Re: [SR-Users] SECSIPID Identity Decode
Confirmed it was due to the sngrep copy. Thanks for mentioning it! -dan From: sr-users on behalf of Ben Kaufman Reply-To: "Kamailio (SER) - Users Mailing List" Date: Thursday, July 1, 2021 at 12:49 PM To: "Kamailio (SER) - Users Mailing List" Subject: Re: [SR-Users] SECSIPID Identity Decode Dump the header to your log file, and copy it from there. I don’t know what happens with the ncurses in sngrep, but I finally looked them side by side and …. “Hey! This one’s missing bytes!” Ben Kaufman Sr. VoIP Engineer P: E: bkauf...@nexvortex.com<mailto:bkauf...@nexvortex.com> 24 hour client support: 855.639.6300 From: sr-users On Behalf Of Daniel W. Graham Sent: Thursday, July 1, 2021 10:25 AM To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] SECSIPID Identity Decode Haha, yep :) I wondered if that was biting me. -dan On Jul 1, 2021, at 11:07 AM, Ben Kaufman mailto:bkauf...@nexvortex.com>> wrote: I observed a similar behavior, but it was the result of my cutting and pasting the identity header from sngrep, which looks to have dropped a few bytes on the line break. Any chance that’s what you’re doing, too? Ben Kaufman Sr. VoIP Engineer P: E: bkauf...@nexvortex.com<mailto:bkauf...@nexvortex.com> 24 hour client support: 855.639.6300 From: sr-users mailto:sr-users-boun...@lists.kamailio.org>> On Behalf Of Daniel W. Graham Sent: Wednesday, June 30, 2021 10:31 PM To: Kamailio (SER) - Users Mailing List mailto:sr-users@lists.kamailio.org>>; David Villasmil mailto:david.villasmil.w...@gmail.com>>; Daniel-Constantin Mierla mailto:mico...@gmail.com>> Subject: Re: [SR-Users] SECSIPID Identity Decode Here is an example, payload taken from Identity header. Identity was added with secsipid_add_identity Payload test: $var(test) = "eyJhdHRlc3QiOiJBIiwiZGVzdCI6eyJ0biI6I5ODkyODkyMjgwIl19LCJpYXQiOjE2MjUxMDk2MzQsIm9yaWciOnsidG4iOiI5ODk0MDA0MjMwIn0sIm9yaWdpZCI6IjNmYmE4NTg0LTRkNzMtNGU2NC04NDc5LTQ5MjU2ZGIyMWFhYSJ9"; xlogl("L_WARN", "$(var(test){s.decode.base64t})\n"); Result is: {"attest":"A","dest":{"tn":#���#��##�#002%���&�#027B#�#023c#S#023#003�#023sB�&�&�r#��'F�#�#���C#003#003C#3#002'��&�&�v�B#�Vc�s#006f"�&6#026#022�CVCB�#023c3#022�3#0066#�#026#6#026S�r' -dan From: sr-users mailto:sr-users-boun...@lists.kamailio.org>> on behalf of Daniel Graham mailto:d...@cmsinter.net>> Reply-To: "Kamailio (SER) - Users Mailing List" mailto:sr-users@lists.kamailio.org>> Date: Wednesday, June 30, 2021 at 5:32 PM To: David Villasmil mailto:david.villasmil.w...@gmail.com>>, "mico...@gmail.com<mailto:mico...@gmail.com>" mailto:mico...@gmail.com>>, "Kamailio (SER) - Users Mailing List" mailto:sr-users@lists.kamailio.org>> Subject: Re: [SR-Users] SECSIPID Identity Decode That’s the same way I am doing it, I was just trying to do a verification that the identity header/payload was correct before activating new changes. I will do further testing and share results. Just found it odd that the header would decode but payload wouldn’t. Daniel W. Graham, CTO CMSInter.net LLC DIRECT (989) 400-4230 INTERNET | TELEPHONE | MANAGED IT From: David Villasmil mailto:david.villasmil.w...@gmail.com>> Date: Wednesday, June 30, 2021 at 4:06 PM To: "mico...@gmail.com<mailto:mico...@gmail.com>" mailto:mico...@gmail.com>>, "Kamailio (SER) - Users Mailing List" mailto:sr-users@lists.kamailio.org>> Cc: Daniel Graham mailto:d...@cmsinter.net>> Subject: Re: [SR-Users] SECSIPID Identity Decode I DO IT WITH: # Break JWT $var(jwt1) = $(hdr(Identity){s.select,0,.}{s.decode.base64t}); $var(jwt2) = $(hdr(Identity){s.select,1,.}{s.decode.base64t}); Regards, David Villasmil email: david.villasmil.w...@gmail.com<mailto:david.villasmil.w...@gmail.com> phone: +34669448337 On Wed, Jun 30, 2021 at 8:48 PM Daniel-Constantin Mierla mailto:mico...@gmail.com>> wrote: Hello, not familiar with python functions, have you tried with Kamailio transformation? https://www.kamailio.org/wiki/cookbooks/5.5.x/transformations#sdecodebase64url Maybe you have to specify in Python that it is ASCII, I remember I had to do decoding when porting kamcli to work with Python3 -- had to change from using directly the variables received as parameter to a decoded value, something like: prefix = tprefix.encode("ascii", "ignore").decode() Also, if you can, share the identity header here to test with and see if can be reproduced. Cheers, Daniel On 30.06.21 21:14, Daniel W. Graham wrote: I am unable to base64url decode the json payload in identity header generated by secsipid. (Using python for test) decoded_payload = url64.de
Re: [SR-Users] SECSIPID Identity Decode
Haha, yep :) I wondered if that was biting me. -dan On Jul 1, 2021, at 11:07 AM, Ben Kaufman wrote: I observed a similar behavior, but it was the result of my cutting and pasting the identity header from sngrep, which looks to have dropped a few bytes on the line break. Any chance that’s what you’re doing, too? Ben Kaufman Sr. VoIP Engineer P: E: bkauf...@nexvortex.com<mailto:bkauf...@nexvortex.com> 24 hour client support: 855.639.6300 From: sr-users On Behalf Of Daniel W. Graham Sent: Wednesday, June 30, 2021 10:31 PM To: Kamailio (SER) - Users Mailing List ; David Villasmil ; Daniel-Constantin Mierla Subject: Re: [SR-Users] SECSIPID Identity Decode Here is an example, payload taken from Identity header. Identity was added with secsipid_add_identity Payload test: $var(test) = "eyJhdHRlc3QiOiJBIiwiZGVzdCI6eyJ0biI6I5ODkyODkyMjgwIl19LCJpYXQiOjE2MjUxMDk2MzQsIm9yaWciOnsidG4iOiI5ODk0MDA0MjMwIn0sIm9yaWdpZCI6IjNmYmE4NTg0LTRkNzMtNGU2NC04NDc5LTQ5MjU2ZGIyMWFhYSJ9"; xlogl("L_WARN", "$(var(test){s.decode.base64t})\n"); Result is: {"attest":"A","dest":{"tn":#���#��##�#002%���&�#027B#�#023c#S#023#003�#023sB�&�&�r#��'F�#�#���C#003#003C#3#002'��&�&�v�B#�Vc�s#006f"�&6#026#022�CVCB�#023c3#022�3#0066#�#026#6#026S�r' -dan From: sr-users mailto:sr-users-boun...@lists.kamailio.org>> on behalf of Daniel Graham mailto:d...@cmsinter.net>> Reply-To: "Kamailio (SER) - Users Mailing List" mailto:sr-users@lists.kamailio.org>> Date: Wednesday, June 30, 2021 at 5:32 PM To: David Villasmil mailto:david.villasmil.w...@gmail.com>>, "mico...@gmail.com<mailto:mico...@gmail.com>" mailto:mico...@gmail.com>>, "Kamailio (SER) - Users Mailing List" mailto:sr-users@lists.kamailio.org>> Subject: Re: [SR-Users] SECSIPID Identity Decode That’s the same way I am doing it, I was just trying to do a verification that the identity header/payload was correct before activating new changes. I will do further testing and share results. Just found it odd that the header would decode but payload wouldn’t. Daniel W. Graham, CTO CMSInter.net LLC DIRECT (989) 400-4230 INTERNET | TELEPHONE | MANAGED IT From: David Villasmil mailto:david.villasmil.w...@gmail.com>> Date: Wednesday, June 30, 2021 at 4:06 PM To: "mico...@gmail.com<mailto:mico...@gmail.com>" mailto:mico...@gmail.com>>, "Kamailio (SER) - Users Mailing List" mailto:sr-users@lists.kamailio.org>> Cc: Daniel Graham mailto:d...@cmsinter.net>> Subject: Re: [SR-Users] SECSIPID Identity Decode I DO IT WITH: # Break JWT $var(jwt1) = $(hdr(Identity){s.select,0,.}{s.decode.base64t}); $var(jwt2) = $(hdr(Identity){s.select,1,.}{s.decode.base64t}); Regards, David Villasmil email: david.villasmil.w...@gmail.com<mailto:david.villasmil.w...@gmail.com> phone: +34669448337 On Wed, Jun 30, 2021 at 8:48 PM Daniel-Constantin Mierla mailto:mico...@gmail.com>> wrote: Hello, not familiar with python functions, have you tried with Kamailio transformation? https://www.kamailio.org/wiki/cookbooks/5.5.x/transformations#sdecodebase64url Maybe you have to specify in Python that it is ASCII, I remember I had to do decoding when porting kamcli to work with Python3 -- had to change from using directly the variables received as parameter to a decoded value, something like: prefix = tprefix.encode("ascii", "ignore").decode() Also, if you can, share the identity header here to test with and see if can be reproduced. Cheers, Daniel On 30.06.21 21:14, Daniel W. Graham wrote: I am unable to base64url decode the json payload in identity header generated by secsipid. (Using python for test) decoded_payload = url64.decode(‘payload’) UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc2 in position 27: invalid continuation byte Header decodes fine this way but not payload. Is this an issue with the payload encoding? Kamailio 5.5 Daniel W. Graham, CTO CMSInter.net LLC DIRECT (989) 400-4230 INTERNET | TELEPHONE | MANAGED IT __ Kamailio - Users Mailing List - Non Commercial Discussions * sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org> Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users -- Daniel-Constantin Mierla -- www.asipto.com<http://www.asipto.com> www.twitter.com/miconda<http://www.twitter.com/miconda> -- www.linkedin.com/in/miconda<http://www.linkedin.com/in/miconda> __ Kamailio - Users Mailing List - Non Commercial Discussions * sr-users@lists.kamailio.org<mailto:sr-users@li
Re: [SR-Users] SECSIPID Identity Decode
fU and rU are 10 digit numbers. My public key path is 81 characters long, could that be an issue? if (!secsipid_add_identity("$fU", "$rU", "A", "","https://publickeypath.crt","/privatekeypath/shaken.pem;) { … } -dan On Jul 1, 2021, at 2:37 AM, Daniel-Constantin Mierla wrote: Maybe the parameters provided to generate the header have some invalid values. Can you give the relevant config snippets for generating the header? Cheers, Daniel On 01.07.21 05:31, Daniel W. Graham wrote: Here is an example, payload taken from Identity header. Identity was added with secsipid_add_identity Payload test: $var(test) = "eyJhdHRlc3QiOiJBIiwiZGVzdCI6eyJ0biI6I5ODkyODkyMjgwIl19LCJpYXQiOjE2MjUxMDk2MzQsIm9yaWciOnsidG4iOiI5ODk0MDA0MjMwIn0sIm9yaWdpZCI6IjNmYmE4NTg0LTRkNzMtNGU2NC04NDc5LTQ5MjU2ZGIyMWFhYSJ9"; xlogl("L_WARN", "$(var(test){s.decode.base64t})\n"); Result is: {"attest":"A","dest":{"tn":#���#��##�#002%���&�#027B#�#023c#S#023#003�#023sB�&�&�r#��'F�#�#���C#003#003C#3#002'��&�&�v�B#�Vc�s#006f"�&6#026#022�CVCB�#023c3#022�3#0066#�#026#6#026S�r' -dan From: sr-users <mailto:sr-users-boun...@lists.kamailio.org> on behalf of Daniel Graham <mailto:d...@cmsinter.net> Reply-To: "Kamailio (SER) - Users Mailing List" <mailto:sr-users@lists.kamailio.org> Date: Wednesday, June 30, 2021 at 5:32 PM To: David Villasmil <mailto:david.villasmil.w...@gmail.com>, "mico...@gmail.com"<mailto:mico...@gmail.com> <mailto:mico...@gmail.com>, "Kamailio (SER) - Users Mailing List" <mailto:sr-users@lists.kamailio.org> Subject: Re: [SR-Users] SECSIPID Identity Decode That’s the same way I am doing it, I was just trying to do a verification that the identity header/payload was correct before activating new changes. I will do further testing and share results. Just found it odd that the header would decode but payload wouldn’t. Daniel W. Graham, CTO CMSInter.net LLC DIRECT (989) 400-4230 INTERNET | TELEPHONE | MANAGED IT From: David Villasmil <mailto:david.villasmil.w...@gmail.com> Date: Wednesday, June 30, 2021 at 4:06 PM To: "mico...@gmail.com"<mailto:mico...@gmail.com> <mailto:mico...@gmail.com>, "Kamailio (SER) - Users Mailing List" <mailto:sr-users@lists.kamailio.org> Cc: Daniel Graham <mailto:d...@cmsinter.net> Subject: Re: [SR-Users] SECSIPID Identity Decode I DO IT WITH: # Break JWT $var(jwt1) = $(hdr(Identity){s.select,0,.}{s.decode.base64t}); $var(jwt2) = $(hdr(Identity){s.select,1,.}{s.decode.base64t}); Regards, David Villasmil email: david.villasmil.w...@gmail.com<mailto:david.villasmil.w...@gmail.com> phone: +34669448337 On Wed, Jun 30, 2021 at 8:48 PM Daniel-Constantin Mierla mailto:mico...@gmail.com>> wrote: Hello, not familiar with python functions, have you tried with Kamailio transformation? https://www.kamailio.org/wiki/cookbooks/5.5.x/transformations#sdecodebase64url Maybe you have to specify in Python that it is ASCII, I remember I had to do decoding when porting kamcli to work with Python3 -- had to change from using directly the variables received as parameter to a decoded value, something like: prefix = tprefix.encode("ascii", "ignore").decode() Also, if you can, share the identity header here to test with and see if can be reproduced. Cheers, Daniel On 30.06.21 21:14, Daniel W. Graham wrote: I am unable to base64url decode the json payload in identity header generated by secsipid. (Using python for test) decoded_payload = url64.decode(‘payload’) UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc2 in position 27: invalid continuation byte Header decodes fine this way but not payload. Is this an issue with the payload encoding? Kamailio 5.5 Daniel W. Graham, CTO CMSInter.net LLC DIRECT (989) 400-4230 INTERNET | TELEPHONE | MANAGED IT __ Kamailio - Users Mailing List - Non Commercial Discussions * sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org> Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users -- Daniel-Constantin Mierla -- www.asipto.com<http://www.asipto.com> www.twitter.com/miconda<http://www.twitter.com/miconda> -- www.linkedin.com/in/miconda<http://www.linkedin.com/in/miconda> __ Kamailio - Users Mailing List - Non Commercial Discussions * sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org> Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or u
Re: [SR-Users] SECSIPID Identity Decode
Here is an example, payload taken from Identity header. Identity was added with secsipid_add_identity Payload test: $var(test) = "eyJhdHRlc3QiOiJBIiwiZGVzdCI6eyJ0biI6I5ODkyODkyMjgwIl19LCJpYXQiOjE2MjUxMDk2MzQsIm9yaWciOnsidG4iOiI5ODk0MDA0MjMwIn0sIm9yaWdpZCI6IjNmYmE4NTg0LTRkNzMtNGU2NC04NDc5LTQ5MjU2ZGIyMWFhYSJ9"; xlogl("L_WARN", "$(var(test){s.decode.base64t})\n"); Result is: {"attest":"A","dest":{"tn":#���#��##�#002%���&�#027B#�#023c#S#023#003�#023sB�&�&�r#��'F�#�#���C#003#003C#3#002'��&�&�v�B#�Vc�s#006f"�&6#026#022�CVCB�#023c3#022�3#0066#�#026#6#026S�r' -dan From: sr-users on behalf of Daniel Graham Reply-To: "Kamailio (SER) - Users Mailing List" Date: Wednesday, June 30, 2021 at 5:32 PM To: David Villasmil , "mico...@gmail.com" , "Kamailio (SER) - Users Mailing List" Subject: Re: [SR-Users] SECSIPID Identity Decode That’s the same way I am doing it, I was just trying to do a verification that the identity header/payload was correct before activating new changes. I will do further testing and share results. Just found it odd that the header would decode but payload wouldn’t. Daniel W. Graham, CTO CMSInter.net LLC DIRECT (989) 400-4230 INTERNET | TELEPHONE | MANAGED IT From: David Villasmil Date: Wednesday, June 30, 2021 at 4:06 PM To: "mico...@gmail.com" , "Kamailio (SER) - Users Mailing List" Cc: Daniel Graham Subject: Re: [SR-Users] SECSIPID Identity Decode I DO IT WITH: # Break JWT $var(jwt1) = $(hdr(Identity){s.select,0,.}{s.decode.base64t}); $var(jwt2) = $(hdr(Identity){s.select,1,.}{s.decode.base64t}); Regards, David Villasmil email: david.villasmil.w...@gmail.com<mailto:david.villasmil.w...@gmail.com> phone: +34669448337 On Wed, Jun 30, 2021 at 8:48 PM Daniel-Constantin Mierla mailto:mico...@gmail.com>> wrote: Hello, not familiar with python functions, have you tried with Kamailio transformation? https://www.kamailio.org/wiki/cookbooks/5.5.x/transformations#sdecodebase64url Maybe you have to specify in Python that it is ASCII, I remember I had to do decoding when porting kamcli to work with Python3 -- had to change from using directly the variables received as parameter to a decoded value, something like: prefix = tprefix.encode("ascii", "ignore").decode() Also, if you can, share the identity header here to test with and see if can be reproduced. Cheers, Daniel On 30.06.21 21:14, Daniel W. Graham wrote: I am unable to base64url decode the json payload in identity header generated by secsipid. (Using python for test) decoded_payload = url64.decode(‘payload’) UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc2 in position 27: invalid continuation byte Header decodes fine this way but not payload. Is this an issue with the payload encoding? Kamailio 5.5 Daniel W. Graham, CTO CMSInter.net LLC DIRECT (989) 400-4230 INTERNET | TELEPHONE | MANAGED IT __ Kamailio - Users Mailing List - Non Commercial Discussions * sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org> Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users -- Daniel-Constantin Mierla -- www.asipto.com<http://www.asipto.com> www.twitter.com/miconda<http://www.twitter.com/miconda> -- www.linkedin.com/in/miconda<http://www.linkedin.com/in/miconda> __ Kamailio - Users Mailing List - Non Commercial Discussions * sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org> Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users __ Kamailio - Users Mailing List - Non Commercial Discussions * sr-users@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] SECSIPID Identity Decode
That’s the same way I am doing it, I was just trying to do a verification that the identity header/payload was correct before activating new changes. I will do further testing and share results. Just found it odd that the header would decode but payload wouldn’t. Daniel W. Graham, CTO CMSInter.net LLC DIRECT (989) 400-4230 INTERNET | TELEPHONE | MANAGED IT From: David Villasmil Date: Wednesday, June 30, 2021 at 4:06 PM To: "mico...@gmail.com" , "Kamailio (SER) - Users Mailing List" Cc: Daniel Graham Subject: Re: [SR-Users] SECSIPID Identity Decode I DO IT WITH: # Break JWT $var(jwt1) = $(hdr(Identity){s.select,0,.}{s.decode.base64t}); $var(jwt2) = $(hdr(Identity){s.select,1,.}{s.decode.base64t}); Regards, David Villasmil email: david.villasmil.w...@gmail.com<mailto:david.villasmil.w...@gmail.com> phone: +34669448337 On Wed, Jun 30, 2021 at 8:48 PM Daniel-Constantin Mierla mailto:mico...@gmail.com>> wrote: Hello, not familiar with python functions, have you tried with Kamailio transformation? https://www.kamailio.org/wiki/cookbooks/5.5.x/transformations#sdecodebase64url Maybe you have to specify in Python that it is ASCII, I remember I had to do decoding when porting kamcli to work with Python3 -- had to change from using directly the variables received as parameter to a decoded value, something like: prefix = tprefix.encode("ascii", "ignore").decode() Also, if you can, share the identity header here to test with and see if can be reproduced. Cheers, Daniel On 30.06.21 21:14, Daniel W. Graham wrote: I am unable to base64url decode the json payload in identity header generated by secsipid. (Using python for test) decoded_payload = url64.decode(‘payload’) UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc2 in position 27: invalid continuation byte Header decodes fine this way but not payload. Is this an issue with the payload encoding? Kamailio 5.5 Daniel W. Graham, CTO CMSInter.net LLC DIRECT (989) 400-4230 INTERNET | TELEPHONE | MANAGED IT __ Kamailio - Users Mailing List - Non Commercial Discussions * sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org> Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users -- Daniel-Constantin Mierla -- www.asipto.com<http://www.asipto.com> www.twitter.com/miconda<http://www.twitter.com/miconda> -- www.linkedin.com/in/miconda<http://www.linkedin.com/in/miconda> __ Kamailio - Users Mailing List - Non Commercial Discussions * sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org> Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users __ Kamailio - Users Mailing List - Non Commercial Discussions * sr-users@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] Errors after upgrade to 5.5
That took care of it and explains why the upgrade triggered this to happen. Thanks! -dan From: "mico...@gmail.com" Reply-To: "mico...@gmail.com" Date: Sunday, June 20, 2021 at 5:19 AM To: Daniel Graham , "Kamailio (SER) - Users Mailing List" Subject: Re: [SR-Users] Errors after upgrade to 5.5 OK, so it is pretty old, like you had a version where the latency measurement was not working properly. The error messages are because you have: latency_log=1 * https://www.kamailio.org/wiki/cookbooks/5.5.x/core#latency_log And lower values for latency_limit_action and latency_limit_action than what is printed in the logs. Their values are in microseconds, so based on the logs the execution is 1-2 milliseconds. Cheers, Daniel On 20.06.21 08:02, Daniel W. Graham wrote: 5.1 I made all changes listed in: https://www.kamailio.org/wiki/install/upgrade/5.1.x-to-5.2.0 https://www.kamailio.org/wiki/install/upgrade/5.2.x-to-5.3.0 https://www.kamailio.org/wiki/install/upgrade/5.3.x-to-5.4.0 https://www.kamailio.org/wiki/install/upgrade/5.4.x-to-5.5.0 Daniel W. Graham, CTO CMSInter.net LLC DIRECT (989) 400-4230 INTERNET | TELEPHONE | MANAGED IT From: "mico...@gmail.com"<mailto:mico...@gmail.com> <mailto:mico...@gmail.com> Reply-To: "mico...@gmail.com"<mailto:mico...@gmail.com> <mailto:mico...@gmail.com> Date: Sunday, June 20, 2021 at 2:01 AM To: "Kamailio (SER) - Users Mailing List" <mailto:sr-users@lists.kamailio.org>, Daniel Graham <mailto:d...@cmsinter.net> Subject: Re: [SR-Users] Errors after upgrade to 5.5 Hello, what is the version you upgraded from? Cheers, Daniel On 20.06.21 07:41, Daniel W. Graham wrote: Receiving constant errors for all functions after upgrade to 5.5, any change that could have caused this? ERROR: [core/action.c:1598]: run_actions(): alert - action [corefunc (16)] cfg [/usr/local/etc/kamailio/kamailio.cfg:968] took too long [1251 us] ERROR: [core/action.c:1598]: run_actions(): alert - action [corefunc (16)] cfg [/usr/local/etc/kamailio/kamailio.cfg:988] took too long [1309 us] ERROR: [core/action.c:1598]: run_actions(): alert - action [corefunc (16)] cfg [/usr/local/etc/kamailio/kamailio.cfg:1038] took too long [1321 us] ERROR: [core/action.c:1598]: run_actions(): alert - action [corefunc (5)] cfg [/usr/local/etc/kamailio/kamailio.cfg:452] took too long [1342 us] ERROR: [db_query.c:68]: db_do_submit_query(): alert - query execution too long [1493 us] for [select `password`,`id` from `subscriber` where `username`='x'] ERROR: [core/action.c:1598]: run_actions(): alert - action [www_authenticate (26)] cfg [/usr/local/etc/kamailio/kamailio.cfg:951] took too long [1667 us] ERROR: [core/action.c:1598]: run_actions(): alert - action [corefunc (16)] cfg [/usr/local/etc/kamailio/kamailio.cfg:968] took too long [1694 us] ERROR: [core/action.c:1598]: run_actions(): alert - action [corefunc (16)] cfg [/usr/local/etc/kamailio/kamailio.cfg:988] took too long [1817 us] ERROR: [core/action.c:1598]: run_actions(): alert - action [corefunc (16)] cfg [/usr/local/etc/kamailio/kamailio.cfg:1038] took too long [1835 us] ERROR: [core/action.c:1598]: run_actions(): alert - action [corefunc (5)] cfg [/usr/local/etc/kamailio/kamailio.cfg:452] took too long [1869 us] ERROR: [core/action.c:1598]: run_actions(): alert - action [www_authenticate (26)] cfg [/usr/local/etc/kamailio/kamailio.cfg:951] took too long [1405 us] ……. -dan __ Kamailio - Users Mailing List - Non Commercial Discussions * sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org> Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users -- Daniel-Constantin Mierla -- www.asipto.com<http://www.asipto.com> www.twitter.com/miconda<http://www.twitter.com/miconda> -- www.linkedin.com/in/miconda<http://www.linkedin.com/in/miconda> -- Daniel-Constantin Mierla -- www.asipto.com<http://www.asipto.com> www.twitter.com/miconda<http://www.twitter.com/miconda> -- www.linkedin.com/in/miconda<http://www.linkedin.com/in/miconda> __ Kamailio - Users Mailing List - Non Commercial Discussions * sr-users@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] Errors after upgrade to 5.5
5.1 I made all changes listed in: https://www.kamailio.org/wiki/install/upgrade/5.1.x-to-5.2.0 https://www.kamailio.org/wiki/install/upgrade/5.2.x-to-5.3.0 https://www.kamailio.org/wiki/install/upgrade/5.3.x-to-5.4.0 https://www.kamailio.org/wiki/install/upgrade/5.4.x-to-5.5.0 Daniel W. Graham, CTO CMSInter.net LLC DIRECT (989) 400-4230 INTERNET | TELEPHONE | MANAGED IT From: "mico...@gmail.com" Reply-To: "mico...@gmail.com" Date: Sunday, June 20, 2021 at 2:01 AM To: "Kamailio (SER) - Users Mailing List" , Daniel Graham Subject: Re: [SR-Users] Errors after upgrade to 5.5 Hello, what is the version you upgraded from? Cheers, Daniel On 20.06.21 07:41, Daniel W. Graham wrote: Receiving constant errors for all functions after upgrade to 5.5, any change that could have caused this? ERROR: [core/action.c:1598]: run_actions(): alert - action [corefunc (16)] cfg [/usr/local/etc/kamailio/kamailio.cfg:968] took too long [1251 us] ERROR: [core/action.c:1598]: run_actions(): alert - action [corefunc (16)] cfg [/usr/local/etc/kamailio/kamailio.cfg:988] took too long [1309 us] ERROR: [core/action.c:1598]: run_actions(): alert - action [corefunc (16)] cfg [/usr/local/etc/kamailio/kamailio.cfg:1038] took too long [1321 us] ERROR: [core/action.c:1598]: run_actions(): alert - action [corefunc (5)] cfg [/usr/local/etc/kamailio/kamailio.cfg:452] took too long [1342 us] ERROR: [db_query.c:68]: db_do_submit_query(): alert - query execution too long [1493 us] for [select `password`,`id` from `subscriber` where `username`='x'] ERROR: [core/action.c:1598]: run_actions(): alert - action [www_authenticate (26)] cfg [/usr/local/etc/kamailio/kamailio.cfg:951] took too long [1667 us] ERROR: [core/action.c:1598]: run_actions(): alert - action [corefunc (16)] cfg [/usr/local/etc/kamailio/kamailio.cfg:968] took too long [1694 us] ERROR: [core/action.c:1598]: run_actions(): alert - action [corefunc (16)] cfg [/usr/local/etc/kamailio/kamailio.cfg:988] took too long [1817 us] ERROR: [core/action.c:1598]: run_actions(): alert - action [corefunc (16)] cfg [/usr/local/etc/kamailio/kamailio.cfg:1038] took too long [1835 us] ERROR: [core/action.c:1598]: run_actions(): alert - action [corefunc (5)] cfg [/usr/local/etc/kamailio/kamailio.cfg:452] took too long [1869 us] ERROR: [core/action.c:1598]: run_actions(): alert - action [www_authenticate (26)] cfg [/usr/local/etc/kamailio/kamailio.cfg:951] took too long [1405 us] ……. -dan __ Kamailio - Users Mailing List - Non Commercial Discussions * sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org> Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users -- Daniel-Constantin Mierla -- www.asipto.com<http://www.asipto.com> www.twitter.com/miconda<http://www.twitter.com/miconda> -- www.linkedin.com/in/miconda<http://www.linkedin.com/in/miconda> __ Kamailio - Users Mailing List - Non Commercial Discussions * sr-users@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
[SR-Users] Errors after upgrade to 5.5
Receiving constant errors for all functions after upgrade to 5.5, any change that could have caused this? ERROR: [core/action.c:1598]: run_actions(): alert - action [corefunc (16)] cfg [/usr/local/etc/kamailio/kamailio.cfg:968] took too long [1251 us] ERROR: [core/action.c:1598]: run_actions(): alert - action [corefunc (16)] cfg [/usr/local/etc/kamailio/kamailio.cfg:988] took too long [1309 us] ERROR: [core/action.c:1598]: run_actions(): alert - action [corefunc (16)] cfg [/usr/local/etc/kamailio/kamailio.cfg:1038] took too long [1321 us] ERROR: [core/action.c:1598]: run_actions(): alert - action [corefunc (5)] cfg [/usr/local/etc/kamailio/kamailio.cfg:452] took too long [1342 us] ERROR: [db_query.c:68]: db_do_submit_query(): alert - query execution too long [1493 us] for [select `password`,`id` from `subscriber` where `username`='x'] ERROR: [core/action.c:1598]: run_actions(): alert - action [www_authenticate (26)] cfg [/usr/local/etc/kamailio/kamailio.cfg:951] took too long [1667 us] ERROR: [core/action.c:1598]: run_actions(): alert - action [corefunc (16)] cfg [/usr/local/etc/kamailio/kamailio.cfg:968] took too long [1694 us] ERROR: [core/action.c:1598]: run_actions(): alert - action [corefunc (16)] cfg [/usr/local/etc/kamailio/kamailio.cfg:988] took too long [1817 us] ERROR: [core/action.c:1598]: run_actions(): alert - action [corefunc (16)] cfg [/usr/local/etc/kamailio/kamailio.cfg:1038] took too long [1835 us] ERROR: [core/action.c:1598]: run_actions(): alert - action [corefunc (5)] cfg [/usr/local/etc/kamailio/kamailio.cfg:452] took too long [1869 us] ERROR: [core/action.c:1598]: run_actions(): alert - action [www_authenticate (26)] cfg [/usr/local/etc/kamailio/kamailio.cfg:951] took too long [1405 us] ……. -dan __ Kamailio - Users Mailing List - Non Commercial Discussions * sr-users@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] Callee BYE routing issue
The space is just a result of me sanitizing the example. The issue here is most certainly the way the B2BUA is handling the contact alias sent by kamailio. I will have to come up with another plan. Thanks for the input! -dan On 4/12/20, 12:51 AM, "sr-users on behalf of Alex Balashov" wrote: That could jam the SIP parser and cause the message to be dropped, definitely. — Sent from my iPad > On Apr 12, 2020, at 12:39 AM, Luis Rojas G. wrote: > > On 4/11/20 12:24 PM, Alex Balashov wrote: >> Indeed. The From/To headers are cosmetic in this regard; no attribute of >> them would cause a routing problem[1]. >> >> -- Alex >> >> [1] Well, except for missing tags, I suppose; but even then, this would >> not pose a routing problem, just a dialog party identification problem >> to one or more UAs. >> > Hello, > > What about a syntax error in those headers? > > I am curious about this : > > "sip:398@ B2BUA_IP:" > > Why a space after "@"? > > Best regards, > > Luis > > -- > Luis Rojas > Software Architect > Sixbell > Los Leones 1200 > Providencia > Santiago, Chile > Phone: (+56-2) 22001288 > mailto:luis.ro...@sixbell.com > http://www.sixbell.com > > > ___ > Kamailio (SER) - Users Mailing List > 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 ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] Callee BYE routing issue
I’ve tested with two different UA types and same thing happens, must be a result of the B2BUA sending the alias in the To header of the invite. Example - 2020/04/10 12:31:36.851987 Proxy_IP:5060 -> NAT_Device_IP:58090 INVITE sip:399@UA1_IP:60916;rinstance=8ec7d4acf9c3436c SIP/2.0 Record-Route: Via: SIP/2.0/UDP Proxy_IP;branch=z9hG4bKbfa9.767ffbe5f0e31be8c27932008d28844e.0 Via: SIP/2.0/UDP B2BUA_IP:5160;received= B2BUA_IP;branch=z9hG4bK22bd58aa;rport=5160 Max-Forwards: 69 From: "Dan Test" ;tag=as4220330a To: Contact: Call-ID: 1835b7eb541743600e1b79c07615206c@ B2BUA_IP:5160 CSeq: 102 INVITE User-Agent: xx Date: Fri, 10 Apr 2020 16:31:34 GMT Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE Supported: replaces, timer P-Asserted-Identity: "Dan Test" Content-Type: application/sdp Content-Length: 566 The alias is in the contact header for the invite sent by kamailio, so everything looks fine there. Thanks, -dan From: sr-users on behalf of Sergiu Pojoga Reply-To: "Kamailio (SER) - Users Mailing List" Date: Friday, April 10, 2020 at 2:29 AM To: "Kamailio (SER) - Users Mailing List" Subject: Re: [SR-Users] Callee BYE routing issue From: ;tag=64f4b712 Something wrong with the above From, no closing ">", also there's no place for alias in From headers. On Fri, Apr 10, 2020 at 1:25 AM Daniel W. Graham mailto:d...@cmsinter.net>> wrote: Have an issue with BYE routing in a lab setup, any suggestions on what I should be looking at? Topology: UA1 <-> NAT device 1 <-> Proxy1 <-> Registrar/B2BUA <-> Proxy1 <-> NAT device 1 <-> UA2 All UA to UA calls flow through B2BUA. All IP’s are public except for UA1 and UA2. -Both endpoints can call each other. -If the caller hangs up first, BYE is routed properly. -If the callee hangs up first, BYE causes proxy to send 478. On calls where BYE results in 478: if(!isdsturiset()) { ………..not executed handle_ruri_alias() } return; Example issue call: UA2 to UA1, UA1 hang-up. Apr 10 00:31:28 edgedev /usr/local/sbin/kamailio[5317]: ERROR: {1 2 BYE 24dc84a4592515245177483c2a657042@B2BUA_IP:5160} *** cfgtrace:dbg_cfg_trace(): request_route=[DLGURI] c=[/usr/local/etc/kamailio/kamailio.cfg] l=540 a=16 n=if Apr 10 00:31:28 edgedev /usr/local/sbin/kamailio[5317]: ERROR: {1 2 BYE 24dc84a4592515245177483c2a657042@B2BUA_IP:5160} *** cfgtrace:dbg_cfg_trace(): request_route=[DLGURI] c=[/usr/local/etc/kamailio/kamailio.cfg] l=532 a=24 n=isdsturiset Apr 10 00:31:28 edgedev /usr/local/sbin/kamailio[5317]: ERROR: {1 2 BYE 24dc84a4592515245177483c2a657042@B2BUA_IP:5160} *** cfgtrace:dbg_cfg_trace(): request_route=[DLGURI] c=[/usr/local/etc/kamailio/kamailio.cfg] l=540 a=2 n=return ……….. Apr 10 00:31:28 edgedev /usr/local/sbin/kamailio[5317]: ERROR: {1 2 BYE 24dc84a4592515245177483c2a657042@B2BUA_IP:5160} tm [ut.h:245]: uri2dst2(): bad_uri: [sip::;transport=] Apr 10 00:31:28 edgedev /usr/local/sbin/kamailio[5317]: ERROR: {1 2 BYE 24dc84a4592515245177483c2a657042@B2BUA_IP:5160} tm [t_fwd.c:1732]: t_forward_nonack(): failure to add branches Apr 10 00:31:28 edgedev /usr/local/sbin/kamailio[5317]: ERROR: {1 2 BYE 24dc84a4592515245177483c2a657042@B2BUA_IP:5160} *** cfgtrace:dbg_cfg_trace(): request_route=[RELAY] c=[/usr/local/etc/kamailio/kamailio.cfg] l=275 a=24 n=sl_reply_error Apr 10 00:31:28 edgedev /usr/local/sbin/kamailio[5317]: ERROR: {1 2 BYE 24dc84a4592515245177483c2a657042@B2BUA_IP:5160} sl [sl_funcs.c:401]: sl_reply_error(): stateless error reply used: Unresolvable destination (478/SL) Apr 10 00:31:28 edgedev /usr/local/sbin/kamailio[5317]: ERROR: {1 2 BYE 24dc84a4592515245177483c2a657042@B2BUA_IP:5160} *** cfgtrace:dbg_cfg_trace(): request_route=[RELAY] c=[/usr/local/etc/kamailio/kamailio.cfg] l=277 a=2 n=exit 2020/04/10 00:31:28.625060 NAT_Device_IP:57808 -> Proxy_IP:5060 BYE sip:398@B2BUA_IP:5160 SIP/2.0 Via: SIP/2.0/UDP UA1_IP:52884;branch=z9hG4bK-524287-1---43b5f31829f20952 Max-Forwards: 70 Route: Contact: To: "Dan Test" ;tag=as78671fd9 From: ;tag=64f4b712 Call-ID: 24dc84a4592515245177483c2a657042@B2BUA_IP:5160 CSeq: 2 BYE User-Agent: Content-Length: 0 # For comparison, here is a BYE from another test call: UA1 to UA2, UA1 hang-up. This BYE was routed correctly. 2020/04/10 00:44:02.688608 NAT_Device_IP:57808 -> Proxy_IP:5060 BYE sip:398@B2BUA_IP:5160 SIP/2.0 Via: SIP/2.0/UDP UA1_IP:52884;branch=z9hG4bK-524287-1---ce36df02e8a80a48 Max-Forwards: 70 Route: Contact: To: ;tag=as5874901f From: ;tag=9078f232 Call-ID: 103104NGU1NjkxNGZkYmM4MzA3Y2FkMzY1OGNkZTZmMTMyZDU CSeq: 3 BYE User-Agent: Authorization: Digest username= Content-Length: 0 -dan ___ Kamailio (SER) - Users Mailing List sr-users@l
[SR-Users] Callee BYE routing issue
Have an issue with BYE routing in a lab setup, any suggestions on what I should be looking at? Topology: UA1 <-> NAT device 1 <-> Proxy1 <-> Registrar/B2BUA <-> Proxy1 <-> NAT device 1 <-> UA2 All UA to UA calls flow through B2BUA. All IP’s are public except for UA1 and UA2. -Both endpoints can call each other. -If the caller hangs up first, BYE is routed properly. -If the callee hangs up first, BYE causes proxy to send 478. On calls where BYE results in 478: if(!isdsturiset()) { ………..not executed handle_ruri_alias() } return; Example issue call: UA2 to UA1, UA1 hang-up. Apr 10 00:31:28 edgedev /usr/local/sbin/kamailio[5317]: ERROR: {1 2 BYE 24dc84a4592515245177483c2a657042@B2BUA_IP:5160} *** cfgtrace:dbg_cfg_trace(): request_route=[DLGURI] c=[/usr/local/etc/kamailio/kamailio.cfg] l=540 a=16 n=if Apr 10 00:31:28 edgedev /usr/local/sbin/kamailio[5317]: ERROR: {1 2 BYE 24dc84a4592515245177483c2a657042@B2BUA_IP:5160} *** cfgtrace:dbg_cfg_trace(): request_route=[DLGURI] c=[/usr/local/etc/kamailio/kamailio.cfg] l=532 a=24 n=isdsturiset Apr 10 00:31:28 edgedev /usr/local/sbin/kamailio[5317]: ERROR: {1 2 BYE 24dc84a4592515245177483c2a657042@B2BUA_IP:5160} *** cfgtrace:dbg_cfg_trace(): request_route=[DLGURI] c=[/usr/local/etc/kamailio/kamailio.cfg] l=540 a=2 n=return ……….. Apr 10 00:31:28 edgedev /usr/local/sbin/kamailio[5317]: ERROR: {1 2 BYE 24dc84a4592515245177483c2a657042@B2BUA_IP:5160} tm [ut.h:245]: uri2dst2(): bad_uri: [sip::;transport=] Apr 10 00:31:28 edgedev /usr/local/sbin/kamailio[5317]: ERROR: {1 2 BYE 24dc84a4592515245177483c2a657042@B2BUA_IP:5160} tm [t_fwd.c:1732]: t_forward_nonack(): failure to add branches Apr 10 00:31:28 edgedev /usr/local/sbin/kamailio[5317]: ERROR: {1 2 BYE 24dc84a4592515245177483c2a657042@B2BUA_IP:5160} *** cfgtrace:dbg_cfg_trace(): request_route=[RELAY] c=[/usr/local/etc/kamailio/kamailio.cfg] l=275 a=24 n=sl_reply_error Apr 10 00:31:28 edgedev /usr/local/sbin/kamailio[5317]: ERROR: {1 2 BYE 24dc84a4592515245177483c2a657042@B2BUA_IP:5160} sl [sl_funcs.c:401]: sl_reply_error(): stateless error reply used: Unresolvable destination (478/SL) Apr 10 00:31:28 edgedev /usr/local/sbin/kamailio[5317]: ERROR: {1 2 BYE 24dc84a4592515245177483c2a657042@B2BUA_IP:5160} *** cfgtrace:dbg_cfg_trace(): request_route=[RELAY] c=[/usr/local/etc/kamailio/kamailio.cfg] l=277 a=2 n=exit 2020/04/10 00:31:28.625060 NAT_Device_IP:57808 -> Proxy_IP:5060 BYE sip:398@B2BUA_IP:5160 SIP/2.0 Via: SIP/2.0/UDP UA1_IP:52884;branch=z9hG4bK-524287-1---43b5f31829f20952 Max-Forwards: 70 Route: Contact: To: "Dan Test" ;tag=as78671fd9 From: ;tag=64f4b712 Call-ID: 24dc84a4592515245177483c2a657042@B2BUA_IP:5160 CSeq: 2 BYE User-Agent: Content-Length: 0 # For comparison, here is a BYE from another test call: UA1 to UA2, UA1 hang-up. This BYE was routed correctly. 2020/04/10 00:44:02.688608 NAT_Device_IP:57808 -> Proxy_IP:5060 BYE sip:398@B2BUA_IP:5160 SIP/2.0 Via: SIP/2.0/UDP UA1_IP:52884;branch=z9hG4bK-524287-1---ce36df02e8a80a48 Max-Forwards: 70 Route: Contact: To: ;tag=as5874901f From: ;tag=9078f232 Call-ID: 103104NGU1NjkxNGZkYmM4MzA3Y2FkMzY1OGNkZTZmMTMyZDU CSeq: 3 BYE User-Agent: Authorization: Digest username= Content-Length: 0 -dan ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] nathelper without usrloc
I pulled master branch and tested with contact_match=1 and it resolved the issue. I am using path with loose_route as well, but seems to be an issue with the endpoint not honoring path. I’m going to do further testing later today to make sure it doesn't have negative impact on invite keepalives, but looks good so far. Thanks for your commits, they are much appreciated! Thanks to all others that offered input as well! On Apr 4, 2020, at 4:06 AM, Daniel-Constantin Mierla wrote: Hello, I looked a bit a the code of the nat_traversal module and it takes the Expires values from SIP replies, when REGISTER is forwarded (it has to be with tm t_relay()), but at that moment it compares the contacts with the headers in request (taken from transaction structure) via string comparison and in case of mismatch, they are ignored. So, when you change the contacts during REGISTER request processing, then you get different values in the replies. The solution is to not touch the contact at all, but use Path (see path module) when routing out REGISTERs, then call loose_route() for initial requests as well. An alternative is to try to use the keepalive module instead of nat_traversal, maybe it gives what you need. And the last one, in master branch I pushed 2 commits (one to core and one to nat_traversal module) to add an option to match the contact URI by comparing type, user, host, port and proto. You can try with master branch by setting contact_match=1 for nat_traversal param and see if works. Cheers, Daniel On 04.04.20 03:05, Daniel W. Graham wrote: Register time is not detected when add_contact_alias() is enabled: With add_contact_alias() : Apr 3 20:45:01 host /usr/local/sbin/kamailio[28022]: DEBUG: {2 2 REGISTER 103104ZDUxMzk3ZTg4OTM4ZGFhM2M1NmI3ZjBjYTQ3NWM1NWI} nat_traversal [nat_traversal.c:963]: get_register_expire(): maximum expire for all contacts: 0 Without add_contact_alias(): Apr 3 20:56:52 edgedev /usr/local/sbin/kamailio[28104]: DEBUG: {2 2 REGISTER 103104ZmRiZTI0Y2NkNjUxNDRiYzg5Njc1MzI1NjRkZTM3MTI} nat_traversal [nat_traversal.c:963]: get_register_expire(): maximum expire for all contacts: 300 -dan From: "mico...@gmail.com"<mailto:mico...@gmail.com> <mailto:mico...@gmail.com> Reply-To: "mico...@gmail.com"<mailto:mico...@gmail.com> <mailto:mico...@gmail.com> Date: Friday, April 3, 2020 at 4:03 PM To: Daniel Graham <mailto:d...@cmsinter.net>, "Kamailio (SER) - Users Mailing List" <mailto:sr-users@lists.kamailio.org> Subject: Re: [SR-Users] nathelper without usrloc OK, so there were some messages I still missed in the middle of the discussion... Can you get all log messages with debug=3 when the keepalive is attempted to be sent? Cheers, Daniel On 03.04.20 21:51, Daniel W. Graham wrote: I resolved all of the routing issues. Only issue I’ve got now is nat_keepalive not working when used with set/add_contact_alias(). -dan From: "mico...@gmail.com"<mailto:mico...@gmail.com> <mailto:mico...@gmail.com> Reply-To: "mico...@gmail.com"<mailto:mico...@gmail.com> <mailto:mico...@gmail.com> Date: Friday, April 3, 2020 at 1:43 PM To: Daniel Graham <mailto:d...@cmsinter.net>, "Kamailio (SER) - Users Mailing List" <mailto:sr-users@lists.kamailio.org> Subject: Re: [SR-Users] nathelper without usrloc Somehow I thought that the keepalive is not working and you look for fixing it. Now I read the full thread and actually the routing of requests within dialog doesn't work. Can you send a pcap with such a call taken on Kamailio system? ACK and BYE should be routed based on Contact of INVITE/200ok and record-route headers, no longer related to REGISTER (only initial INVITE should rely on registration data). Cheers, Daniel On 02.04.20 22:11, Daniel W. Graham wrote: Same behavior with add_contact_alias() -dan From: "mico...@gmail.com"<mailto:mico...@gmail.com> <mailto:mico...@gmail.com> Reply-To: "mico...@gmail.com"<mailto:mico...@gmail.com> <mailto:mico...@gmail.com> Date: Thursday, April 2, 2020 at 2:59 PM To: "Kamailio (SER) - Users Mailing List" <mailto:sr-users@lists.kamailio.org>, Daniel Graham <mailto:d...@cmsinter.net> Subject: Re: [SR-Users] nathelper without usrloc Hello, can you try with add_contact_alias() instead of set_contact_alias()? The second one updates the contact URI in a way that is visible for the couple of local modules immediately, typically needed when having dialog/presence module in that instance (still no changes to the header itself, it uses some internal mechanism to signal contact value should be taken from a special field). The first one uses the lumps system that makes the changes over the contact URI not visible immediately (unless msg_apply_changes() is used). Maybe nat_keepalive() needs the original contact URI,
Re: [SR-Users] nathelper without usrloc
Register time is not detected when add_contact_alias() is enabled: With add_contact_alias() : Apr 3 20:45:01 host /usr/local/sbin/kamailio[28022]: DEBUG: {2 2 REGISTER 103104ZDUxMzk3ZTg4OTM4ZGFhM2M1NmI3ZjBjYTQ3NWM1NWI} nat_traversal [nat_traversal.c:963]: get_register_expire(): maximum expire for all contacts: 0 Without add_contact_alias(): Apr 3 20:56:52 edgedev /usr/local/sbin/kamailio[28104]: DEBUG: {2 2 REGISTER 103104ZmRiZTI0Y2NkNjUxNDRiYzg5Njc1MzI1NjRkZTM3MTI} nat_traversal [nat_traversal.c:963]: get_register_expire(): maximum expire for all contacts: 300 -dan From: "mico...@gmail.com" Reply-To: "mico...@gmail.com" Date: Friday, April 3, 2020 at 4:03 PM To: Daniel Graham , "Kamailio (SER) - Users Mailing List" Subject: Re: [SR-Users] nathelper without usrloc OK, so there were some messages I still missed in the middle of the discussion... Can you get all log messages with debug=3 when the keepalive is attempted to be sent? Cheers, Daniel On 03.04.20 21:51, Daniel W. Graham wrote: I resolved all of the routing issues. Only issue I’ve got now is nat_keepalive not working when used with set/add_contact_alias(). -dan From: "mico...@gmail.com"<mailto:mico...@gmail.com> <mailto:mico...@gmail.com> Reply-To: "mico...@gmail.com"<mailto:mico...@gmail.com> <mailto:mico...@gmail.com> Date: Friday, April 3, 2020 at 1:43 PM To: Daniel Graham <mailto:d...@cmsinter.net>, "Kamailio (SER) - Users Mailing List" <mailto:sr-users@lists.kamailio.org> Subject: Re: [SR-Users] nathelper without usrloc Somehow I thought that the keepalive is not working and you look for fixing it. Now I read the full thread and actually the routing of requests within dialog doesn't work. Can you send a pcap with such a call taken on Kamailio system? ACK and BYE should be routed based on Contact of INVITE/200ok and record-route headers, no longer related to REGISTER (only initial INVITE should rely on registration data). Cheers, Daniel On 02.04.20 22:11, Daniel W. Graham wrote: Same behavior with add_contact_alias() -dan From: "mico...@gmail.com"<mailto:mico...@gmail.com> <mailto:mico...@gmail.com> Reply-To: "mico...@gmail.com"<mailto:mico...@gmail.com> <mailto:mico...@gmail.com> Date: Thursday, April 2, 2020 at 2:59 PM To: "Kamailio (SER) - Users Mailing List" <mailto:sr-users@lists.kamailio.org>, Daniel Graham <mailto:d...@cmsinter.net> Subject: Re: [SR-Users] nathelper without usrloc Hello, can you try with add_contact_alias() instead of set_contact_alias()? The second one updates the contact URI in a way that is visible for the couple of local modules immediately, typically needed when having dialog/presence module in that instance (still no changes to the header itself, it uses some internal mechanism to signal contact value should be taken from a special field). The first one uses the lumps system that makes the changes over the contact URI not visible immediately (unless msg_apply_changes() is used). Maybe nat_keepalive() needs the original contact URI, not the one updated by set_contact_alias(). Cheers, Daniel On 02.04.20 18:45, Daniel W. Graham wrote: I was able to fix all issues, but have one partially lingering. For register only, if I apply: set_contact_alias() with nat_keepalive(), keepalives are not sent. Removing set_contact_alias() fixes this. I *shouldn’t need this if the pbx was saving received and rport params as a result of add_path_received(). Can anyone explain why these two functions conflict? Test scenario - # Doesn’t result in register keepalive – route[NATDETECT] { force_rport(); set_contact_alias(); # removal of this enables keepalive nat_keepalive(); return; } I’ve tested this with and without calls to handle_ruri_alias() elsewhere in cfg script with same result. -dan From: sr-users <mailto:sr-users-boun...@lists.kamailio.org> on behalf of Sergiu Pojoga <mailto:pojo...@gmail.com> Reply-To: "Kamailio (SER) - Users Mailing List" <mailto:sr-users@lists.kamailio.org> Date: Wednesday, April 1, 2020 at 8:58 AM To: "Kamailio (SER) - Users Mailing List" <mailto:sr-users@lists.kamailio.org> Subject: Re: [SR-Users] nathelper without usrloc Nothing else comes to mind based on info provided. May be you can send some sip traffic captures and elaborate? Regards, --Sergiu On Tue, Mar 31, 2020 at 10:29 PM Daniel W. Graham mailto:d...@cmsinter.net>> wrote: Thanks, yeah I had already changed that, but registration works with either. I’m not asking for a solution, just looking for suggestions on anything that needs attention, so I appreciate your pointers. -dan On Mar 31, 2020, at 8:55 PM, Sergiu Pojoga mailto:pojo...@gmail.com>> wrote: Oh and almost forgot - try add_path_received() instead of add_path() Good luck! On
Re: [SR-Users] nathelper without usrloc
I resolved all of the routing issues. Only issue I’ve got now is nat_keepalive not working when used with set/add_contact_alias(). -dan From: "mico...@gmail.com" Reply-To: "mico...@gmail.com" Date: Friday, April 3, 2020 at 1:43 PM To: Daniel Graham , "Kamailio (SER) - Users Mailing List" Subject: Re: [SR-Users] nathelper without usrloc Somehow I thought that the keepalive is not working and you look for fixing it. Now I read the full thread and actually the routing of requests within dialog doesn't work. Can you send a pcap with such a call taken on Kamailio system? ACK and BYE should be routed based on Contact of INVITE/200ok and record-route headers, no longer related to REGISTER (only initial INVITE should rely on registration data). Cheers, Daniel On 02.04.20 22:11, Daniel W. Graham wrote: Same behavior with add_contact_alias() -dan From: "mico...@gmail.com"<mailto:mico...@gmail.com> <mailto:mico...@gmail.com> Reply-To: "mico...@gmail.com"<mailto:mico...@gmail.com> <mailto:mico...@gmail.com> Date: Thursday, April 2, 2020 at 2:59 PM To: "Kamailio (SER) - Users Mailing List" <mailto:sr-users@lists.kamailio.org>, Daniel Graham <mailto:d...@cmsinter.net> Subject: Re: [SR-Users] nathelper without usrloc Hello, can you try with add_contact_alias() instead of set_contact_alias()? The second one updates the contact URI in a way that is visible for the couple of local modules immediately, typically needed when having dialog/presence module in that instance (still no changes to the header itself, it uses some internal mechanism to signal contact value should be taken from a special field). The first one uses the lumps system that makes the changes over the contact URI not visible immediately (unless msg_apply_changes() is used). Maybe nat_keepalive() needs the original contact URI, not the one updated by set_contact_alias(). Cheers, Daniel On 02.04.20 18:45, Daniel W. Graham wrote: I was able to fix all issues, but have one partially lingering. For register only, if I apply: set_contact_alias() with nat_keepalive(), keepalives are not sent. Removing set_contact_alias() fixes this. I *shouldn’t need this if the pbx was saving received and rport params as a result of add_path_received(). Can anyone explain why these two functions conflict? Test scenario - # Doesn’t result in register keepalive – route[NATDETECT] { force_rport(); set_contact_alias(); # removal of this enables keepalive nat_keepalive(); return; } I’ve tested this with and without calls to handle_ruri_alias() elsewhere in cfg script with same result. -dan From: sr-users <mailto:sr-users-boun...@lists.kamailio.org> on behalf of Sergiu Pojoga <mailto:pojo...@gmail.com> Reply-To: "Kamailio (SER) - Users Mailing List" <mailto:sr-users@lists.kamailio.org> Date: Wednesday, April 1, 2020 at 8:58 AM To: "Kamailio (SER) - Users Mailing List" <mailto:sr-users@lists.kamailio.org> Subject: Re: [SR-Users] nathelper without usrloc Nothing else comes to mind based on info provided. May be you can send some sip traffic captures and elaborate? Regards, --Sergiu On Tue, Mar 31, 2020 at 10:29 PM Daniel W. Graham mailto:d...@cmsinter.net>> wrote: Thanks, yeah I had already changed that, but registration works with either. I’m not asking for a solution, just looking for suggestions on anything that needs attention, so I appreciate your pointers. -dan On Mar 31, 2020, at 8:55 PM, Sergiu Pojoga mailto:pojo...@gmail.com>> wrote: Oh and almost forgot - try add_path_received() instead of add_path() Good luck! On Tue, Mar 31, 2020 at 8:48 PM Sergiu Pojoga mailto:pojo...@gmail.com>> wrote: A lot of things may not be 'right' here, unfortunately your question is too broad to answer and too little info, the topology is indeed non-default and I doubt someone will present you with a final solution (there's business support, if you're looking for that). Otherwise, if I were to just throw a guess: - try fix_nated_register() (instead of set_contact_alias) just for Register method on the way to the registrar - in the Registrar, make sure the Contact's Path address is correct Cheers, --Sergiu On Tue, Mar 31, 2020 at 7:34 PM Daniel W. Graham mailto:d...@cmsinter.net>> wrote: It did help, I read that a couple times already but something is still not right, and its only because of the decoupling of the registrar. I need to do more debugging and see if Im loosing the flag value. Hoping something sticks out that someone sees and can point me in the right direction. -dan On Mar 31, 2020, at 7:15 PM, Alex Balashov mailto:abalas...@evaristesys.com>> wrote: > > Daniel, > > Might this article be of aid? > > http://www.evaristesys.com/blog/server-side-nat-traversal-with-kamailio-the-definitive-guide/ > > -- Alex &
Re: [SR-Users] nathelper without usrloc
Same behavior with add_contact_alias() -dan From: "mico...@gmail.com" Reply-To: "mico...@gmail.com" Date: Thursday, April 2, 2020 at 2:59 PM To: "Kamailio (SER) - Users Mailing List" , Daniel Graham Subject: Re: [SR-Users] nathelper without usrloc Hello, can you try with add_contact_alias() instead of set_contact_alias()? The second one updates the contact URI in a way that is visible for the couple of local modules immediately, typically needed when having dialog/presence module in that instance (still no changes to the header itself, it uses some internal mechanism to signal contact value should be taken from a special field). The first one uses the lumps system that makes the changes over the contact URI not visible immediately (unless msg_apply_changes() is used). Maybe nat_keepalive() needs the original contact URI, not the one updated by set_contact_alias(). Cheers, Daniel On 02.04.20 18:45, Daniel W. Graham wrote: I was able to fix all issues, but have one partially lingering. For register only, if I apply: set_contact_alias() with nat_keepalive(), keepalives are not sent. Removing set_contact_alias() fixes this. I *shouldn’t need this if the pbx was saving received and rport params as a result of add_path_received(). Can anyone explain why these two functions conflict? Test scenario - # Doesn’t result in register keepalive – route[NATDETECT] { force_rport(); set_contact_alias(); # removal of this enables keepalive nat_keepalive(); return; } I’ve tested this with and without calls to handle_ruri_alias() elsewhere in cfg script with same result. -dan From: sr-users <mailto:sr-users-boun...@lists.kamailio.org> on behalf of Sergiu Pojoga <mailto:pojo...@gmail.com> Reply-To: "Kamailio (SER) - Users Mailing List" <mailto:sr-users@lists.kamailio.org> Date: Wednesday, April 1, 2020 at 8:58 AM To: "Kamailio (SER) - Users Mailing List" <mailto:sr-users@lists.kamailio.org> Subject: Re: [SR-Users] nathelper without usrloc Nothing else comes to mind based on info provided. May be you can send some sip traffic captures and elaborate? Regards, --Sergiu On Tue, Mar 31, 2020 at 10:29 PM Daniel W. Graham mailto:d...@cmsinter.net>> wrote: Thanks, yeah I had already changed that, but registration works with either. I’m not asking for a solution, just looking for suggestions on anything that needs attention, so I appreciate your pointers. -dan On Mar 31, 2020, at 8:55 PM, Sergiu Pojoga mailto:pojo...@gmail.com>> wrote: Oh and almost forgot - try add_path_received() instead of add_path() Good luck! On Tue, Mar 31, 2020 at 8:48 PM Sergiu Pojoga mailto:pojo...@gmail.com>> wrote: A lot of things may not be 'right' here, unfortunately your question is too broad to answer and too little info, the topology is indeed non-default and I doubt someone will present you with a final solution (there's business support, if you're looking for that). Otherwise, if I were to just throw a guess: - try fix_nated_register() (instead of set_contact_alias) just for Register method on the way to the registrar - in the Registrar, make sure the Contact's Path address is correct Cheers, --Sergiu On Tue, Mar 31, 2020 at 7:34 PM Daniel W. Graham mailto:d...@cmsinter.net>> wrote: It did help, I read that a couple times already but something is still not right, and its only because of the decoupling of the registrar. I need to do more debugging and see if Im loosing the flag value. Hoping something sticks out that someone sees and can point me in the right direction. -dan On Mar 31, 2020, at 7:15 PM, Alex Balashov mailto:abalas...@evaristesys.com>> wrote: > > Daniel, > > Might this article be of aid? > > http://www.evaristesys.com/blog/server-side-nat-traversal-with-kamailio-the-definitive-guide/ > > -- Alex > >> On Tue, Mar 31, 2020 at 11:12:23PM +, Daniel W. Graham wrote: >> >> It does but doesn't work as well as kamailio, and since the proxy is the >> entry point. >> >> The biggest issue here isnt the keepalive, as I did have that working. The >> main issue is the routing of messages, utilizing set_contact_alias and >> handle_ruri_alias, as Ive been unable to get ack and bye messages to make it >> past the proxy. I’m assuming these functions are not being used at the right >> locations or I need to rely on another mechanism to accomplish it. I also >> question my use of the PBX flag and the natmanage logic. >> >> -dan >> >> On Mar 31, 2020, at 7:01 PM, Sergiu Pojoga >> mailto:pojo...@gmail.com>> wrote: >> >> >> Hi Daniel, >> >> From what you are describing, my understanding is that the Registrar is the >> PBX, kamailio is acting as an edge proxy. If so, doesn't the PBX/registrar >> have
Re: [SR-Users] nathelper without usrloc
I was able to fix all issues, but have one partially lingering. For register only, if I apply: set_contact_alias() with nat_keepalive(), keepalives are not sent. Removing set_contact_alias() fixes this. I *shouldn’t need this if the pbx was saving received and rport params as a result of add_path_received(). Can anyone explain why these two functions conflict? Test scenario - # Doesn’t result in register keepalive – route[NATDETECT] { force_rport(); set_contact_alias(); # removal of this enables keepalive nat_keepalive(); return; } I’ve tested this with and without calls to handle_ruri_alias() elsewhere in cfg script with same result. -dan From: sr-users on behalf of Sergiu Pojoga Reply-To: "Kamailio (SER) - Users Mailing List" Date: Wednesday, April 1, 2020 at 8:58 AM To: "Kamailio (SER) - Users Mailing List" Subject: Re: [SR-Users] nathelper without usrloc Nothing else comes to mind based on info provided. May be you can send some sip traffic captures and elaborate? Regards, --Sergiu On Tue, Mar 31, 2020 at 10:29 PM Daniel W. Graham mailto:d...@cmsinter.net>> wrote: Thanks, yeah I had already changed that, but registration works with either. I’m not asking for a solution, just looking for suggestions on anything that needs attention, so I appreciate your pointers. -dan On Mar 31, 2020, at 8:55 PM, Sergiu Pojoga mailto:pojo...@gmail.com>> wrote: Oh and almost forgot - try add_path_received() instead of add_path() Good luck! On Tue, Mar 31, 2020 at 8:48 PM Sergiu Pojoga mailto:pojo...@gmail.com>> wrote: A lot of things may not be 'right' here, unfortunately your question is too broad to answer and too little info, the topology is indeed non-default and I doubt someone will present you with a final solution (there's business support, if you're looking for that). Otherwise, if I were to just throw a guess: - try fix_nated_register() (instead of set_contact_alias) just for Register method on the way to the registrar - in the Registrar, make sure the Contact's Path address is correct Cheers, --Sergiu On Tue, Mar 31, 2020 at 7:34 PM Daniel W. Graham mailto:d...@cmsinter.net>> wrote: It did help, I read that a couple times already but something is still not right, and its only because of the decoupling of the registrar. I need to do more debugging and see if Im loosing the flag value. Hoping something sticks out that someone sees and can point me in the right direction. -dan On Mar 31, 2020, at 7:15 PM, Alex Balashov mailto:abalas...@evaristesys.com>> wrote: > > Daniel, > > Might this article be of aid? > > http://www.evaristesys.com/blog/server-side-nat-traversal-with-kamailio-the-definitive-guide/ > > -- Alex > >> On Tue, Mar 31, 2020 at 11:12:23PM +, Daniel W. Graham wrote: >> >> It does but doesn't work as well as kamailio, and since the proxy is the >> entry point. >> >> The biggest issue here isnt the keepalive, as I did have that working. The >> main issue is the routing of messages, utilizing set_contact_alias and >> handle_ruri_alias, as Ive been unable to get ack and bye messages to make it >> past the proxy. I’m assuming these functions are not being used at the right >> locations or I need to rely on another mechanism to accomplish it. I also >> question my use of the PBX flag and the natmanage logic. >> >> -dan >> >> On Mar 31, 2020, at 7:01 PM, Sergiu Pojoga >> mailto:pojo...@gmail.com>> wrote: >> >> >> Hi Daniel, >> >> From what you are describing, my understanding is that the Registrar is the >> PBX, kamailio is acting as an edge proxy. If so, doesn't the PBX/registrar >> have NAT traversal/keepalive mechanisms of its own? >> >> Regards, >> --Sergiu >> >> On Tue, Mar 31, 2020 at 1:55 PM Daniel W. Graham >> mailto:d...@cmsinter.net><mailto:d...@cmsinter.net<mailto:d...@cmsinter.net>>> >> wrote: >> I’ve been missing with this for a while and seem to be missing something. >> Any suggestions on what is missing here? >> >> Trying to use set_contact_alias() and handle_ruri_alias() from nathelper >> module and nat_keepalive from nat_traversal module, without registrar. >> >> I had register keepalive working, that has since broke. When register >> keepalive was working, I was able to place call in either direction but ACK >> and BYE was not being routed past kamailio. >> >> Registrations are forwarded to the PBX using add_path() and is working. >> >> Also not included below is the routing to the PBX, that is just setting $du >> and t_relay, and is also working. >> >> Topology is: UA1 -> NAT -> kamailio -> PBX -
Re: [SR-Users] nathelper without usrloc
Thanks, yeah I had already changed that, but registration works with either. I’m not asking for a solution, just looking for suggestions on anything that needs attention, so I appreciate your pointers. -dan On Mar 31, 2020, at 8:55 PM, Sergiu Pojoga wrote: Oh and almost forgot - try add_path_received() instead of add_path() Good luck! On Tue, Mar 31, 2020 at 8:48 PM Sergiu Pojoga mailto:pojo...@gmail.com>> wrote: A lot of things may not be 'right' here, unfortunately your question is too broad to answer and too little info, the topology is indeed non-default and I doubt someone will present you with a final solution (there's business support, if you're looking for that). Otherwise, if I were to just throw a guess: - try fix_nated_register() (instead of set_contact_alias) just for Register method on the way to the registrar - in the Registrar, make sure the Contact's Path address is correct Cheers, --Sergiu On Tue, Mar 31, 2020 at 7:34 PM Daniel W. Graham mailto:d...@cmsinter.net>> wrote: It did help, I read that a couple times already but something is still not right, and its only because of the decoupling of the registrar. I need to do more debugging and see if Im loosing the flag value. Hoping something sticks out that someone sees and can point me in the right direction. -dan On Mar 31, 2020, at 7:15 PM, Alex Balashov mailto:abalas...@evaristesys.com>> wrote: > > Daniel, > > Might this article be of aid? > > http://www.evaristesys.com/blog/server-side-nat-traversal-with-kamailio-the-definitive-guide/ > > -- Alex > >> On Tue, Mar 31, 2020 at 11:12:23PM +, Daniel W. Graham wrote: >> >> It does but doesn't work as well as kamailio, and since the proxy is the >> entry point. >> >> The biggest issue here isnt the keepalive, as I did have that working. The >> main issue is the routing of messages, utilizing set_contact_alias and >> handle_ruri_alias, as Ive been unable to get ack and bye messages to make it >> past the proxy. I’m assuming these functions are not being used at the right >> locations or I need to rely on another mechanism to accomplish it. I also >> question my use of the PBX flag and the natmanage logic. >> >> -dan >> >> On Mar 31, 2020, at 7:01 PM, Sergiu Pojoga >> mailto:pojo...@gmail.com>> wrote: >> >> >> Hi Daniel, >> >> From what you are describing, my understanding is that the Registrar is the >> PBX, kamailio is acting as an edge proxy. If so, doesn't the PBX/registrar >> have NAT traversal/keepalive mechanisms of its own? >> >> Regards, >> --Sergiu >> >> On Tue, Mar 31, 2020 at 1:55 PM Daniel W. Graham >> mailto:d...@cmsinter.net><mailto:d...@cmsinter.net<mailto:d...@cmsinter.net>>> >> wrote: >> I’ve been missing with this for a while and seem to be missing something. >> Any suggestions on what is missing here? >> >> Trying to use set_contact_alias() and handle_ruri_alias() from nathelper >> module and nat_keepalive from nat_traversal module, without registrar. >> >> I had register keepalive working, that has since broke. When register >> keepalive was working, I was able to place call in either direction but ACK >> and BYE was not being routed past kamailio. >> >> Registrations are forwarded to the PBX using add_path() and is working. >> >> Also not included below is the routing to the PBX, that is just setting $du >> and t_relay, and is also working. >> >> Topology is: UA1 -> NAT -> kamailio -> PBX -> UA2 >> >> Using default config file as the example, modified with above changes. I >> also removed RTP config as that is a non-issue. >> >> request_route { >>…… >># FLAG MESSAGES FROM PBX >>setflag(FLT_PBX); >>route(NATDETECT); >>…… >> >> route[NATDETECT] { >>if (nat_uac_test("19")) { >> force_rport(); >>set_contact_alias(); >>nat_keepalive(); >>} >>return; >> } >> >> route[WITHINDLG] { >>if (!has_totag()) return; >>if (loose_route()) { >>route(DLGURI); >>} else if ( is_method("ACK") ) { >>route(NATMANAGE); >>} else if ( is_method("NOTIFY") ) { >>record_route(); >>} >>route(RELAY); >>exit; >>} >> >
Re: [SR-Users] nathelper without usrloc
It did help, I read that a couple times already but something is still not right, and its only because of the decoupling of the registrar. I need to do more debugging and see if Im loosing the flag value. Hoping something sticks out that someone sees and can point me in the right direction. -dan On Mar 31, 2020, at 7:15 PM, Alex Balashov wrote: > > Daniel, > > Might this article be of aid? > > http://www.evaristesys.com/blog/server-side-nat-traversal-with-kamailio-the-definitive-guide/ > > -- Alex > >> On Tue, Mar 31, 2020 at 11:12:23PM +, Daniel W. Graham wrote: >> >> It does but doesn't work as well as kamailio, and since the proxy is the >> entry point. >> >> The biggest issue here isnt the keepalive, as I did have that working. The >> main issue is the routing of messages, utilizing set_contact_alias and >> handle_ruri_alias, as Ive been unable to get ack and bye messages to make it >> past the proxy. I’m assuming these functions are not being used at the right >> locations or I need to rely on another mechanism to accomplish it. I also >> question my use of the PBX flag and the natmanage logic. >> >> -dan >> >> On Mar 31, 2020, at 7:01 PM, Sergiu Pojoga wrote: >> >> >> Hi Daniel, >> >> From what you are describing, my understanding is that the Registrar is the >> PBX, kamailio is acting as an edge proxy. If so, doesn't the PBX/registrar >> have NAT traversal/keepalive mechanisms of its own? >> >> Regards, >> --Sergiu >> >> On Tue, Mar 31, 2020 at 1:55 PM Daniel W. Graham >> mailto:d...@cmsinter.net>> wrote: >> I’ve been missing with this for a while and seem to be missing something. >> Any suggestions on what is missing here? >> >> Trying to use set_contact_alias() and handle_ruri_alias() from nathelper >> module and nat_keepalive from nat_traversal module, without registrar. >> >> I had register keepalive working, that has since broke. When register >> keepalive was working, I was able to place call in either direction but ACK >> and BYE was not being routed past kamailio. >> >> Registrations are forwarded to the PBX using add_path() and is working. >> >> Also not included below is the routing to the PBX, that is just setting $du >> and t_relay, and is also working. >> >> Topology is: UA1 -> NAT -> kamailio -> PBX -> UA2 >> >> Using default config file as the example, modified with above changes. I >> also removed RTP config as that is a non-issue. >> >> request_route { >>…… >># FLAG MESSAGES FROM PBX >>setflag(FLT_PBX); >>route(NATDETECT); >>…… >> >> route[NATDETECT] { >>if (nat_uac_test("19")) { >> force_rport(); >>set_contact_alias(); >>nat_keepalive(); >>} >>return; >> } >> >> route[WITHINDLG] { >>if (!has_totag()) return; >>if (loose_route()) { >>route(DLGURI); >>} else if ( is_method("ACK") ) { >>route(NATMANAGE); >>} else if ( is_method("NOTIFY") ) { >>record_route(); >>} >>route(RELAY); >>exit; >>} >> >>if (is_method("SUBSCRIBE") && uri == myself) { >>route(PRESENCE); >>exit; >>} >>if ( is_method("ACK") ) { >>if ( t_check_trans() ) { >>route(RELAY); >>exit; >>} else { >>exit; >>} >>} >>sl_send_reply("404","Not here"); >>exit; >> } >> >> route[NATMANAGE] { >>if(isflagset(FLT_PBX)) { >>handle_ruri_alias(); >>} >>if(!isflagset(FLT_PBX)) { >>set_contact_alias(); >>} return; >> } >> >> route[DLGURI] { >>if(!isdsturiset()) { >>handle_ruri_alias(); >>} >>return; >> } >> >> branch_route[MANAGE_BRANCH] { >>
Re: [SR-Users] nathelper without usrloc
It does but doesn't work as well as kamailio, and since the proxy is the entry point. The biggest issue here isnt the keepalive, as I did have that working. The main issue is the routing of messages, utilizing set_contact_alias and handle_ruri_alias, as Ive been unable to get ack and bye messages to make it past the proxy. I’m assuming these functions are not being used at the right locations or I need to rely on another mechanism to accomplish it. I also question my use of the PBX flag and the natmanage logic. -dan On Mar 31, 2020, at 7:01 PM, Sergiu Pojoga wrote: Hi Daniel, From what you are describing, my understanding is that the Registrar is the PBX, kamailio is acting as an edge proxy. If so, doesn't the PBX/registrar have NAT traversal/keepalive mechanisms of its own? Regards, --Sergiu On Tue, Mar 31, 2020 at 1:55 PM Daniel W. Graham mailto:d...@cmsinter.net>> wrote: I’ve been missing with this for a while and seem to be missing something. Any suggestions on what is missing here? Trying to use set_contact_alias() and handle_ruri_alias() from nathelper module and nat_keepalive from nat_traversal module, without registrar. I had register keepalive working, that has since broke. When register keepalive was working, I was able to place call in either direction but ACK and BYE was not being routed past kamailio. Registrations are forwarded to the PBX using add_path() and is working. Also not included below is the routing to the PBX, that is just setting $du and t_relay, and is also working. Topology is: UA1 -> NAT -> kamailio -> PBX -> UA2 Using default config file as the example, modified with above changes. I also removed RTP config as that is a non-issue. request_route { …… # FLAG MESSAGES FROM PBX setflag(FLT_PBX); route(NATDETECT); …… route[NATDETECT] { if (nat_uac_test("19")) { force_rport(); set_contact_alias(); nat_keepalive(); } return; } route[WITHINDLG] { if (!has_totag()) return; if (loose_route()) { route(DLGURI); } else if ( is_method("ACK") ) { route(NATMANAGE); } else if ( is_method("NOTIFY") ) { record_route(); } route(RELAY); exit; } if (is_method("SUBSCRIBE") && uri == myself) { route(PRESENCE); exit; } if ( is_method("ACK") ) { if ( t_check_trans() ) { route(RELAY); exit; } else { exit; } } sl_send_reply("404","Not here"); exit; } route[NATMANAGE] { if(isflagset(FLT_PBX)) { handle_ruri_alias(); } if(!isflagset(FLT_PBX)) { set_contact_alias(); } return; } route[DLGURI] { if(!isdsturiset()) { handle_ruri_alias(); } return; } branch_route[MANAGE_BRANCH] { route(NATMANAGE); } onreply_route[MANAGE_REPLY] { if(status=~"[12][0-9][0-9]") { route(NATMANAGE); } } failure_route[MANAGE_FAILURE] { route(NATMANAGE); if (t_is_canceled()) exit; -dan ___ 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 ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
[SR-Users] nathelper without usrloc
I’ve been missing with this for a while and seem to be missing something. Any suggestions on what is missing here? Trying to use set_contact_alias() and handle_ruri_alias() from nathelper module and nat_keepalive from nat_traversal module, without registrar. I had register keepalive working, that has since broke. When register keepalive was working, I was able to place call in either direction but ACK and BYE was not being routed past kamailio. Registrations are forwarded to the PBX using add_path() and is working. Also not included below is the routing to the PBX, that is just setting $du and t_relay, and is also working. Topology is: UA1 -> NAT -> kamailio -> PBX -> UA2 Using default config file as the example, modified with above changes. I also removed RTP config as that is a non-issue. request_route { …… # FLAG MESSAGES FROM PBX setflag(FLT_PBX); route(NATDETECT); …… route[NATDETECT] { if (nat_uac_test("19")) { force_rport(); set_contact_alias(); nat_keepalive(); } return; } route[WITHINDLG] { if (!has_totag()) return; if (loose_route()) { route(DLGURI); } else if ( is_method("ACK") ) { route(NATMANAGE); } else if ( is_method("NOTIFY") ) { record_route(); } route(RELAY); exit; } if (is_method("SUBSCRIBE") && uri == myself) { route(PRESENCE); exit; } if ( is_method("ACK") ) { if ( t_check_trans() ) { route(RELAY); exit; } else { exit; } } sl_send_reply("404","Not here"); exit; } route[NATMANAGE] { if(isflagset(FLT_PBX)) { handle_ruri_alias(); } if(!isflagset(FLT_PBX)) { set_contact_alias(); } return; } route[DLGURI] { if(!isdsturiset()) { handle_ruri_alias(); } return; } branch_route[MANAGE_BRANCH] { route(NATMANAGE); } onreply_route[MANAGE_REPLY] { if(status=~"[12][0-9][0-9]") { route(NATMANAGE); } } failure_route[MANAGE_FAILURE] { route(NATMANAGE); if (t_is_canceled()) exit; -dan ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] Replicate REGISTER and save original received value
I now see this comes from nathelper module, thanks! -dan -Original Message- From: sr-users On Behalf Of Daniel W. Graham Sent: Tuesday, March 12, 2019 5:02 PM To: mico...@gmail.com; Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Replicate REGISTER and save original received value On the sending host, the value of $avp(received) has to be set manually? -dan -Original Message- From: Daniel-Constantin Mierla Sent: Tuesday, March 12, 2019 8:09 AM To: Kamailio (SER) - Users Mailing List ; Daniel W. Graham Subject: Re: [SR-Users] Replicate REGISTER and save original received value Hello, an alternative: the received value can be taken from an avp, so you can pass its value via an header from the node that does replication: append_hf(“P-RCV-ADDR: $avp(received)\r\n"); Then you can do t_replicate(). In the node that receives replication, do: $avp(received) = $hdr(P-RCV-ADDR); then save(). The name of the avp has to be specified via modparam to registrar module. Cheers, Daniel On 11.03.19 22:20, Daniel W. Graham wrote: > This worked out. Thanks again. > > -dan > > -Original Message- > From: sr-users On Behalf Of > Daniel W. Graham > Sent: Monday, March 11, 2019 4:53 PM > To: Kamailio (SER) - Users Mailing List > Subject: Re: [SR-Users] Replicate REGISTER and save original received > value > > Ok, that’s why I was asking wasn't finding a way to do so. > > Thanks for the input and I'll see where I can get with the second option. > > -dan > > -Original Message- > From: sr-users On Behalf Of Alex > Balashov > Sent: Monday, March 11, 2019 4:48 PM > To: Kamailio (SER) - Users Mailing List > Subject: Re: [SR-Users] Replicate REGISTER and save original received > value > > On Mon, Mar 11, 2019 at 08:46:01PM +, Daniel W. Graham wrote: > >> No problem. I didn’t consider either option but like the first idea, >> how do you recommend overriding the received parameter value? > Well, now that I look at the docs, there isn't really a straightforward way > short of manipulating the Contact directly. > > That would leave you no better off than just doing the > set_contact_alias() + handle_ruri_alias() thing, so I would just do that. > > -- > Alex Balashov | Principal | Evariste Systems LLC > > Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) > Web: http://www.evaristesys.com/, http://www.csrpswitch.com/ > > ___ > Kamailio (SER) - Users Mailing List > 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 > ___ > Kamailio (SER) - Users Mailing List > sr-users@lists.kamailio.org > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users -- Daniel-Constantin Mierla -- www.asipto.com www.twitter.com/miconda -- www.linkedin.com/in/miconda Kamailio World Conference - May 6-8, 2019 -- www.kamailioworld.com Kamailio Advanced Training - Mar 25-27, 2019, in Washington, DC, USA -- www.asipto.com ___ Kamailio (SER) - Users Mailing List 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
Re: [SR-Users] Replicate REGISTER and save original received value
On the sending host, the value of $avp(received) has to be set manually? -dan -Original Message- From: Daniel-Constantin Mierla Sent: Tuesday, March 12, 2019 8:09 AM To: Kamailio (SER) - Users Mailing List ; Daniel W. Graham Subject: Re: [SR-Users] Replicate REGISTER and save original received value Hello, an alternative: the received value can be taken from an avp, so you can pass its value via an header from the node that does replication: append_hf(“P-RCV-ADDR: $avp(received)\r\n"); Then you can do t_replicate(). In the node that receives replication, do: $avp(received) = $hdr(P-RCV-ADDR); then save(). The name of the avp has to be specified via modparam to registrar module. Cheers, Daniel On 11.03.19 22:20, Daniel W. Graham wrote: > This worked out. Thanks again. > > -dan > > -Original Message- > From: sr-users On Behalf Of > Daniel W. Graham > Sent: Monday, March 11, 2019 4:53 PM > To: Kamailio (SER) - Users Mailing List > Subject: Re: [SR-Users] Replicate REGISTER and save original received > value > > Ok, that’s why I was asking wasn't finding a way to do so. > > Thanks for the input and I'll see where I can get with the second option. > > -dan > > -Original Message- > From: sr-users On Behalf Of Alex > Balashov > Sent: Monday, March 11, 2019 4:48 PM > To: Kamailio (SER) - Users Mailing List > Subject: Re: [SR-Users] Replicate REGISTER and save original received > value > > On Mon, Mar 11, 2019 at 08:46:01PM +, Daniel W. Graham wrote: > >> No problem. I didn’t consider either option but like the first idea, >> how do you recommend overriding the received parameter value? > Well, now that I look at the docs, there isn't really a straightforward way > short of manipulating the Contact directly. > > That would leave you no better off than just doing the > set_contact_alias() + handle_ruri_alias() thing, so I would just do that. > > -- > Alex Balashov | Principal | Evariste Systems LLC > > Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) > Web: http://www.evaristesys.com/, http://www.csrpswitch.com/ > > ___ > Kamailio (SER) - Users Mailing List > 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 > ___ > Kamailio (SER) - Users Mailing List > sr-users@lists.kamailio.org > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users -- Daniel-Constantin Mierla -- www.asipto.com www.twitter.com/miconda -- www.linkedin.com/in/miconda Kamailio World Conference - May 6-8, 2019 -- www.kamailioworld.com Kamailio Advanced Training - Mar 25-27, 2019, in Washington, DC, USA -- www.asipto.com ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] Replicate REGISTER and save original received value
This worked out. Thanks again. -dan -Original Message- From: sr-users On Behalf Of Daniel W. Graham Sent: Monday, March 11, 2019 4:53 PM To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Replicate REGISTER and save original received value Ok, that’s why I was asking wasn't finding a way to do so. Thanks for the input and I'll see where I can get with the second option. -dan -Original Message- From: sr-users On Behalf Of Alex Balashov Sent: Monday, March 11, 2019 4:48 PM To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Replicate REGISTER and save original received value On Mon, Mar 11, 2019 at 08:46:01PM +, Daniel W. Graham wrote: > No problem. I didn’t consider either option but like the first idea, > how do you recommend overriding the received parameter value? Well, now that I look at the docs, there isn't really a straightforward way short of manipulating the Contact directly. That would leave you no better off than just doing the set_contact_alias() + handle_ruri_alias() thing, so I would just do that. -- Alex Balashov | Principal | Evariste Systems LLC Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) Web: http://www.evaristesys.com/, http://www.csrpswitch.com/ ___ Kamailio (SER) - Users Mailing List 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 ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] Replicate REGISTER and save original received value
Ok, that’s why I was asking wasn't finding a way to do so. Thanks for the input and I'll see where I can get with the second option. -dan -Original Message- From: sr-users On Behalf Of Alex Balashov Sent: Monday, March 11, 2019 4:48 PM To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Replicate REGISTER and save original received value On Mon, Mar 11, 2019 at 08:46:01PM +, Daniel W. Graham wrote: > No problem. I didn’t consider either option but like the first idea, > how do you recommend overriding the received parameter value? Well, now that I look at the docs, there isn't really a straightforward way short of manipulating the Contact directly. That would leave you no better off than just doing the set_contact_alias() + handle_ruri_alias() thing, so I would just do that. -- Alex Balashov | Principal | Evariste Systems LLC Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) Web: http://www.evaristesys.com/, http://www.csrpswitch.com/ ___ Kamailio (SER) - Users Mailing List 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
Re: [SR-Users] Replicate REGISTER and save original received value
No problem. I didn’t consider either option but like the first idea, how do you recommend overriding the received parameter value? -dan -Original Message- From: sr-users On Behalf Of Alex Balashov Sent: Monday, March 11, 2019 4:28 PM To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Replicate REGISTER and save original received value Oh, I’m sorry! I misread your message and was sure you meant “with DMQ”. In that case, if you have complete control over the relay process, why not just append the proximate source IP and port as a custom SIP header before forwarding the registration, then extract it on the other side and store it locally using an overridden received parameter value? If you can’t do that, have you considered set/add_contact_alias() (nathelper module) to manipulate the stored binding prior to forwarding? If you then call handle_ruri_alias() after resolution on the proximate hop to the endpoint, it will strip off the alias parameter, if present, and use the values stored therein as the destination URI. — Sent from mobile, with due apologies for brevity and errors. > On Mar 11, 2019, at 4:23 PM, Daniel W. Graham wrote: > > Hi, I can confirm dmq_usrloc does replicate received, however I need to do > this outside of DMQ. I have a host I need to send specific REGISTERs to so I > can't include that host in the DMQ group, as it would receive all usr_loc > records. > > -dan > > -Original Message- > From: sr-users On Behalf Of Alex > Balashov > Sent: Monday, March 11, 2019 4:15 PM > To: Kamailio (SER) - Users Mailing List > Subject: Re: [SR-Users] Replicate REGISTER and save original received value > > Hi Daniel, > > The 'received' parameter should be replicated. It is in one of our dmq_usrloc > rigs, which has four nodes, and registrations can come into any of them. > > By way of example: > > [root@gw kamailio]# kamcmd -s /tmp/kamailio_ctl ul.lookup location > abalashov@sip.$DOMAIN { >AoR: abalashov@sip.$DOMAIN >Contacts: { >Contact: { >Address: sip:abalashov@172.30.105.251:5060;alias=$PUBLIC_IP~5060~1 >Expires: 112 >Q: 0.00 >Call-ID: b1663a59ecd8732037017105a82662d3 >CSeq: 3030 >User-Agent: PolycomVVX-VVX_411-UA/5.6.0.17325 >Received: sip:$PUBLIC_IP:5060 >Path: >State: CS_NEW >Flags: 0 >CFlags: 0 >Socket: [not set] >Methods: 8159 >Ruid: uloc-5c6a50c4-5c25-98d >Instance: [not set] >Reg-Id: 0 >Server-Id: 0 >Tcpconn-Id: -1 >Keepalive: 0 >Last-Keepalive: 1552335034 >Last-Modified: 1552335034 >} >} > } > > There's a 50% chance I could be mistaken, but I vaguely remember that > replication of 'received' was an issue in some earlier version of Kamailio > than that. > > -- Alex > >> On Mon, Mar 11, 2019 at 05:13:31PM +, Daniel W. Graham wrote: >> >> When forwarding / replicating a REGISTER, is it possible (without using DMQ) >> for the receiving host to save the contact with the original received >> parameter? >> >> REGISTER > server 1 (received set) > forward > server 2 (received not >> set) >> >> add_rcv_param will set received to server 1 IP, but I'm looking for the >> original parameter as set on SERVER 1. >> >> -dan > >> ___ >> Kamailio (SER) - Users Mailing List >> sr-users@lists.kamailio.org >> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users > > > -- > Alex Balashov | Principal | Evariste Systems LLC > > Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) > Web: http://www.evaristesys.com/, http://www.csrpswitch.com/ > > ___ > Kamailio (SER) - Users Mailing List > 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 ___ Kamailio (SER) - Users Mailing List 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
Re: [SR-Users] Replicate REGISTER and save original received value
Hi, I can confirm dmq_usrloc does replicate received, however I need to do this outside of DMQ. I have a host I need to send specific REGISTERs to so I can't include that host in the DMQ group, as it would receive all usr_loc records. -dan -Original Message- From: sr-users On Behalf Of Alex Balashov Sent: Monday, March 11, 2019 4:15 PM To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Replicate REGISTER and save original received value Hi Daniel, The 'received' parameter should be replicated. It is in one of our dmq_usrloc rigs, which has four nodes, and registrations can come into any of them. By way of example: [root@gw kamailio]# kamcmd -s /tmp/kamailio_ctl ul.lookup location abalashov@sip.$DOMAIN { AoR: abalashov@sip.$DOMAIN Contacts: { Contact: { Address: sip:abalashov@172.30.105.251:5060;alias=$PUBLIC_IP~5060~1 Expires: 112 Q: 0.00 Call-ID: b1663a59ecd8732037017105a82662d3 CSeq: 3030 User-Agent: PolycomVVX-VVX_411-UA/5.6.0.17325 Received: sip:$PUBLIC_IP:5060 Path: State: CS_NEW Flags: 0 CFlags: 0 Socket: [not set] Methods: 8159 Ruid: uloc-5c6a50c4-5c25-98d Instance: [not set] Reg-Id: 0 Server-Id: 0 Tcpconn-Id: -1 Keepalive: 0 Last-Keepalive: 1552335034 Last-Modified: 1552335034 } } } There's a 50% chance I could be mistaken, but I vaguely remember that replication of 'received' was an issue in some earlier version of Kamailio than that. -- Alex On Mon, Mar 11, 2019 at 05:13:31PM +, Daniel W. Graham wrote: > When forwarding / replicating a REGISTER, is it possible (without using DMQ) > for the receiving host to save the contact with the original received > parameter? > > REGISTER > server 1 (received set) > forward > server 2 (received not > set) > > add_rcv_param will set received to server 1 IP, but I'm looking for the > original parameter as set on SERVER 1. > > -dan > ___ > Kamailio (SER) - Users Mailing List > sr-users@lists.kamailio.org > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users -- Alex Balashov | Principal | Evariste Systems LLC Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) Web: http://www.evaristesys.com/, http://www.csrpswitch.com/ ___ Kamailio (SER) - Users Mailing List 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
[SR-Users] Replicate REGISTER and save original received value
When forwarding / replicating a REGISTER, is it possible (without using DMQ) for the receiving host to save the contact with the original received parameter? REGISTER > server 1 (received set) > forward > server 2 (received not set) add_rcv_param will set received to server 1 IP, but I'm looking for the original parameter as set on SERVER 1. -dan ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] Kamctl / kamcmd
This has something to do with TLS config. If tls settings are removed/disabled in kamailio config file, kamcmd works normal. I havent identified the issue any further. -dan From: sr-users On Behalf Of Daniel W. Graham Sent: Tuesday, March 5, 2019 1:19 PM To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Kamctl / kamcmd Any ideas on the kamcmd issue? Executing any kamcmd command hangs with no output. -dan From: sr-users mailto:sr-users-boun...@lists.kamailio.org>> On Behalf Of Daniel W. Graham Sent: Tuesday, March 5, 2019 12:26 PM To: Kamailio (SER) - Users Mailing List mailto:sr-users@lists.kamailio.org>> Subject: Re: [SR-Users] Kamctl / kamcmd In this case its ok since it’s the source of the password: From default kamctlrc - ## password for database read/write user DBRWPW="kamailiorw" ## password for database read only user DBROPW="kamailioro" -dan From: sr-users mailto:sr-users-boun...@lists.kamailio.org>> On Behalf Of Sergey Safarov Sent: Tuesday, March 5, 2019 12:20 PM To: Kamailio (SER) - Users Mailing List mailto:sr-users@lists.kamailio.org>> Subject: Re: [SR-Users] Kamctl / kamcmd Single quotes not allow to resolve variables. Could you test notation "${MY_VAR_NAME}" instead of "$MY_VAR_NAME" Sergey вт, 5 мар. 2019 г. в 20:17, Daniel W. Graham mailto:d...@cmsinter.net>>: Changing double quotes to single quotes around passwords in kamctlrc fixed the issue with kamctl. -dan From: sr-users mailto:sr-users-boun...@lists.kamailio.org>> On Behalf Of Daniel W. Graham Sent: Tuesday, March 5, 2019 11:44 AM To: Kamailio (SER) - Users Mailing List mailto:sr-users@lists.kamailio.org>>; mico...@gmail.com<mailto:mico...@gmail.com> Subject: Re: [SR-Users] Kamctl / kamcmd Got a little ahead of myself, not an issue with the quotes, those have to be there obviously. Appears to be an issue with the way the password is presented though, still digging. -dan From: sr-users mailto:sr-users-boun...@lists.kamailio.org>> On Behalf Of Daniel W. Graham Sent: Tuesday, March 5, 2019 11:36 AM To: mico...@gmail.com<mailto:mico...@gmail.com> Cc: Kamailio (SER) - Users Mailing List mailto:sr-users@lists.kamailio.org>> Subject: Re: [SR-Users] Kamctl / kamcmd -x didnt yield anything. I checked the source of kamctl - $MYSQL $2 -h $DBHOST -u $DBRWUSER "-p$DBRWPW" $DBNAME The issue is due to special characters in the password being interpreted by the shell due to the double quotes around "-p$DBRWPW". -dan From: Daniel-Constantin Mierla mailto:mico...@gmail.com>> Sent: Tuesday, March 5, 2019 10:07 AM To: Daniel W. Graham mailto:d...@cmsinter.net>> Cc: Kamailio (SER) - Users Mailing List mailto:sr-users@lists.kamailio.org>> Subject: Re: [SR-Users] Kamctl / kamcmd Then run with -x as suggested in another response on the mailing list, maybe you can get some hints there. Otherwise, kamctl is just using mysql tool for sending commands, is not implementing any mysql client itself. kamcmd doesn't do anything with mysql, it is just a binrpc client interacting with ctl module in kamailio. Cheers, Daniel On 05.03.19 15:15, Daniel W. Graham wrote: Version 5.1.7 I saw a post talking about the grant issues on database creation, using an existing database in this case. -dan On Mar 5, 2019, at 2:53 AM, Daniel-Constantin Mierla mailto:mico...@gmail.com>> wrote: What version of kamailio are you using? Iirc, there were some updates to kamctl or kamdbctl related to latest mysql version, but if I am not wrong, they were about granting access, not executing queries. Cheers, Daniel On 05.03.19 05:54, Daniel W. Graham wrote: Are there any known compatibility issues with kamctl and mysql 8.0.x? Getting access denied when executing kamctl command. Kamcmd just hangs when executed. Kamctlrc is setup proper and connection can be made direct from shell to database using the same credentials. -dan ___ 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 -- Daniel-Constantin Mierla -- www.asipto.com<http://www.asipto.com> www.twitter.com/miconda<http://www.twitter.com/miconda> -- www.linkedin.com/in/miconda<http://www.linkedin.com/in/miconda> Kamailio World Conference - May 6-8, 2019 -- www.kamailioworld.com<http://www.kamailioworld.com> Kamailio Advanced Training - Mar 25-27, 2019, in Washington, DC, USA -- www.asipto.com<http://www.asipto.com> -- Daniel-Constantin Mierla -- www.asipto.com<http://www.asipto.com> www.twitter.com/miconda<http://www.twitter.com/miconda> -- www.linkedin.com/in/miconda<http://www.linkedin.com/in/miconda> Kamailio World Conference - May 6-8, 2019 -- www.kamailioworld.com<http://www.ka
Re: [SR-Users] Kamctl / kamcmd
Any ideas on the kamcmd issue? Executing any kamcmd command hangs with no output. -dan From: sr-users On Behalf Of Daniel W. Graham Sent: Tuesday, March 5, 2019 12:26 PM To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Kamctl / kamcmd In this case its ok since it’s the source of the password: From default kamctlrc - ## password for database read/write user DBRWPW="kamailiorw" ## password for database read only user DBROPW="kamailioro" -dan From: sr-users mailto:sr-users-boun...@lists.kamailio.org>> On Behalf Of Sergey Safarov Sent: Tuesday, March 5, 2019 12:20 PM To: Kamailio (SER) - Users Mailing List mailto:sr-users@lists.kamailio.org>> Subject: Re: [SR-Users] Kamctl / kamcmd Single quotes not allow to resolve variables. Could you test notation "${MY_VAR_NAME}" instead of "$MY_VAR_NAME" Sergey вт, 5 мар. 2019 г. в 20:17, Daniel W. Graham mailto:d...@cmsinter.net>>: Changing double quotes to single quotes around passwords in kamctlrc fixed the issue with kamctl. -dan From: sr-users mailto:sr-users-boun...@lists.kamailio.org>> On Behalf Of Daniel W. Graham Sent: Tuesday, March 5, 2019 11:44 AM To: Kamailio (SER) - Users Mailing List mailto:sr-users@lists.kamailio.org>>; mico...@gmail.com<mailto:mico...@gmail.com> Subject: Re: [SR-Users] Kamctl / kamcmd Got a little ahead of myself, not an issue with the quotes, those have to be there obviously. Appears to be an issue with the way the password is presented though, still digging. -dan From: sr-users mailto:sr-users-boun...@lists.kamailio.org>> On Behalf Of Daniel W. Graham Sent: Tuesday, March 5, 2019 11:36 AM To: mico...@gmail.com<mailto:mico...@gmail.com> Cc: Kamailio (SER) - Users Mailing List mailto:sr-users@lists.kamailio.org>> Subject: Re: [SR-Users] Kamctl / kamcmd -x didnt yield anything. I checked the source of kamctl - $MYSQL $2 -h $DBHOST -u $DBRWUSER "-p$DBRWPW" $DBNAME The issue is due to special characters in the password being interpreted by the shell due to the double quotes around "-p$DBRWPW". -dan From: Daniel-Constantin Mierla mailto:mico...@gmail.com>> Sent: Tuesday, March 5, 2019 10:07 AM To: Daniel W. Graham mailto:d...@cmsinter.net>> Cc: Kamailio (SER) - Users Mailing List mailto:sr-users@lists.kamailio.org>> Subject: Re: [SR-Users] Kamctl / kamcmd Then run with -x as suggested in another response on the mailing list, maybe you can get some hints there. Otherwise, kamctl is just using mysql tool for sending commands, is not implementing any mysql client itself. kamcmd doesn't do anything with mysql, it is just a binrpc client interacting with ctl module in kamailio. Cheers, Daniel On 05.03.19 15:15, Daniel W. Graham wrote: Version 5.1.7 I saw a post talking about the grant issues on database creation, using an existing database in this case. -dan On Mar 5, 2019, at 2:53 AM, Daniel-Constantin Mierla mailto:mico...@gmail.com>> wrote: What version of kamailio are you using? Iirc, there were some updates to kamctl or kamdbctl related to latest mysql version, but if I am not wrong, they were about granting access, not executing queries. Cheers, Daniel On 05.03.19 05:54, Daniel W. Graham wrote: Are there any known compatibility issues with kamctl and mysql 8.0.x? Getting access denied when executing kamctl command. Kamcmd just hangs when executed. Kamctlrc is setup proper and connection can be made direct from shell to database using the same credentials. -dan ___ 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 -- Daniel-Constantin Mierla -- www.asipto.com<http://www.asipto.com> www.twitter.com/miconda<http://www.twitter.com/miconda> -- www.linkedin.com/in/miconda<http://www.linkedin.com/in/miconda> Kamailio World Conference - May 6-8, 2019 -- www.kamailioworld.com<http://www.kamailioworld.com> Kamailio Advanced Training - Mar 25-27, 2019, in Washington, DC, USA -- www.asipto.com<http://www.asipto.com> -- Daniel-Constantin Mierla -- www.asipto.com<http://www.asipto.com> www.twitter.com/miconda<http://www.twitter.com/miconda> -- www.linkedin.com/in/miconda<http://www.linkedin.com/in/miconda> Kamailio World Conference - May 6-8, 2019 -- www.kamailioworld.com<http://www.kamailioworld.com> Kamailio Advanced Training - Mar 25-27, 2019, in Washington, DC, USA -- www.asipto.com<http://www.asipto.com> ___ 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
Re: [SR-Users] Kamctl / kamcmd
In this case its ok since it’s the source of the password: From default kamctlrc - ## password for database read/write user DBRWPW="kamailiorw" ## password for database read only user DBROPW="kamailioro" -dan From: sr-users On Behalf Of Sergey Safarov Sent: Tuesday, March 5, 2019 12:20 PM To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Kamctl / kamcmd Single quotes not allow to resolve variables. Could you test notation "${MY_VAR_NAME}" instead of "$MY_VAR_NAME" Sergey вт, 5 мар. 2019 г. в 20:17, Daniel W. Graham mailto:d...@cmsinter.net>>: Changing double quotes to single quotes around passwords in kamctlrc fixed the issue with kamctl. -dan From: sr-users mailto:sr-users-boun...@lists.kamailio.org>> On Behalf Of Daniel W. Graham Sent: Tuesday, March 5, 2019 11:44 AM To: Kamailio (SER) - Users Mailing List mailto:sr-users@lists.kamailio.org>>; mico...@gmail.com<mailto:mico...@gmail.com> Subject: Re: [SR-Users] Kamctl / kamcmd Got a little ahead of myself, not an issue with the quotes, those have to be there obviously. Appears to be an issue with the way the password is presented though, still digging. -dan From: sr-users mailto:sr-users-boun...@lists.kamailio.org>> On Behalf Of Daniel W. Graham Sent: Tuesday, March 5, 2019 11:36 AM To: mico...@gmail.com<mailto:mico...@gmail.com> Cc: Kamailio (SER) - Users Mailing List mailto:sr-users@lists.kamailio.org>> Subject: Re: [SR-Users] Kamctl / kamcmd -x didnt yield anything. I checked the source of kamctl - $MYSQL $2 -h $DBHOST -u $DBRWUSER "-p$DBRWPW" $DBNAME The issue is due to special characters in the password being interpreted by the shell due to the double quotes around "-p$DBRWPW". -dan From: Daniel-Constantin Mierla mailto:mico...@gmail.com>> Sent: Tuesday, March 5, 2019 10:07 AM To: Daniel W. Graham mailto:d...@cmsinter.net>> Cc: Kamailio (SER) - Users Mailing List mailto:sr-users@lists.kamailio.org>> Subject: Re: [SR-Users] Kamctl / kamcmd Then run with -x as suggested in another response on the mailing list, maybe you can get some hints there. Otherwise, kamctl is just using mysql tool for sending commands, is not implementing any mysql client itself. kamcmd doesn't do anything with mysql, it is just a binrpc client interacting with ctl module in kamailio. Cheers, Daniel On 05.03.19 15:15, Daniel W. Graham wrote: Version 5.1.7 I saw a post talking about the grant issues on database creation, using an existing database in this case. -dan On Mar 5, 2019, at 2:53 AM, Daniel-Constantin Mierla mailto:mico...@gmail.com>> wrote: What version of kamailio are you using? Iirc, there were some updates to kamctl or kamdbctl related to latest mysql version, but if I am not wrong, they were about granting access, not executing queries. Cheers, Daniel On 05.03.19 05:54, Daniel W. Graham wrote: Are there any known compatibility issues with kamctl and mysql 8.0.x? Getting access denied when executing kamctl command. Kamcmd just hangs when executed. Kamctlrc is setup proper and connection can be made direct from shell to database using the same credentials. -dan ___ 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 -- Daniel-Constantin Mierla -- www.asipto.com<http://www.asipto.com> www.twitter.com/miconda<http://www.twitter.com/miconda> -- www.linkedin.com/in/miconda<http://www.linkedin.com/in/miconda> Kamailio World Conference - May 6-8, 2019 -- www.kamailioworld.com<http://www.kamailioworld.com> Kamailio Advanced Training - Mar 25-27, 2019, in Washington, DC, USA -- www.asipto.com<http://www.asipto.com> -- Daniel-Constantin Mierla -- www.asipto.com<http://www.asipto.com> www.twitter.com/miconda<http://www.twitter.com/miconda> -- www.linkedin.com/in/miconda<http://www.linkedin.com/in/miconda> Kamailio World Conference - May 6-8, 2019 -- www.kamailioworld.com<http://www.kamailioworld.com> Kamailio Advanced Training - Mar 25-27, 2019, in Washington, DC, USA -- www.asipto.com<http://www.asipto.com> ___ 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
Re: [SR-Users] Kamctl / kamcmd
Changing double quotes to single quotes around passwords in kamctlrc fixed the issue with kamctl. -dan From: sr-users On Behalf Of Daniel W. Graham Sent: Tuesday, March 5, 2019 11:44 AM To: Kamailio (SER) - Users Mailing List ; mico...@gmail.com Subject: Re: [SR-Users] Kamctl / kamcmd Got a little ahead of myself, not an issue with the quotes, those have to be there obviously. Appears to be an issue with the way the password is presented though, still digging. -dan From: sr-users mailto:sr-users-boun...@lists.kamailio.org>> On Behalf Of Daniel W. Graham Sent: Tuesday, March 5, 2019 11:36 AM To: mico...@gmail.com<mailto:mico...@gmail.com> Cc: Kamailio (SER) - Users Mailing List mailto:sr-users@lists.kamailio.org>> Subject: Re: [SR-Users] Kamctl / kamcmd -x didnt yield anything. I checked the source of kamctl - $MYSQL $2 -h $DBHOST -u $DBRWUSER "-p$DBRWPW" $DBNAME The issue is due to special characters in the password being interpreted by the shell due to the double quotes around "-p$DBRWPW". -dan From: Daniel-Constantin Mierla mailto:mico...@gmail.com>> Sent: Tuesday, March 5, 2019 10:07 AM To: Daniel W. Graham mailto:d...@cmsinter.net>> Cc: Kamailio (SER) - Users Mailing List mailto:sr-users@lists.kamailio.org>> Subject: Re: [SR-Users] Kamctl / kamcmd Then run with -x as suggested in another response on the mailing list, maybe you can get some hints there. Otherwise, kamctl is just using mysql tool for sending commands, is not implementing any mysql client itself. kamcmd doesn't do anything with mysql, it is just a binrpc client interacting with ctl module in kamailio. Cheers, Daniel On 05.03.19 15:15, Daniel W. Graham wrote: Version 5.1.7 I saw a post talking about the grant issues on database creation, using an existing database in this case. -dan On Mar 5, 2019, at 2:53 AM, Daniel-Constantin Mierla mailto:mico...@gmail.com>> wrote: What version of kamailio are you using? Iirc, there were some updates to kamctl or kamdbctl related to latest mysql version, but if I am not wrong, they were about granting access, not executing queries. Cheers, Daniel On 05.03.19 05:54, Daniel W. Graham wrote: Are there any known compatibility issues with kamctl and mysql 8.0.x? Getting access denied when executing kamctl command. Kamcmd just hangs when executed. Kamctlrc is setup proper and connection can be made direct from shell to database using the same credentials. -dan ___ 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 -- Daniel-Constantin Mierla -- www.asipto.com<http://www.asipto.com> www.twitter.com/miconda<http://www.twitter.com/miconda> -- www.linkedin.com/in/miconda<http://www.linkedin.com/in/miconda> Kamailio World Conference - May 6-8, 2019 -- www.kamailioworld.com<http://www.kamailioworld.com> Kamailio Advanced Training - Mar 25-27, 2019, in Washington, DC, USA -- www.asipto.com<http://www.asipto.com> -- Daniel-Constantin Mierla -- www.asipto.com<http://www.asipto.com> www.twitter.com/miconda<http://www.twitter.com/miconda> -- www.linkedin.com/in/miconda<http://www.linkedin.com/in/miconda> Kamailio World Conference - May 6-8, 2019 -- www.kamailioworld.com<http://www.kamailioworld.com> Kamailio Advanced Training - Mar 25-27, 2019, in Washington, DC, USA -- www.asipto.com<http://www.asipto.com> ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] Kamctl / kamcmd
Got a little ahead of myself, not an issue with the quotes, those have to be there obviously. Appears to be an issue with the way the password is presented though, still digging. -dan From: sr-users On Behalf Of Daniel W. Graham Sent: Tuesday, March 5, 2019 11:36 AM To: mico...@gmail.com Cc: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Kamctl / kamcmd -x didnt yield anything. I checked the source of kamctl - $MYSQL $2 -h $DBHOST -u $DBRWUSER "-p$DBRWPW" $DBNAME The issue is due to special characters in the password being interpreted by the shell due to the double quotes around "-p$DBRWPW". -dan From: Daniel-Constantin Mierla mailto:mico...@gmail.com>> Sent: Tuesday, March 5, 2019 10:07 AM To: Daniel W. Graham mailto:d...@cmsinter.net>> Cc: Kamailio (SER) - Users Mailing List mailto:sr-users@lists.kamailio.org>> Subject: Re: [SR-Users] Kamctl / kamcmd Then run with -x as suggested in another response on the mailing list, maybe you can get some hints there. Otherwise, kamctl is just using mysql tool for sending commands, is not implementing any mysql client itself. kamcmd doesn't do anything with mysql, it is just a binrpc client interacting with ctl module in kamailio. Cheers, Daniel On 05.03.19 15:15, Daniel W. Graham wrote: Version 5.1.7 I saw a post talking about the grant issues on database creation, using an existing database in this case. -dan On Mar 5, 2019, at 2:53 AM, Daniel-Constantin Mierla mailto:mico...@gmail.com>> wrote: What version of kamailio are you using? Iirc, there were some updates to kamctl or kamdbctl related to latest mysql version, but if I am not wrong, they were about granting access, not executing queries. Cheers, Daniel On 05.03.19 05:54, Daniel W. Graham wrote: Are there any known compatibility issues with kamctl and mysql 8.0.x? Getting access denied when executing kamctl command. Kamcmd just hangs when executed. Kamctlrc is setup proper and connection can be made direct from shell to database using the same credentials. -dan ___ 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 -- Daniel-Constantin Mierla -- www.asipto.com<http://www.asipto.com> www.twitter.com/miconda<http://www.twitter.com/miconda> -- www.linkedin.com/in/miconda<http://www.linkedin.com/in/miconda> Kamailio World Conference - May 6-8, 2019 -- www.kamailioworld.com<http://www.kamailioworld.com> Kamailio Advanced Training - Mar 25-27, 2019, in Washington, DC, USA -- www.asipto.com<http://www.asipto.com> -- Daniel-Constantin Mierla -- www.asipto.com<http://www.asipto.com> www.twitter.com/miconda<http://www.twitter.com/miconda> -- www.linkedin.com/in/miconda<http://www.linkedin.com/in/miconda> Kamailio World Conference - May 6-8, 2019 -- www.kamailioworld.com<http://www.kamailioworld.com> Kamailio Advanced Training - Mar 25-27, 2019, in Washington, DC, USA -- www.asipto.com<http://www.asipto.com> ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] Kamctl / kamcmd
-x didnt yield anything. I checked the source of kamctl - $MYSQL $2 -h $DBHOST -u $DBRWUSER "-p$DBRWPW" $DBNAME The issue is due to special characters in the password being interpreted by the shell due to the double quotes around "-p$DBRWPW". -dan From: Daniel-Constantin Mierla Sent: Tuesday, March 5, 2019 10:07 AM To: Daniel W. Graham Cc: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Kamctl / kamcmd Then run with -x as suggested in another response on the mailing list, maybe you can get some hints there. Otherwise, kamctl is just using mysql tool for sending commands, is not implementing any mysql client itself. kamcmd doesn't do anything with mysql, it is just a binrpc client interacting with ctl module in kamailio. Cheers, Daniel On 05.03.19 15:15, Daniel W. Graham wrote: Version 5.1.7 I saw a post talking about the grant issues on database creation, using an existing database in this case. -dan On Mar 5, 2019, at 2:53 AM, Daniel-Constantin Mierla mailto:mico...@gmail.com>> wrote: What version of kamailio are you using? Iirc, there were some updates to kamctl or kamdbctl related to latest mysql version, but if I am not wrong, they were about granting access, not executing queries. Cheers, Daniel On 05.03.19 05:54, Daniel W. Graham wrote: Are there any known compatibility issues with kamctl and mysql 8.0.x? Getting access denied when executing kamctl command. Kamcmd just hangs when executed. Kamctlrc is setup proper and connection can be made direct from shell to database using the same credentials. -dan ___ 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 -- Daniel-Constantin Mierla -- www.asipto.com<http://www.asipto.com> www.twitter.com/miconda<http://www.twitter.com/miconda> -- www.linkedin.com/in/miconda<http://www.linkedin.com/in/miconda> Kamailio World Conference - May 6-8, 2019 -- www.kamailioworld.com<http://www.kamailioworld.com> Kamailio Advanced Training - Mar 25-27, 2019, in Washington, DC, USA -- www.asipto.com<http://www.asipto.com> -- Daniel-Constantin Mierla -- www.asipto.com<http://www.asipto.com> www.twitter.com/miconda<http://www.twitter.com/miconda> -- www.linkedin.com/in/miconda<http://www.linkedin.com/in/miconda> Kamailio World Conference - May 6-8, 2019 -- www.kamailioworld.com<http://www.kamailioworld.com> Kamailio Advanced Training - Mar 25-27, 2019, in Washington, DC, USA -- www.asipto.com<http://www.asipto.com> ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] Kamctl / kamcmd
Version 5.1.7 I saw a post talking about the grant issues on database creation, using an existing database in this case. -dan On Mar 5, 2019, at 2:53 AM, Daniel-Constantin Mierla mailto:mico...@gmail.com>> wrote: What version of kamailio are you using? Iirc, there were some updates to kamctl or kamdbctl related to latest mysql version, but if I am not wrong, they were about granting access, not executing queries. Cheers, Daniel On 05.03.19 05:54, Daniel W. Graham wrote: Are there any known compatibility issues with kamctl and mysql 8.0.x? Getting access denied when executing kamctl command. Kamcmd just hangs when executed. Kamctlrc is setup proper and connection can be made direct from shell to database using the same credentials. -dan ___ 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 -- Daniel-Constantin Mierla -- www.asipto.com<http://www.asipto.com> www.twitter.com/miconda<http://www.twitter.com/miconda> -- www.linkedin.com/in/miconda<http://www.linkedin.com/in/miconda> Kamailio World Conference - May 6-8, 2019 -- www.kamailioworld.com<http://www.kamailioworld.com> Kamailio Advanced Training - Mar 25-27, 2019, in Washington, DC, USA -- www.asipto.com<http://www.asipto.com> ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
[SR-Users] Kamctl / kamcmd
Are there any known compatibility issues with kamctl and mysql 8.0.x? Getting access denied when executing kamctl command. Kamcmd just hangs when executed. Kamctlrc is setup proper and connection can be made direct from shell to database using the same credentials. -dan ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] DMQ - Failed to get domain
Yes, that output was from receiver. When using DB only and no DMQ, things work fine. No, I don’t have any calls to save on receiver or register handling in general. I was under the impression that DMQ / dmq_usrloc module handled this transparently. I have tried this previously though with no luck: if (dmq_is_from_node()) { if (!save("location")) { … Receiver gets KDMQ message from sender, does the module then expose this to Kamailio as a normal REGISTER request based on user part of to header being ‘usrloc’? I’ve shifted to using t_replicate and am happy with the results, but can still leverage DMQ so I’d like to get a working implementation. -dan From: sr-users On Behalf Of Charles Chance Sent: Wednesday, September 12, 2018 7:06 AM To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] DMQ - Failed to get domain On Fri, 7 Sep 2018 at 14:40, Daniel W. Graham mailto:d...@cmsinter.net>> wrote: My intent is to run in memory only except on one node which writes to database for reporting use. If this is not possible I will use an alternate for the database host. It is possible, although you should use mode 1 or 2. Mode 3 is DB only and 4 only reads on startup (nothing written). Just to note, same issue is present for dialog module, in this case dialogs sync fine but nothing is written to the database. …. modparam("dialog", "enable_dmq", 1) modparam("dialog", "db_mode", 1) (Set to 0 on sender) …. Contact replication is still not working though, even with db_mode=4 on both nodes, still getting: ERROR: dmq_usrloc [usrloc_sync.c:70]: add_contact(): Failed to get domain # kamctl ul show { "jsonrpc": "2.0", "result": { "Domains": [] }, "id": 1366 } I suspect here is your issue - although it's difficult to know based on the information provided why there are no domains in the list. Was this command issued on the sender or receiver? If the receiver, do you have a call to save() in your config? I believe this is parsed at startup to determine which domains to create in memory - so realistically, the configs on all nodes should be identical (or at least contain the same REGISTER handling logic). Otherwise, did you have this working without DMQ replication (i.e. replicating via DB only)? Cheers, Charles Sipcentric Ltd. Company registered in England & Wales no. 7365592. Registered office: Faraday Wharf, Innovation Birmingham Campus, Holt Street, Birmingham Science Park, Birmingham B7 4BB. ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] DMQ - Failed to get domain
My intent is to run in memory only except on one node which writes to database for reporting use. If this is not possible I will use an alternate for the database host. Just to note, same issue is present for dialog module, in this case dialogs sync fine but nothing is written to the database. …. modparam("dialog", "enable_dmq", 1) modparam("dialog", "db_mode", 1) (Set to 0 on sender) …. Contact replication is still not working though, even with db_mode=4 on both nodes, still getting: ERROR: dmq_usrloc [usrloc_sync.c:70]: add_contact(): Failed to get domain # kamctl ul show { "jsonrpc": "2.0", "result": { "Domains": [] }, "id": 1366 } Send: modparam("usrloc", "db_url", DBURL) modparam("usrloc", "db_mode", 4) modparam("usrloc", "use_domain", 0) modparam("usrloc", "nat_bflag", FLB_NATB) modparam("dmq_usrloc", "enable", 1) modparam("dmq_usrloc", "sync", 1) Receive: modparam("usrloc", "db_url", DBURL) modparam("usrloc", "db_mode", 4) modparam("usrloc", "use_domain", 0) modparam("dmq_usrloc", "enable", 1) modparam("dmq_usrloc", "sync", 0) -dan From: sr-users On Behalf Of Charles Chance Sent: Friday, September 7, 2018 1:27 AM To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] DMQ - Failed to get domain dmq_usrloc is designed for replication of in-memory contacts and typically removes the need for using a database altogether. If you do still have a need for the database then you probably want to be using db_mode 1 or 2 (and the same on both nodes). I have never tried using db_mode 3 on a receiving (or any for that matter) node - can you try with an alternative mode and let me know if you still have the same issue? If the issue remains, please share your usrloc params for both servers. Charles On Thu, 6 Sep 2018 at 20:23, Daniel W. Graham mailto:d...@cmsinter.net>> wrote: dbmode = 4 on the host acting as registrar. dbmode = 3 on the host receiving replicated usr_loc. -dan From: sr-users mailto:sr-users-boun...@lists.kamailio.org>> On Behalf Of Charles Chance Sent: Thursday, September 6, 2018 3:12 PM To: Kamailio (SER) - Users Mailing List mailto:sr-users@lists.kamailio.org>> Subject: Re: [SR-Users] DMQ - Failed to get domain Hello, On Thu, 6 Sep 2018 at 19:00, Daniel W. Graham mailto:d...@cmsinter.net>> wrote: v 5.1.5 modparam("dmq", "server_address", "sip:x.x.x.x:5060") modparam("dmq", "notification_address", "sip:y.y.y.y:5060") modparam("dmq", "multi_notify", 1) modparam("dmq", "num_workers", 2) modparam("dmq", "worker_usleep", 0) modparam("dmq", "ping_interval", 90) modparam("dmq_usrloc", "enable", 1) modparam("dmq_usrloc", "sync", 0) modparam("dmq_usrloc", "usrloc_domain", "location") My initial assumption was that dmq_handle_message() handled everything. It does. I have since added if (dmq_is_from_node()) { if (!save("location")) { xlogl("L_ERR", "Error saving contact\n"); } } This will not work. Now results in: ERROR: [db.c:463]: db_use_table(): invalid parameter value ERROR: usrloc [udomain.c:631]: db_load_urecord(): failed to use table location ERROR: [db.c:463]: db_use_table(): invalid parameter value ERROR: usrloc [ucontact.c:679]: db_insert_ucontact(): sql use_table failed ERROR: usrloc [urecord.c:582]: insert_ucontact(): failed to insert in database Which db_mode are you using for usrloc? Cheers, Charles -- Charles Chance Managing Director t. 0330 120 1200m. 07932 063 891 Sipcentric Ltd. Company registered in England & Wales no. 7365592. Registered office: Faraday Wharf, Innovation Birmingham Campus, Holt Street, Birmingham Science Park, Birmingham B7 4BB. ___ 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 -- Charles Chance Managing Director t. 0330 120 1200m. 07932 063 891 Sipcentric Ltd. Company registered in England & Wales no. 7365592. Registered office: Faraday Wharf, Innovation Birmingham Campus, Holt Street, Birmingham Science Park, Birmingham B7 4BB. ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] DMQ - Failed to get domain
dbmode = 4 on the host acting as registrar. dbmode = 3 on the host receiving replicated usr_loc. -dan From: sr-users On Behalf Of Charles Chance Sent: Thursday, September 6, 2018 3:12 PM To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] DMQ - Failed to get domain Hello, On Thu, 6 Sep 2018 at 19:00, Daniel W. Graham mailto:d...@cmsinter.net>> wrote: v 5.1.5 modparam("dmq", "server_address", "sip:x.x.x.x:5060") modparam("dmq", "notification_address", "sip:y.y.y.y:5060") modparam("dmq", "multi_notify", 1) modparam("dmq", "num_workers", 2) modparam("dmq", "worker_usleep", 0) modparam("dmq", "ping_interval", 90) modparam("dmq_usrloc", "enable", 1) modparam("dmq_usrloc", "sync", 0) modparam("dmq_usrloc", "usrloc_domain", "location") My initial assumption was that dmq_handle_message() handled everything. It does. I have since added if (dmq_is_from_node()) { if (!save("location")) { xlogl("L_ERR", "Error saving contact\n"); } } This will not work. Now results in: ERROR: [db.c:463]: db_use_table(): invalid parameter value ERROR: usrloc [udomain.c:631]: db_load_urecord(): failed to use table location ERROR: [db.c:463]: db_use_table(): invalid parameter value ERROR: usrloc [ucontact.c:679]: db_insert_ucontact(): sql use_table failed ERROR: usrloc [urecord.c:582]: insert_ucontact(): failed to insert in database Which db_mode are you using for usrloc? Cheers, Charles -- Charles Chance Managing Director t. 0330 120 1200m. 07932 063 891 Sipcentric Ltd. Company registered in England & Wales no. 7365592. Registered office: Faraday Wharf, Innovation Birmingham Campus, Holt Street, Birmingham Science Park, Birmingham B7 4BB. ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] DMQ - Failed to get domain
Correction: if (!save("location", "0x02")) { ….. -dan From: sr-users On Behalf Of Daniel W. Graham Sent: Thursday, September 6, 2018 1:59 PM To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] DMQ - Failed to get domain v 5.1.5 modparam("dmq", "server_address", "sip:x.x.x.x:5060") modparam("dmq", "notification_address", "sip:y.y.y.y:5060") modparam("dmq", "multi_notify", 1) modparam("dmq", "num_workers", 2) modparam("dmq", "worker_usleep", 0) modparam("dmq", "ping_interval", 90) modparam("dmq_usrloc", "enable", 1) modparam("dmq_usrloc", "sync", 0) modparam("dmq_usrloc", "usrloc_domain", "location") My initial assumption was that dmq_handle_message() handled everything. I have since added if (dmq_is_from_node()) { if (!save("location")) { xlogl("L_ERR", "Error saving contact\n"); } } Now results in: ERROR: [db.c:463]: db_use_table(): invalid parameter value ERROR: usrloc [udomain.c:631]: db_load_urecord(): failed to use table location ERROR: [db.c:463]: db_use_table(): invalid parameter value ERROR: usrloc [ucontact.c:679]: db_insert_ucontact(): sql use_table failed ERROR: usrloc [urecord.c:582]: insert_ucontact(): failed to insert in database -dan From: sr-users mailto:sr-users-boun...@lists.kamailio.org>> On Behalf Of Charles Chance Sent: Thursday, September 6, 2018 6:01 AM To: Kamailio (SER) - Users Mailing List mailto:sr-users@lists.kamailio.org>> Subject: Re: [SR-Users] DMQ - Failed to get domain Hi Dan, Which version are you using? Can you share your dmq_usrloc mod params and also your call to the save() function? Cheers, Charles On Thu, 6 Sep 2018 at 05:14, Daniel W. Graham mailto:d...@cmsinter.net>> wrote: Receiving the following message on the node receiving usr_loc via DMQ, for each location received: DEBUG: dmq [worker.c:87]: worker_loop(): dmq_worker [0 54958] lock acquired DEBUG: dmq_usrloc [usrloc_sync.c:460]: usrloc_dmq_handle_msg(): dmq message received from sip:usrloc@x.x.x.x DEBUG: dmq_usrloc [usrloc_sync.c:405]: usrloc_dmq_execute_action(): Received DMQ_UPDATE. Update contact info... ERROR: dmq_usrloc [usrloc_sync.c:70]: add_contact(): Failed to get domain Any input is appreciated. Thanks, -dan ___ 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 -- Charles Chance Managing Director t. 0330 120 1200m. 07932 063 891 Sipcentric Ltd. Company registered in England & Wales no. 7365592. Registered office: Faraday Wharf, Innovation Birmingham Campus, Holt Street, Birmingham Science Park, Birmingham B7 4BB. ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] DMQ - Failed to get domain
v 5.1.5 modparam("dmq", "server_address", "sip:x.x.x.x:5060") modparam("dmq", "notification_address", "sip:y.y.y.y:5060") modparam("dmq", "multi_notify", 1) modparam("dmq", "num_workers", 2) modparam("dmq", "worker_usleep", 0) modparam("dmq", "ping_interval", 90) modparam("dmq_usrloc", "enable", 1) modparam("dmq_usrloc", "sync", 0) modparam("dmq_usrloc", "usrloc_domain", "location") My initial assumption was that dmq_handle_message() handled everything. I have since added if (dmq_is_from_node()) { if (!save("location")) { xlogl("L_ERR", "Error saving contact\n"); } } Now results in: ERROR: [db.c:463]: db_use_table(): invalid parameter value ERROR: usrloc [udomain.c:631]: db_load_urecord(): failed to use table location ERROR: [db.c:463]: db_use_table(): invalid parameter value ERROR: usrloc [ucontact.c:679]: db_insert_ucontact(): sql use_table failed ERROR: usrloc [urecord.c:582]: insert_ucontact(): failed to insert in database -dan From: sr-users On Behalf Of Charles Chance Sent: Thursday, September 6, 2018 6:01 AM To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] DMQ - Failed to get domain Hi Dan, Which version are you using? Can you share your dmq_usrloc mod params and also your call to the save() function? Cheers, Charles On Thu, 6 Sep 2018 at 05:14, Daniel W. Graham mailto:d...@cmsinter.net>> wrote: Receiving the following message on the node receiving usr_loc via DMQ, for each location received: DEBUG: dmq [worker.c:87]: worker_loop(): dmq_worker [0 54958] lock acquired DEBUG: dmq_usrloc [usrloc_sync.c:460]: usrloc_dmq_handle_msg(): dmq message received from sip:usrloc@x.x.x.x DEBUG: dmq_usrloc [usrloc_sync.c:405]: usrloc_dmq_execute_action(): Received DMQ_UPDATE. Update contact info... ERROR: dmq_usrloc [usrloc_sync.c:70]: add_contact(): Failed to get domain Any input is appreciated. Thanks, -dan ___ 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 -- Charles Chance Managing Director t. 0330 120 1200m. 07932 063 891 Sipcentric Ltd. Company registered in England & Wales no. 7365592. Registered office: Faraday Wharf, Innovation Birmingham Campus, Holt Street, Birmingham Science Park, Birmingham B7 4BB. ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
[SR-Users] DMQ - Failed to get domain
Receiving the following message on the node receiving usr_loc via DMQ, for each location received: DEBUG: dmq [worker.c:87]: worker_loop(): dmq_worker [0 54958] lock acquired DEBUG: dmq_usrloc [usrloc_sync.c:460]: usrloc_dmq_handle_msg(): dmq message received from sip:usrloc@x.x.x.x DEBUG: dmq_usrloc [usrloc_sync.c:405]: usrloc_dmq_execute_action(): Received DMQ_UPDATE. Update contact info... ERROR: dmq_usrloc [usrloc_sync.c:70]: add_contact(): Failed to get domain Any input is appreciated. Thanks, -dan ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] Delay
I enabled latency tracking (which is pretty slick) but it all checked out ok. So looking like it's not Kamailio or a related backend process. Thanks for the tip on latency tracking! - dan From: Daniel-Constantin Mierla Sent: Thursday, August 30, 2018 2:51 AM To: Kamailio (SER) - Users Mailing List ; Daniel W. Graham Subject: Re: [SR-Users] Delay Hello, if it appeared without doing any upgrade to the OS, then likely a backend/system you interact with has intervals when it doesn't respond quick enough. Try to check: - a database table where you do insert or query is too big (e.g., acc) - dns server You can enable latency tracking for actions in cofig, see the core cookbook wiki, there are some global parameter with 'latency' in name that should help spotting if there is a particular action in config that is slow: * https://www.kamailio.org/wiki/cookbooks/5.1.x/core#latency_cfg_log If that is not the case, then might be the OS, two days ago or so there was another discussion here about same topic which proved to be due to a faulty kernel. Cheers, Daniel On 29.08.18 21:29, Daniel W. Graham wrote: Recently encountered a delay issue, packets arrive on system but Kamailio doesn't process right away. Here are a few details, any direction on what I can do to narrow down is appreciated. The receive queue normally sits at 0 or has random spike, when this issue occurs receive queue remains high like the below output. Version 5.1.5 ss -4 -n -l | grep 5060 udpUNCONN 321536 0 207.241.130.2:5060 *:* tcpLISTEN 0 128207.241.130.2:5060 *:* -dan ___ 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 -- Daniel-Constantin Mierla -- www.asipto.com<http://www.asipto.com> www.twitter.com/miconda<http://www.twitter.com/miconda> -- www.linkedin.com/in/miconda<http://www.linkedin.com/in/miconda> Kamailio World Conference -- www.kamailioworld.com<http://www.kamailioworld.com> Kamailio Advanced Training, Nov 12-14, 2018, in Berlin -- www.asipto.com<http://www.asipto.com> ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
[SR-Users] Delay
Recently encountered a delay issue, packets arrive on system but Kamailio doesn't process right away. Here are a few details, any direction on what I can do to narrow down is appreciated. The receive queue normally sits at 0 or has random spike, when this issue occurs receive queue remains high like the below output. Version 5.1.5 ss -4 -n -l | grep 5060 udpUNCONN 321536 0 207.241.130.2:5060 *:* tcpLISTEN 0 128207.241.130.2:5060 *:* -dan ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] Dispatcher Routing Failure
Enough time spent and was able to answer my question. Failure_route controls the condition(s), however what I was not seeing was a 500 response sent from another off network peer which was triggering the event route per the failure route config criteria. -dan From: sr-users <sr-users-boun...@lists.kamailio.org> On Behalf Of Daniel W. Graham Sent: Tuesday, March 27, 2018 12:15 PM To: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org> Subject: Re: [SR-Users] Dispatcher Routing Failure Sorry, let me clarify my last statement - I'm seeing dispatcher:dst-down event route getting hit even though all sip requests are answered by dispatcher destination. Those requests resulting in 503 error (maybe others, not confirmed yet) appear to be triggering the dispatcher:dst-down event route. So looking for the criteria that dispatcher module uses to determine a 'failed request'. Any thoughts? -dan From: sr-users <sr-users-boun...@lists.kamailio.org<mailto:sr-users-boun...@lists.kamailio.org>> On Behalf Of Daniel W. Graham Sent: Tuesday, March 27, 2018 12:04 PM To: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org>> Subject: Re: [SR-Users] Dispatcher Routing Failure I'm seeing dispatcher:dst-down event route getting hit but no prior failed sip requests that I see in packet capture. Any thoughts on what could be happing? -dan From: sr-users <sr-users-boun...@lists.kamailio.org<mailto:sr-users-boun...@lists.kamailio.org>> On Behalf Of Daniel W. Graham Sent: Friday, March 23, 2018 12:40 PM To: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org>> Subject: [SR-Users] Dispatcher Routing Failure What constitutes a 'failed request' in dispatcher module, in which a gateway is marked inactive? >From documentation - ds_ping_interval With this parameter you can define the interval for sending a request to a gateway marked as inactive upon a failed request routing to it. ds_probing_threshold If you want to set a gateway into inactive mode, there can be a specific number of failed requests until it will change from "active" to "inactive". Thanks, -dan ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
[SR-Users] Dispatcher Routing Failure
What constitutes a 'failed request' in dispatcher module, in which a gateway is marked inactive? >From documentation - ds_ping_interval With this parameter you can define the interval for sending a request to a gateway marked as inactive upon a failed request routing to it. ds_probing_threshold If you want to set a gateway into inactive mode, there can be a specific number of failed requests until it will change from "active" to "inactive". Thanks, -dan ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] Multiple Kamailio Servers + Location Table
Confirmed that db_mode = 3 works as intended however db_mode = 2 results in all records disappearing. -dan From: sr-users [mailto:sr-users-boun...@lists.kamailio.org] On Behalf Of Daniel W. Graham Sent: Wednesday, December 20, 2017 10:35 AM To: mico...@gmail.com; Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org> Subject: Re: [SR-Users] Multiple Kamailio Servers + Location Table Yes, to your first question, most records originally written by the active server disappear. Only way to restore all records to the location table is taking standby servers offline and restart Kamailio on active server. If a restart is not performed records wont reappear in table. db_mode is 2 Database is replication is active passive. Daniel W. Graham, CTO CMSInter.net LLC DIRECT (989) 400-4230 INTERNET | TELEPHONE | MANAGED IT From: Daniel-Constantin Mierla [mailto:mico...@gmail.com] Sent: Wednesday, December 20, 2017 3:48 AM To: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org>>; Daniel W. Graham <d...@cmsinter.net<mailto:d...@cmsinter.net>> Subject: Re: [SR-Users] Multiple Kamailio Servers + Location Table Hello, On 20.12.17 06:28, Daniel W. Graham wrote: When multiple Kamailio servers are using the same database with different server_id's (one active the rest standby in this test), records disappear and are no longer tracked in location database table. Some entries remain, but it never populates to the normal amount unless only one server is using the database. I couldn't figure out the proper picture of what happens based on the above ... some questions: - only one server (the active) writes to database, with its own id (other servers have different ids), after a while some records written by the active server disappear? - is db_mode=3? If not, what value. - is there any replication at database layer? Cheers, Daniel Anyone run into this before? Happened with 5.0 and is happening with 5.1. -dan ___ 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 -- Daniel-Constantin Mierla www.twitter.com/miconda<http://www.twitter.com/miconda> -- www.linkedin.com/in/miconda<http://www.linkedin.com/in/miconda> Kamailio Advanced Training - www.asipto.com<http://www.asipto.com> Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com<http://www.kamailioworld.com> ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] Multiple Kamailio Servers + Location Table
Yes they are all different. -dan On Dec 20, 2017, at 4:32 PM, Victor Seva <linuxman...@torreviejawireless.org<mailto:linuxman...@torreviejawireless.org>> wrote: 2017-12-20 17:39 GMT+01:00 Daniel W. Graham <d...@cmsinter.net<mailto:d...@cmsinter.net>>: Only the active server has active IP, clients cannot connect to the ip of standbys. is server_id value set and different on all servers config? ___ 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
Re: [SR-Users] Multiple Kamailio Servers + Location Table
Only the active server has active IP, clients cannot connect to the ip of standbys. -dan -Original Message- From: sr-users [mailto:sr-users-boun...@lists.kamailio.org] On Behalf Of Sergey Okhapkin Sent: Wednesday, December 20, 2017 10:41 AM To: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org> Subject: Re: [SR-Users] Multiple Kamailio Servers + Location Table Is it possible that clients whose records disappear roam between servers? I.e. register with the active server, but then registers with a standby server while the active one is still up and running? On Wednesday, December 20, 2017 10:34:42 AM EST Daniel W. Graham wrote: > Yes, to your first question, most records originally written by the > active server disappear. Only way to restore all records to the > location table is taking standby servers offline and restart Kamailio > on active server. If a restart is not performed records wont reappear > in table. db_mode is 2 Database is replication is active passive. > > Daniel W. Graham, CTO > CMSInter.net LLC > DIRECT (989) 400-4230 > > INTERNET | TELEPHONE | MANAGED IT > > From: Daniel-Constantin Mierla [mailto:mico...@gmail.com] > Sent: Wednesday, December 20, 2017 3:48 AM > To: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org>; > Daniel W. Graham <d...@cmsinter.net> Subject: Re: [SR-Users] Multiple > Kamailio Servers + Location Table > > > Hello, > > On 20.12.17 06:28, Daniel W. Graham wrote: > When multiple Kamailio servers are using the same database with > different server_id's (one active the rest standby in this test), > records disappear and are no longer tracked in location database table. > > Some entries remain, but it never populates to the normal amount > unless only one server is using the database. I couldn't figure out > the proper picture of what happens based on the above ... some questions: > > - only one server (the active) writes to database, with its own id > (other servers have different ids), after a while some records written > by the active server disappear? > > - is db_mode=3? If not, what value. > > - is there any replication at database layer? > > Cheers, > Daniel > > > > > Anyone run into this before? Happened with 5.0 and is happening with 5.1. > > -dan > > > > > ___ > > 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 > > > > -- > > Daniel-Constantin Mierla > > www.twitter.com/miconda<http://www.twitter.com/miconda> -- > www.linkedin.com/in/miconda<http://www.linkedin.com/in/miconda> > > Kamailio Advanced Training - www.asipto.com<http://www.asipto.com> > > Kamailio World Conference - May 14-16, 2018 - > www.kamailioworld.com<http://www.kamailioworld.com> ___ Kamailio (SER) - Users Mailing List 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
Re: [SR-Users] Multiple Kamailio Servers + Location Table
Yes, to your first question, most records originally written by the active server disappear. Only way to restore all records to the location table is taking standby servers offline and restart Kamailio on active server. If a restart is not performed records wont reappear in table. db_mode is 2 Database is replication is active passive. Daniel W. Graham, CTO CMSInter.net LLC DIRECT (989) 400-4230 INTERNET | TELEPHONE | MANAGED IT From: Daniel-Constantin Mierla [mailto:mico...@gmail.com] Sent: Wednesday, December 20, 2017 3:48 AM To: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org>; Daniel W. Graham <d...@cmsinter.net> Subject: Re: [SR-Users] Multiple Kamailio Servers + Location Table Hello, On 20.12.17 06:28, Daniel W. Graham wrote: When multiple Kamailio servers are using the same database with different server_id's (one active the rest standby in this test), records disappear and are no longer tracked in location database table. Some entries remain, but it never populates to the normal amount unless only one server is using the database. I couldn't figure out the proper picture of what happens based on the above ... some questions: - only one server (the active) writes to database, with its own id (other servers have different ids), after a while some records written by the active server disappear? - is db_mode=3? If not, what value. - is there any replication at database layer? Cheers, Daniel Anyone run into this before? Happened with 5.0 and is happening with 5.1. -dan ___ 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 -- Daniel-Constantin Mierla www.twitter.com/miconda<http://www.twitter.com/miconda> -- www.linkedin.com/in/miconda<http://www.linkedin.com/in/miconda> Kamailio Advanced Training - www.asipto.com<http://www.asipto.com> Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com<http://www.kamailioworld.com> ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] 5.0 to 5.1 - No module matching found
Issue on new image was a linker config issue, (missing /usr/local/lib/). I verified this existed on the previous image so my best guess is the original issue was related to selinux. -dan From: sr-users [mailto:sr-users-boun...@lists.kamailio.org] On Behalf Of Daniel W. Graham Sent: Saturday, December 16, 2017 2:42 AM To: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org>; mico...@gmail.com Subject: Re: [SR-Users] 5.0 to 5.1 - No module matching found Didn’t notice the issue with libmaxminddb.so.0 # ls -l /usr/local/lib/ lrwxrwxrwx 1 root root 21 Dec 15 23:00 libmaxminddb.so -> libmaxminddb.so.0.0.7 lrwxrwxrwx 1 root root 21 Dec 15 23:00 libmaxminddb.so.0 -> libmaxminddb.so.0.0.7 -rwxr-xr-x 1 root root 81472 Dec 15 23:00 libmaxminddb.so.0.0.7 I did get the libmaxminddb.so.0 error to go away while using my previous cfg file, I’ll dig in more later. -dan From: sr-users [mailto:sr-users-boun...@lists.kamailio.org] On Behalf Of Daniel W. Graham Sent: Saturday, December 16, 2017 2:04 AM To: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org>>; mico...@gmail.com<mailto:mico...@gmail.com> Subject: Re: [SR-Users] 5.0 to 5.1 - No module matching found After a clean system install (CentOS 7) - Using default 5.1 cfg file this time for testing with these added lines (in proper locations): loadmodule "geoip2.so" modparam("geoip2", "path", "/usr/local/share/GeoIP/GeoLite2-City.mmdb") if (geoip2_match("$si", "src")) { } ERROR: [core/sr_module.c:582]: load_module(): could not open module : libmaxminddb.so.0: cannot open shared object file: No such file or directory CRITICAL: [core/cfg.y:3447]: yyerror_at(): parse error in config file /usr/local/etc/kamailio/kamailio.cfg, line 241, column 12-22: failed to load module ERROR: [core/modparam.c:152]: set_mod_param_regex(): No module matching found CRITICAL: [core/cfg.y:3450]: yyerror_at(): parse error in config file /usr/local/etc/kamailio/kamailio.cfg, line 291, column 71: Can't set module parameter ERROR: [core/cfg.y:3310]: yyparse(): cfg. parser: failed to find command geoip2_match (params 2) CRITICAL: [core/cfg.y:3450]: yyerror_at(): parse error in config file /usr/local/etc/kamailio/kamailio.cfg, line 457, column 31: unknown command, missing loadmodule? CRITICAL: [core/cfg.y:3450]: yyerror_at(): parse error in config file /usr/local/etc/kamailio/kamailio.cfg, line 458, column 2: syntax error CRITICAL: [core/cfg.y:3450]: yyerror_at(): parse error in config file /usr/local/etc/kamailio/kamailio.cfg, line 458, column 2: INFO: [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized (Starts fine without the above config lines) # ls -l /usr/local/lib64/kamailio/modules/ | grep geo -rwxr-xr-x 1 root root 73800 Dec 16 01:44 geoip2.so ls -l /usr/local/share/GeoIP | grep Geo -rw-r--r-- 1 root root 63478091 Dec 15 23:08 GeoLite2-City.mmdb version: kamailio 5.1.0 (x86_64/linux) flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB poll method support: poll, epoll_lt, epoll_et, sigio_rt, select. id: unknown compiled on 23:13:35 Dec 15 2017 with gcc 4.8.5 # uname -r 3.10.0-693.el7.x86_64 Again, I have working fine on another host, that does have a different kernel version / other packages. Any ideas? -dan From: sr-users [mailto:sr-users-boun...@lists.kamailio.org] On Behalf Of Daniel W. Graham Sent: Friday, December 15, 2017 11:08 AM To: mico...@gmail.com<mailto:mico...@gmail.com>; Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org>> Subject: Re: [SR-Users] 5.0 to 5.1 - No module matching found I noticed that there were SE contexts applied to pretty much all folders, /usr/bin/lib (where my libmaxminddb lives) /usr/local/sbin and even /usr/local/src/. The security context applied was: unconfined_u:object_r:usr_t:s0 I haven’t figured out what caused this, as I have systems without this behavior. My guess is it is related to disabling selinux after the build was complete. Despite my efforts resetting SE linux and removing contexts from affected files the problem persists. I’ve removed all install and src files, built again and the same problem persisted. As far as the script errors, there are none. The cfg file is in active operation on other hosts. If I leave the IFDEF/ENDIF statements active and comment out only the statements related to geoip Kamailio starts fine. A system rebuild will fix
Re: [SR-Users] 5.0 to 5.1 - No module matching found
Didn’t notice the issue with libmaxminddb.so.0 # ls -l /usr/local/lib/ lrwxrwxrwx 1 root root 21 Dec 15 23:00 libmaxminddb.so -> libmaxminddb.so.0.0.7 lrwxrwxrwx 1 root root 21 Dec 15 23:00 libmaxminddb.so.0 -> libmaxminddb.so.0.0.7 -rwxr-xr-x 1 root root 81472 Dec 15 23:00 libmaxminddb.so.0.0.7 I did get the libmaxminddb.so.0 error to go away while using my previous cfg file, I’ll dig in more later. -dan From: sr-users [mailto:sr-users-boun...@lists.kamailio.org] On Behalf Of Daniel W. Graham Sent: Saturday, December 16, 2017 2:04 AM To: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org>; mico...@gmail.com Subject: Re: [SR-Users] 5.0 to 5.1 - No module matching found After a clean system install (CentOS 7) - Using default 5.1 cfg file this time for testing with these added lines (in proper locations): loadmodule "geoip2.so" modparam("geoip2", "path", "/usr/local/share/GeoIP/GeoLite2-City.mmdb") if (geoip2_match("$si", "src")) { } ERROR: [core/sr_module.c:582]: load_module(): could not open module : libmaxminddb.so.0: cannot open shared object file: No such file or directory CRITICAL: [core/cfg.y:3447]: yyerror_at(): parse error in config file /usr/local/etc/kamailio/kamailio.cfg, line 241, column 12-22: failed to load module ERROR: [core/modparam.c:152]: set_mod_param_regex(): No module matching found CRITICAL: [core/cfg.y:3450]: yyerror_at(): parse error in config file /usr/local/etc/kamailio/kamailio.cfg, line 291, column 71: Can't set module parameter ERROR: [core/cfg.y:3310]: yyparse(): cfg. parser: failed to find command geoip2_match (params 2) CRITICAL: [core/cfg.y:3450]: yyerror_at(): parse error in config file /usr/local/etc/kamailio/kamailio.cfg, line 457, column 31: unknown command, missing loadmodule? CRITICAL: [core/cfg.y:3450]: yyerror_at(): parse error in config file /usr/local/etc/kamailio/kamailio.cfg, line 458, column 2: syntax error CRITICAL: [core/cfg.y:3450]: yyerror_at(): parse error in config file /usr/local/etc/kamailio/kamailio.cfg, line 458, column 2: INFO: [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized (Starts fine without the above config lines) # ls -l /usr/local/lib64/kamailio/modules/ | grep geo -rwxr-xr-x 1 root root 73800 Dec 16 01:44 geoip2.so ls -l /usr/local/share/GeoIP | grep Geo -rw-r--r-- 1 root root 63478091 Dec 15 23:08 GeoLite2-City.mmdb version: kamailio 5.1.0 (x86_64/linux) flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB poll method support: poll, epoll_lt, epoll_et, sigio_rt, select. id: unknown compiled on 23:13:35 Dec 15 2017 with gcc 4.8.5 # uname -r 3.10.0-693.el7.x86_64 Again, I have working fine on another host, that does have a different kernel version / other packages. Any ideas? -dan From: sr-users [mailto:sr-users-boun...@lists.kamailio.org] On Behalf Of Daniel W. Graham Sent: Friday, December 15, 2017 11:08 AM To: mico...@gmail.com<mailto:mico...@gmail.com>; Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org>> Subject: Re: [SR-Users] 5.0 to 5.1 - No module matching found I noticed that there were SE contexts applied to pretty much all folders, /usr/bin/lib (where my libmaxminddb lives) /usr/local/sbin and even /usr/local/src/. The security context applied was: unconfined_u:object_r:usr_t:s0 I haven’t figured out what caused this, as I have systems without this behavior. My guess is it is related to disabling selinux after the build was complete. Despite my efforts resetting SE linux and removing contexts from affected files the problem persists. I’ve removed all install and src files, built again and the same problem persisted. As far as the script errors, there are none. The cfg file is in active operation on other hosts. If I leave the IFDEF/ENDIF statements active and comment out only the statements related to geoip Kamailio starts fine. A system rebuild will fix but I thought this behavior was odd and there could be a way to fix. -dan From: Daniel-Constantin Mierla [mailto:mico...@gmail.com] Sent: Friday, December 15, 2017 4:19 AM To: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org>>; Daniel W. Graham <d...@cmsinter.net<mailto:d...@cmsinter.net>> Subject: Re: [SR-Users] 5.0 to 5.1 - No module matching found Hello, On 15.12.17 05:12, Daniel W. Graham wrote: Its installed and was working prior to the 5.1 upgrade. I got the mod
Re: [SR-Users] 5.0 to 5.1 - No module matching found
After a clean system install (CentOS 7) - Using default 5.1 cfg file this time for testing with these added lines (in proper locations): loadmodule "geoip2.so" modparam("geoip2", "path", "/usr/local/share/GeoIP/GeoLite2-City.mmdb") if (geoip2_match("$si", "src")) { } ERROR: [core/sr_module.c:582]: load_module(): could not open module : libmaxminddb.so.0: cannot open shared object file: No such file or directory CRITICAL: [core/cfg.y:3447]: yyerror_at(): parse error in config file /usr/local/etc/kamailio/kamailio.cfg, line 241, column 12-22: failed to load module ERROR: [core/modparam.c:152]: set_mod_param_regex(): No module matching found CRITICAL: [core/cfg.y:3450]: yyerror_at(): parse error in config file /usr/local/etc/kamailio/kamailio.cfg, line 291, column 71: Can't set module parameter ERROR: [core/cfg.y:3310]: yyparse(): cfg. parser: failed to find command geoip2_match (params 2) CRITICAL: [core/cfg.y:3450]: yyerror_at(): parse error in config file /usr/local/etc/kamailio/kamailio.cfg, line 457, column 31: unknown command, missing loadmodule? CRITICAL: [core/cfg.y:3450]: yyerror_at(): parse error in config file /usr/local/etc/kamailio/kamailio.cfg, line 458, column 2: syntax error CRITICAL: [core/cfg.y:3450]: yyerror_at(): parse error in config file /usr/local/etc/kamailio/kamailio.cfg, line 458, column 2: INFO: [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized (Starts fine without the above config lines) # ls -l /usr/local/lib64/kamailio/modules/ | grep geo -rwxr-xr-x 1 root root 73800 Dec 16 01:44 geoip2.so ls -l /usr/local/share/GeoIP | grep Geo -rw-r--r-- 1 root root 63478091 Dec 15 23:08 GeoLite2-City.mmdb version: kamailio 5.1.0 (x86_64/linux) flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB poll method support: poll, epoll_lt, epoll_et, sigio_rt, select. id: unknown compiled on 23:13:35 Dec 15 2017 with gcc 4.8.5 # uname -r 3.10.0-693.el7.x86_64 Again, I have working fine on another host, that does have a different kernel version / other packages. Any ideas? -dan From: sr-users [mailto:sr-users-boun...@lists.kamailio.org] On Behalf Of Daniel W. Graham Sent: Friday, December 15, 2017 11:08 AM To: mico...@gmail.com; Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org> Subject: Re: [SR-Users] 5.0 to 5.1 - No module matching found I noticed that there were SE contexts applied to pretty much all folders, /usr/bin/lib (where my libmaxminddb lives) /usr/local/sbin and even /usr/local/src/. The security context applied was: unconfined_u:object_r:usr_t:s0 I haven’t figured out what caused this, as I have systems without this behavior. My guess is it is related to disabling selinux after the build was complete. Despite my efforts resetting SE linux and removing contexts from affected files the problem persists. I’ve removed all install and src files, built again and the same problem persisted. As far as the script errors, there are none. The cfg file is in active operation on other hosts. If I leave the IFDEF/ENDIF statements active and comment out only the statements related to geoip Kamailio starts fine. A system rebuild will fix but I thought this behavior was odd and there could be a way to fix. -dan From: Daniel-Constantin Mierla [mailto:mico...@gmail.com] Sent: Friday, December 15, 2017 4:19 AM To: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org>>; Daniel W. Graham <d...@cmsinter.net<mailto:d...@cmsinter.net>> Subject: Re: [SR-Users] 5.0 to 5.1 - No module matching found Hello, On 15.12.17 05:12, Daniel W. Graham wrote: Its installed and was working prior to the 5.1 upgrade. I got the module error fixed. For whatever reason there was an SE context applied to the libmaxminddb.* files that was killing permissions. I was able to reset them. SE linux was disabled prior and is currently. interesting and good to know that SE linux behaves like this ... could you find a reason for this restriction by SE linux, like the file being in a specific folder? I still get - ERROR: [core/pvapi.c:903]: pv_parse_spec2(): error searching pvar "gip2" ERROR: [core/pvapi.c:1107]: pv_parse_spec2(): wrong char [s/115] in [$gip2(src=>cc)] at [6 (5)] loading modules under config path: /usr/local/lib64/kamailio/modules/ CRITICAL: [core/cfg.y:3447]: yyerror_at(): parse error in config file /usr/local/etc/kamailio/kamailio.cfg, line 560, column 8-21: Can't get from cache: $gip2(src=
Re: [SR-Users] 5.0 to 5.1 - No module matching found
I noticed that there were SE contexts applied to pretty much all folders, /usr/bin/lib (where my libmaxminddb lives) /usr/local/sbin and even /usr/local/src/. The security context applied was: unconfined_u:object_r:usr_t:s0 I haven’t figured out what caused this, as I have systems without this behavior. My guess is it is related to disabling selinux after the build was complete. Despite my efforts resetting SE linux and removing contexts from affected files the problem persists. I’ve removed all install and src files, built again and the same problem persisted. As far as the script errors, there are none. The cfg file is in active operation on other hosts. If I leave the IFDEF/ENDIF statements active and comment out only the statements related to geoip Kamailio starts fine. A system rebuild will fix but I thought this behavior was odd and there could be a way to fix. -dan From: Daniel-Constantin Mierla [mailto:mico...@gmail.com] Sent: Friday, December 15, 2017 4:19 AM To: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org>; Daniel W. Graham <d...@cmsinter.net> Subject: Re: [SR-Users] 5.0 to 5.1 - No module matching found Hello, On 15.12.17 05:12, Daniel W. Graham wrote: Its installed and was working prior to the 5.1 upgrade. I got the module error fixed. For whatever reason there was an SE context applied to the libmaxminddb.* files that was killing permissions. I was able to reset them. SE linux was disabled prior and is currently. interesting and good to know that SE linux behaves like this ... could you find a reason for this restriction by SE linux, like the file being in a specific folder? I still get - ERROR: [core/pvapi.c:903]: pv_parse_spec2(): error searching pvar "gip2" ERROR: [core/pvapi.c:1107]: pv_parse_spec2(): wrong char [s/115] in [$gip2(src=>cc)] at [6 (5)] loading modules under config path: /usr/local/lib64/kamailio/modules/ CRITICAL: [core/cfg.y:3447]: yyerror_at(): parse error in config file /usr/local/etc/kamailio/kamailio.cfg, line 560, column 8-21: Can't get from cache: $gip2(src=>cc) WARNING: [core/ppcfg.c:221]: pp_ifdef_level_check(): different number of preprocessor directives: N(#!IF[N]DEF) - N(#!ENDIF) = 1 Can you check the blocks IFDEF/ENDIF to be sure you have matching pairs? Cheers, Daniel Daniel W. Graham, CTO CMSInter.net LLC DIRECT (989) 400-4230 INTERNET | TELEPHONE | MANAGED IT From: sr-users [mailto:sr-users-boun...@lists.kamailio.org] On Behalf Of Joel Serrano Sent: Thursday, December 14, 2017 11:01 PM To: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org><mailto:sr-users@lists.kamailio.org> Subject: Re: [SR-Users] 5.0 to 5.1 - No module matching found You need to have libmaxminddb library installed. What OS are you using? If deb based: $ dpkg -l | grep maxmind If rpm based: $ rpm -qa | grep maxmind Cheers, Joel. On Thu, Dec 14, 2017 at 12:24 Daniel W. Graham <d...@cmsinter.net<mailto:d...@cmsinter.net>> wrote: Upgraded two installs to 5.1. * Same cfg file from 5.0 * No issues with install 1 Install 2 results in: ERROR: [core/modparam.c:152]: set_mod_param_regex(): No module matching found CRITICAL: [core/cfg.y:3450]: yyerror_at(): parse error in config file /usr/local/etc/kamailio/kamailio.cfg, line 343, column 71: Can't set module parameter ERROR: [core/sr_module.c:582]: load_module(): could not open module : libmaxminddb.so.0: cannot open shared object file: No such file or directory CRITICAL: [core/cfg.y:3447]: yyerror_at(): parse error in config file /usr/local/etc/kamailio/kamailio.cfg, line 122, column 12-22: failed to load module WARNING: [core/ppcfg.c:221]: pp_ifdef_level_check(): different number of preprocessor directives: N(#!IF[N]DEF) - N(#!ENDIF) = 1 ls -l /usr/local/lib64/kamailio/modules/ | grep geo -rwxr-xr-x 1 root root 73800 Dec 14 12:44 geoip2.so If I copy cfg file from install 2 to install 1, no issues with install 1. Any idea what could be going wrong? - dan ___ 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<mailto:sr-users@lists.kamailio.org> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users -- Daniel-Constantin Mierla www.twitter.com/miconda<http://www.twitter.com/miconda> -- www.linkedin.com/in/miconda<http://www.linkedin.com/in/miconda> Kamailio Advanced Training - www.asipto.com<http://www.asipto.com> Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com<http://www.kamailioworld.com> ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
[SR-Users] 5.0 to 5.1 - No module matching found
Upgraded two installs to 5.1. * Same cfg file from 5.0 * No issues with install 1 Install 2 results in: ERROR: [core/modparam.c:152]: set_mod_param_regex(): No module matching found CRITICAL: [core/cfg.y:3450]: yyerror_at(): parse error in config file /usr/local/etc/kamailio/kamailio.cfg, line 343, column 71: Can't set module parameter ERROR: [core/sr_module.c:582]: load_module(): could not open module : libmaxminddb.so.0: cannot open shared object file: No such file or directory CRITICAL: [core/cfg.y:3447]: yyerror_at(): parse error in config file /usr/local/etc/kamailio/kamailio.cfg, line 122, column 12-22: failed to load module WARNING: [core/ppcfg.c:221]: pp_ifdef_level_check(): different number of preprocessor directives: N(#!IF[N]DEF) - N(#!ENDIF) = 1 ls -l /usr/local/lib64/kamailio/modules/ | grep geo -rwxr-xr-x 1 root root 73800 Dec 14 12:44 geoip2.so If I copy cfg file from install 2 to install 1, no issues with install 1. Any idea what could be going wrong? - dan ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] Exec - call python script with arguments
This ended up being a log file permissions issue. However this worked with root permission only - exec_msg("echo ‘TEST’ > /usr/local/etc/kamailio/test.txt"); This syntax was correct - exec_msg("/usr/local/etc/kamailio/script.py ‘arg1’ ‘arg2’ ‘arg3’"); Thanks for the input. -dan From: sr-users [mailto:sr-users-boun...@lists.kamailio.org] On Behalf Of otron2...@gmail.com Sent: Monday, December 11, 2017 10:08 AM To: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org> Subject: Re: [SR-Users] Exec - call python script with arguments Probably not the problem though it could be. ...try: "python /usr/local/etc/kamailio/script.py<http://script.py/> arg1 arg2 arg3" instead--kamailio doesn't have your shell env and might not pass the script to python even if the script has the #! declaration. Also, if you pasted the exact command I think there's no space between .py and arg1 (or that could just be my phone). Hth. Sent from Samsung Mobile -------- Original message From: "Daniel W. Graham" <d...@cmsinter.net<mailto:d...@cmsinter.net>> Date: 12/10/2017 1:04 PM (GMT-06:00) To: "Kamailio (SER) - Users Mailing List" <sr-users@lists.kamailio.org<mailto:sr-users@lists.kamailio.org>> Subject: [SR-Users] Exec - call python script with arguments Trying to call a python script using exec_msg and haven’t had any luck. The following works: exec_msg("echo ‘TEST’ > /usr/local/etc/kamailio/test.txt"); The following works from shell: /usr/local/etc/kamailio/script.py arg1 arg2 arg3 The following does not work from kamailio: exec_msg("/usr/local/etc/kamailio/script.py arg1 arg2 arg3"); (The arguments are just strings for test purposes) Kamailio is running as kamailio user Permissions: 755 script.py Any idea what could be going wrong? -dan ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] Exec - call python script with arguments
I don’t get any errors that’s part of my issue. No errors and the script doesn’t appear to run (script writes to a log file, and no output seen). From: sr-users [mailto:sr-users-boun...@lists.kamailio.org] On Behalf Of Joel Serrano Sent: Sunday, December 10, 2017 3:55 PM To: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org> Subject: Re: [SR-Users] Exec - call python script with arguments What error do you see in the logs? On Sun, Dec 10, 2017 at 11:04 Daniel W. Graham <d...@cmsinter.net<mailto:d...@cmsinter.net>> wrote: Trying to call a python script using exec_msg and haven’t had any luck. The following works: exec_msg("echo ‘TEST’ > /usr/local/etc/kamailio/test.txt"); The following works from shell: /usr/local/etc/kamailio/script.py arg1 arg2 arg3 The following does not work from kamailio: exec_msg("/usr/local/etc/kamailio/script.py arg1 arg2 arg3"); (The arguments are just strings for test purposes) Kamailio is running as kamailio user Permissions: 755 script.py Any idea what could be going wrong? -dan ___ 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
[SR-Users] Exec - call python script with arguments
Trying to call a python script using exec_msg and haven't had any luck. The following works: exec_msg("echo 'TEST' > /usr/local/etc/kamailio/test.txt"); The following works from shell: /usr/local/etc/kamailio/script.py arg1 arg2 arg3 The following does not work from kamailio: exec_msg("/usr/local/etc/kamailio/script.py arg1 arg2 arg3"); (The arguments are just strings for test purposes) Kamailio is running as kamailio user Permissions: 755 script.py Any idea what could be going wrong? -dan ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] TOPOS - record timeouts
Thanks for the clarification! -dan From: Daniel-Constantin Mierla [mailto:mico...@gmail.com] Sent: Saturday, December 9, 2017 3:13 AM To: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org>; Daniel W. Graham <d...@cmsinter.net>; Kamailio (SER) - Users Mailing List <sr-us...@lists.sip-router.org> Subject: Re: [SR-Users] TOPOS - record timeouts Hello, On 09.12.17 03:00, Daniel W. Graham wrote: Looking for clarification on how the timers work, such as 'dialog_expire'. Are these hard-set timeouts meaning if a dialog lasts longer than 'dialog_expire' there could be risk of the dialog not completing successfully? If yes, any plans to integrate with DIALOG module to keep topos records up-to-date per active dialogs? the dialog_expire is used only when the BYE is not received during that duration, if a call ends before, the associated records are deleted. Not receiving a BYE is very rare and if dialog module is used on some node in the network (or a media server/gateway with session expires enabled), it will send the BYE. So you can set for topos larger value for dialog_expires, this is like a safety option for topos alone. Personally I do not plan any tighter integration with dialog module, if one adds something and makes it configurable via mod params, it will be considered for merging if all is ok with the code. Cheers, Daniel -- Daniel-Constantin Mierla www.twitter.com/miconda<http://www.twitter.com/miconda> -- www.linkedin.com/in/miconda<http://www.linkedin.com/in/miconda> Kamailio Advanced Training - www.asipto.com<http://www.asipto.com> Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com<http://www.kamailioworld.com> ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
[SR-Users] TOPOS - record timeouts
Looking for clarification on how the timers work, such as 'dialog_expire'. Are these hard-set timeouts meaning if a dialog lasts longer than 'dialog_expire' there could be risk of the dialog not completing successfully? If yes, any plans to integrate with DIALOG module to keep topos records up-to-date per active dialogs? Thanks, -dan ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users