Saint Michael
2021-Jan-24 18:07 UTC
[asterisk-users] asterisk-users Digest, Vol 197, Issue 17
Re: Get a SHAKEN Identity Token (Alexander Perkins) Saint Michael <venefax at gmail.com> 1:06 PM (0 minutes ago) to Asterisk Please look at this https://issues.asterisk.org/jira/browse/ASTERISK-28924 I have a solution that works for any version of Asterisk, if interested contact me at venefax at the Google mail service. On Sun, Jan 24, 2021 at 1:00 PM <asterisk-users-request at lists.digium.com> wrote:> Send asterisk-users mailing list submissions to > asterisk-users at lists.digium.com > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.digium.com/mailman/listinfo/asterisk-users > or, via email, send a message with subject or body 'help' to > asterisk-users-request at lists.digium.com > > You can reach the person managing the list at > asterisk-users-owner at lists.digium.com > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of asterisk-users digest..." > > > Today's Topics: > > 1. Re: Get a SHAKEN Identity Token (Alexander Perkins) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Sat, 23 Jan 2021 20:30:42 -0500 > From: Alexander Perkins <alexanderhenryperkins at gmail.com> > To: Markus <universe at truemetal.org> > Cc: asterisk-users at lists.digium.com > Subject: Re: [asterisk-users] Get a SHAKEN Identity Token > Message-ID: > < > CALLkTp0j5HFj1Ou+RHRxAeVAb_WvxqzCOON9s-kFpVzWt6M2Xg at mail.gmail.com> > Content-Type: text/plain; charset="utf-8" > > Hi Markus. Thanks a bunch! I will try that out! > > On Fri, Jan 22, 2021 at 8:06 AM Markus <universe at truemetal.org> wrote: > > > Am 07.01.2021 um 23:49 schrieb Alexander Perkins: > > > Hi All. We have old Asterisk servers, 1,89, (we cannot upgrade because > > > of several reasons) and we are now implementing SHAKEN via our > > > provider. We place a SIP call to our provider and they return a 302 > > > (information below). I am trying to get the X-Identity information > > > below, but I do not seem to be able to do so. Can somebody help me > with > > > this? Any suggestions on how to get it? > > > > I use SIP_HEADER to extract information from inbound SIP packets and > > SIPAddHeader to copy that info to the outgoing call leg. Maybe this > > helps you? > > > > Example: > > > > exten => _+X.,1,NoOp(${CALLERID(num)}) > > exten => _+X.,n,Set(PAI=${SIP_HEADER(P-Asserted-Identity)}) > > exten => _+X.,n,Set(PAI=${CUT(PAI,:,2)}) > > exten => _+X.,n,Set(PAI=${CUT(PAI,@,1)}) > > exten => _+X.,n,GotoIf($["${CALLERID(num)}" = "anonymous"]?anonymous:cli) > > exten => _+X.,n(anonymous),SIPAddHeader(P-Asserted-Identity: "${PAI}" > > <sip:${PAI}@1.2.3.4>) > > exten => _+X.,n,SIPAddHeader(Privacy: user\;id) > > exten => _+X.,n,Goto(dial) > > exten => _+X.,n(cli),SIPAddHeader(P-Asserted-Identity: "${PAI}" > > <sip:${PAI}@1.2.3.4>) > > exten => _+X.,n,SIPAddHeader(Privacy: id) > > exten => _+X.,n,Goto(dial) > > > > > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://lists.digium.com/pipermail/asterisk-users/attachments/20210123/a26b80f1/attachment-0001.html > > > > ------------------------------ > > Subject: Digest Footer > > _______________________________________________ > --Bandwidth and Colocation Provided by http://www.api-digital.com-- > > Check out the new Asterisk community forum at: > https://community.asterisk.org/ > > New to Asterisk? Start here: > https://wiki.asterisk.org/wiki/display/AST/Getting+Started > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > > ------------------------------ > > End of asterisk-users Digest, Vol 197, Issue 17 > *********************************************** >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20210124/1c3cdfb6/attachment.html>