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
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 --
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
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
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
'��&�&�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
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
, 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]
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
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
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
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) -
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
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
>
>
>
>
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
>
> 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
, 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
| 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
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_
nothing in $mb
>>>
>>>
>>>
>>> Daniel W. Graham, CTO
>>>
>>> CMSInter.net LLC
>>>
>>> DIRECT (989) 400-4230
>>>
>>>
>>>
>>> INTERNET | TELEPHONE | MANAGED IT
>>>
>>>
>>&
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
.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
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
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
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
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
) - 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
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.
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,
&
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
30 matches
Mail list logo