[SR-Users] SECSIPID Identity Decode

2021-06-30 Thread Daniel W. Graham
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 pa

Re: [SR-Users] SECSIPID Identity Decode

2021-06-30 Thread Daniel-Constantin Mierla
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 --

Re: [SR-Users] SECSIPID Identity Decode

2021-06-30 Thread David Villasmil
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 phone: +34669448337 On Wed, Jun 30, 2021 at 8:48 PM Da

Re: [SR-Users] SECSIPID Identity Decode

2021-06-30 Thread Daniel W. Graham
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 I

Re: [SR-Users] SECSIPID Identity Decode

2021-06-30 Thread Daniel W. Graham
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" , "Kamai

Re: [SR-Users] SECSIPID Identity Decode

2021-06-30 Thread Daniel-Constantin Mierla
'��&�&�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: *Wednes

Re: [SR-Users] SECSIPID Identity Decode

2021-07-01 Thread Ben Kaufman
auf...@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, p

Re: [SR-Users] SECSIPID Identity Decode

2021-07-01 Thread Daniel W. Graham
, 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]

Re: [SR-Users] SECSIPID Identity Decode

2021-07-01 Thread Daniel W. Graham
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: $va

Re: [SR-Users] SECSIPID Identity Decode

2021-07-01 Thread Ben Kaufman
4 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 K

Re: [SR-Users] SECSIPID Identity Decode

2021-07-01 Thread Daniel W. Graham
f...@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

Re: [SR-Users] SECSIPID Identity Decode

2021-07-01 Thread Daniel W. Graham
uot; 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) -

Re: [SR-Users] SECSIPID Identity Decode

2021-07-01 Thread Daniel-Constantin Mierla
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

Re: [SR-Users] SECSIPID Identity Decode

2021-07-01 Thread Daniel-Constantin Mierla
t; > *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 > >   > >

Re: [SR-Users] SECSIPID Identity Decode

2021-07-01 Thread Daniel W. Graham
ling 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 cop

Re: [SR-Users] SECSIPID Identity Decode

2021-07-01 Thread Daniel-Constantin Mierla
> > 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.c

Re: [SR-Users] SECSIPID Identity Decode

2021-07-02 Thread Daniel W. Graham
, 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, Dani

Re: [SR-Users] SECSIPID Identity Decode

2021-07-02 Thread Daniel-Constantin Mierla
| 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...@gm

Re: [SR-Users] SECSIPID Identity Decode

2021-07-02 Thread Daniel W. Graham
lt;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_

Re: [SR-Users] SECSIPID Identity Decode

2021-07-02 Thread Daniel-Constantin Mierla
nothing in $mb >>> >>>   >>> >>> Daniel W. Graham, CTO >>> >>> CMSInter.net LLC >>> >>> DIRECT (989) 400-4230 >>> >>>   >>> >>> INTERNET | TELEPHONE | MANAGED IT >>> >>>   >>&

Re: [SR-Users] SECSIPID Identity Decode

2021-07-02 Thread Daniel W. Graham
ail.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

Re: [SR-Users] SECSIPID Identity Decode

2021-07-02 Thread Daniel-Constantin Mierla
.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

Re: [SR-Users] SECSIPID Identity Decode

2021-07-02 Thread Daniel W. Graham
o...@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] SECS

Re: [SR-Users] SECSIPID Identity Decode

2021-07-02 Thread Daniel W. Graham
ailing 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_ident

Re: [SR-Users] SECSIPID Identity Decode

2021-07-02 Thread Juha Heinanen
Syslog showed many mysql/accounting related error between the time the response arrived to proxy and when proxy crashed (example below). So perhaps accounting failure delayed processing of the reply. pp Don't know the reason for the myslq problems. -- Juha Jul 2 06:06:51 rox2 /usr/bin/sip-prox

Re: [SR-Users] SECSIPID Identity Decode

2021-07-03 Thread Daniel W. Graham
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 reci

Re: [SR-Users] SECSIPID Identity Decode

2021-07-05 Thread Daniel-Constantin Mierla
) - 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

Re: [SR-Users] SECSIPID Identity Decode

2021-07-06 Thread Ben Kaufman
upport: 855.639.6300 From: sr-users On Behalf Of Daniel-Constantin Mierla Sent: Monday, July 5, 2021 2:44 AM To: Daniel W. Graham ; Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] SECSIPID Identity Decode Hello, On 02.07.21 22:40, Daniel W. Graham wrote: Found it. record_route bit me.

Re: [SR-Users] SECSIPID Identity Decode

2021-07-06 Thread Daniel-Constantin Mierla
0 > > >   > > *From:* sr-users *On Behalf Of > *Daniel-Constantin Mierla > *Sent:* Monday, July 5, 2021 2:44 AM > *To:* Daniel W. Graham ; Kamailio (SER) - Users > Mailing List > *Subject:* Re: [SR-Users] SECSIPID Identity Decode > >   > > Hello, &

Re: [SR-Users] SECSIPID Identity Decode ( crash when sending reply)

2021-07-05 Thread Daniel-Constantin Mierla
I assume this was mistakenly replied in the wrong thread, instead of the message with subject: [SR-Users] crash when sending reply. With the async insert for acc module, the reply should have been released quickly, not waiting in the SIP worker process for insert to happen. Could you see the respo