<div dir="ltr"><div class="gmail_default" style="font-size:small"><div class="gmail-gE gmail-iv gmail-gt" style="padding:20px 0px 0px;font-size:0.875rem;font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif"><span style="font-family:Arial,Helvetica,sans-serif;font-size:small">Re: Get a SHAKEN Identity Token (Alexander Perkins)</span> <br style="font-family:Arial,Helvetica,sans-serif;font-size:small"><span style="font-family:Arial,Helvetica,sans-serif;font-size:small"> </span> <br class="gmail-Apple-interchange-newline"><table cellpadding="0" class="gmail-cf gmail-gJ" style="border-collapse:collapse;margin-top:0px;width:auto;font-size:0.875rem;letter-spacing:0.2px;display:block"><tbody style="display:block"><tr class="gmail-acZ" style="height:auto;display:flex"><td class="gmail-gF gmail-gK" style="white-space:nowrap;padding:0px;vertical-align:top;width:1212.98px;line-height:20px;display:block;max-height:20px"><table cellpadding="0" class="gmail-cf gmail-ix" style="border-collapse:collapse;table-layout:fixed;width:1212.5px"><tbody><tr><td class="gmail-c2" style="display:flex"><h3 class="gmail-iw" style="overflow:hidden;font-size:0.75rem;font-weight:inherit;margin:inherit;text-overflow:ellipsis;letter-spacing:0.3px;color:rgb(95,99,104);line-height:20px"><span class="gmail-qu" tabindex="-1"><span name="Saint Michael" class="gmail-gD" style="color:rgb(32,33,36);font-size:0.875rem;font-weight:bold;display:inline;vertical-align:top;letter-spacing:0.2px;line-height:20px">Saint Michael</span> <span class="gmail-go" style="vertical-align:top;color:rgb(85,85,85)"><span><</span><a href="mailto:venefax@gmail.com">venefax@gmail.com</a><span>></span></span></span></h3></td></tr></tbody></table></td><td class="gmail-gH gmail-bAk" style="text-align:right;white-space:nowrap;vertical-align:top;display:block;max-height:20px"><div class="gmail-gK" style="padding:0px;display:flex"><span id="gmail-:2ja" class="gmail-g3" title="Jan 24, 2021, 1:06 PM" alt="Jan 24, 2021, 1:06 PM" tabindex="-1" style="vertical-align:top;margin:0px;font-size:0.75rem;letter-spacing:0.3px;color:rgb(95,99,104);display:block;line-height:20px">1:06 PM (0 minutes ago)</span><div class="gmail-zd gmail-bi4" tabindex="0" style="display:inline-block;height:20px;margin-left:20px;outline:0px"><span class="gmail-T-KT" style="display:inline-flex;height:20px;text-align:center;width:20px;padding:0px;margin:0px;border:none;outline:none"></span></div></div></td><td class="gmail-gH" style="text-align:right;white-space:nowrap;vertical-align:top;display:flex"></td><td class="gmail-gH gmail-acX gmail-bAm" rowspan="2" style="text-align:right;white-space:nowrap;vertical-align:top;display:block;max-height:20px"><div class="gmail-T-I gmail-J-J5-Ji gmail-T-I-Js-IF gmail-aaq gmail-T-I-ax7 gmail-L3" tabindex="0" style="display:inline-flex;border-radius:2px 0px 0px 2px;font-size:0.875rem;text-align:center;margin:0px 0px 0px 20px;height:20px;line-height:18px;min-width:0px;outline:none;padding:0px;background:transparent;color:rgb(68,68,68);border:none"><img class="gmail-hB gmail-T-I-J3" src="https://mail.google.com/mail/u/0/images/cleardot.gif" alt="" style="background: url("https://www.gstatic.com/images/icons/material/system/2x/reply_black_20dp.png") 50% 50% / 20px no-repeat; height: 20px; margin: 0px; vertical-align: middle; width: 20px; opacity: 0.54; display: inline-block; padding: 0px; transition: opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1) 0s;"></div><div id="gmail-:2jh" class="gmail-T-I gmail-J-J5-Ji gmail-T-I-Js-Gs gmail-aap gmail-T-I-awG gmail-T-I-ax7 gmail-L3" tabindex="0" style="display:inline-flex;border-radius:0px 2px 2px 0px;font-size:0.875rem;text-align:center;margin:0px 0px 0px 20px;height:20px;line-height:18px;min-width:0px;outline:none;padding:0px;background:transparent;color:rgb(68,68,68);border:none"><img class="gmail-hA gmail-T-I-J3" src="https://mail.google.com/mail/u/0/images/cleardot.gif" alt="" style="background: url("https://www.gstatic.com/images/icons/material/system/2x/more_vert_black_20dp.png") 50% 50% / 20px no-repeat; height: 20px; width: 20px; margin: 0px; vertical-align: middle; opacity: 0.54; display: inline-block; padding: 0px; transition: opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1) 0s;"></div></td></tr><tr class="gmail-acZ gmail-xD" style="height:auto;display:flex"><td colspan="3"><table cellpadding="0" class="gmail-cf gmail-adz" style="border-collapse:collapse;table-layout:fixed;white-space:nowrap;width:1504px"><tbody><tr><td class="gmail-ady" style="overflow:visible;text-overflow:ellipsis;display:flex;line-height:20px"><div class="gmail-iw gmail-ajw" style="overflow:hidden;max-width:92%;display:inline-block"><span class="gmail-hb" style="vertical-align:top;color:rgb(95,99,104);font-size:0.75rem;letter-spacing:0.3px;line-height:20px">to <span dir="ltr" name="Asterisk" class="gmail-g2" style="vertical-align:top">Asterisk</span></span></div><div id="gmail-:2ji" class="gmail-ajy" tabindex="0" style="display:inline-flex;margin-left:4px;vertical-align:top;border:none;outline:none"><img class="gmail-ajz" src="https://mail.google.com/mail/u/0/images/cleardot.gif" alt="" style="background: url("https://www.gstatic.com/images/icons/material/system/2x/arrow_drop_down_black_20dp.png") 50% 50% / 20px no-repeat; cursor: pointer; padding: 0px; vertical-align: baseline; height: 20px; width: 20px; border: none; margin: 0px 0px 0px auto; right: 0px; top: 0px; display: flex; opacity: 0.54;"></div></td></tr></tbody></table></td></tr></tbody></table></div><div id="gmail-:2k9" style="font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;font-size:medium"><div class="gmail-qQVYZb"></div><div class="gmail-utdU2e"></div><div class="gmail-lQs8Hd"></div><div class="gmail-btm"></div></div><div class="gmail-" style="font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;font-size:medium"><div class="gmail-aHl" style=""></div><div id="gmail-:2jj" tabindex="-1"></div><div id="gmail-:2it" class="gmail-ii gmail-gt" style="font-size:0.875rem;direction:ltr;margin:8px 0px 0px;padding:0px"><div id="gmail-:2iu" class="gmail-a3s gmail-aiL" style="overflow:hidden;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:small;line-height:1.5;font-family:Arial,Helvetica,sans-serif"><div dir="ltr"><div dir="ltr"><div class="gmail_default">Please look at this</div><div class="gmail_default"><a href="https://issues.asterisk.org/jira/browse/ASTERISK-28924" target="_blank">https://issues.asterisk.org/jira/browse/ASTERISK-28924</a><br></div></div><div class="gmail_default">I have a solution that works for any version of Asterisk, if interested contact me at venefax at the Google mail service.</div></div></div></div></div><br class="gmail-Apple-interchange-newline"></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jan 24, 2021 at 1:00 PM <<a href="mailto:asterisk-users-request@lists.digium.com">asterisk-users-request@lists.digium.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Send asterisk-users mailing list submissions to<br>
<a href="mailto:asterisk-users@lists.digium.com" target="_blank">asterisk-users@lists.digium.com</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" rel="noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:asterisk-users-request@lists.digium.com" target="_blank">asterisk-users-request@lists.digium.com</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:asterisk-users-owner@lists.digium.com" target="_blank">asterisk-users-owner@lists.digium.com</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of asterisk-users digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Re: Get a SHAKEN Identity Token (Alexander Perkins)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Sat, 23 Jan 2021 20:30:42 -0500<br>
From: Alexander Perkins <<a href="mailto:alexanderhenryperkins@gmail.com" target="_blank">alexanderhenryperkins@gmail.com</a>><br>
To: Markus <<a href="mailto:universe@truemetal.org" target="_blank">universe@truemetal.org</a>><br>
Cc: <a href="mailto:asterisk-users@lists.digium.com" target="_blank">asterisk-users@lists.digium.com</a><br>
Subject: Re: [asterisk-users] Get a SHAKEN Identity Token<br>
Message-ID:<br>
<<a href="mailto:CALLkTp0j5HFj1Ou%2BRHRxAeVAb_WvxqzCOON9s-kFpVzWt6M2Xg@mail.gmail.com" target="_blank">CALLkTp0j5HFj1Ou+RHRxAeVAb_WvxqzCOON9s-kFpVzWt6M2Xg@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hi Markus. Thanks a bunch! I will try that out!<br>
<br>
On Fri, Jan 22, 2021 at 8:06 AM Markus <<a href="mailto:universe@truemetal.org" target="_blank">universe@truemetal.org</a>> wrote:<br>
<br>
> Am 07.01.2021 um 23:49 schrieb Alexander Perkins:<br>
> > Hi All. We have old Asterisk servers, 1,89, (we cannot upgrade because<br>
> > of several reasons) and we are now implementing SHAKEN via our<br>
> > provider. We place a SIP call to our provider and they return a 302<br>
> > (information below). I am trying to get the X-Identity information<br>
> > below, but I do not seem to be able to do so. Can somebody help me with<br>
> > this? Any suggestions on how to get it?<br>
><br>
> I use SIP_HEADER to extract information from inbound SIP packets and<br>
> SIPAddHeader to copy that info to the outgoing call leg. Maybe this<br>
> helps you?<br>
><br>
> Example:<br>
><br>
> exten => _+X.,1,NoOp(${CALLERID(num)})<br>
> exten => _+X.,n,Set(PAI=${SIP_HEADER(P-Asserted-Identity)})<br>
> exten => _+X.,n,Set(PAI=${CUT(PAI,:,2)})<br>
> exten => _+X.,n,Set(PAI=${CUT(PAI,@,1)})<br>
> exten => _+X.,n,GotoIf($["${CALLERID(num)}" = "anonymous"]?anonymous:cli)<br>
> exten => _+X.,n(anonymous),SIPAddHeader(P-Asserted-Identity: "${PAI}"<br>
> <sip:${<a href="mailto:PAI%7D@1.2.3.4" target="_blank">PAI}@1.2.3.4</a>>)<br>
> exten => _+X.,n,SIPAddHeader(Privacy: user\;id)<br>
> exten => _+X.,n,Goto(dial)<br>
> exten => _+X.,n(cli),SIPAddHeader(P-Asserted-Identity: "${PAI}"<br>
> <sip:${<a href="mailto:PAI%7D@1.2.3.4" target="_blank">PAI}@1.2.3.4</a>>)<br>
> exten => _+X.,n,SIPAddHeader(Privacy: id)<br>
> exten => _+X.,n,Goto(dial)<br>
><br>
><br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.digium.com/pipermail/asterisk-users/attachments/20210123/a26b80f1/attachment-0001.html" rel="noreferrer" target="_blank">http://lists.digium.com/pipermail/asterisk-users/attachments/20210123/a26b80f1/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
_______________________________________________<br>
--Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--" rel="noreferrer" target="_blank">http://www.api-digital.com--</a><br>
<br>
Check out the new Asterisk community forum at: <a href="https://community.asterisk.org/" rel="noreferrer" target="_blank">https://community.asterisk.org/</a><br>
<br>
New to Asterisk? Start here:<br>
<a href="https://wiki.asterisk.org/wiki/display/AST/Getting+Started" rel="noreferrer" target="_blank">https://wiki.asterisk.org/wiki/display/AST/Getting+Started</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" rel="noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
<br>
------------------------------<br>
<br>
End of asterisk-users Digest, Vol 197, Issue 17<br>
***********************************************<br>
</blockquote></div>