<div dir="ltr"><div>In which route are you trying to use <span style="font-family:monospace">if (is_present_hf("Identity"))</span>?  Since the 302 is both a reply and a "failure", I suggest seeing if it appears in either the armed onreply_route or failure_route.</div><div><br></div><div>I think From is available because it was present in the original request route.<br></div><div><br></div><div><br></div><div>- Jeff<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 1, 2021 at 5:39 AM David Villasmil <<a href="mailto:david.villasmil.work@gmail.com">david.villasmil.work@gmail.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"><div dir="auto">Anyone has any idea about this? Appreciate your help.</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 31 May 2021 at 21:11, David Villasmil <<a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.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"><div dir="ltr">So weird,<div>I can get the From header, but not "Identity"...</div></div><div dir="ltr"><div><br clear="all"><div><div dir="ltr"><div dir="ltr"><div>Regards,</div><div><br></div>David Villasmil<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div><div>phone: +34669448337</div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, May 31, 2021 at 8:22 PM David Villasmil <<a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.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"><div dir="ltr">This is really weird,<div><br></div><div>if (is_present_hf("Identity"))<br></div><div><br></div><div>says it is not present, but it is!</div><div><br clear="all"><div><div dir="ltr"><div dir="ltr"><div>Regards,</div><div><br></div>David Villasmil<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div><div>phone: +34669448337</div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, May 31, 2021 at 7:47 PM David Villasmil <<a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.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"><div dir="ltr"><div>Hello Guys,</div><div><br></div><div>I'm getting a header on a 302 which i'm trying to get, but for some reason I can't.</div><div><br></div><div>This is an example 302:</div><div><br></div><div><font size="1" face="monospace">2021/05/31 18:42:36.499157 <a href="http://10.231.32.237:5060" target="_blank">10.231.32.237:5060</a> -> <a href="http://10.231.57.11:6075" target="_blank">10.231.57.11:6075</a><br>SIP/2.0 302 Redirect<br>Via: SIP/2.0/UDP <a href="http://1.2.3.4" target="_blank">1.2.3.4</a>:</font><font size="1" face="monospace">6075;branch=z9hG4bKd8e8.50036ee6.0;received=10.231.57.11<br>Via: SIP/2.0/UDP 10.231.33.135;branch=z9hG4bKd8e8.fe2738f41d26b2b68328691c326a077a.0<br>v:SIP/2.0/UDP 10.231.49.211:6060;received=10.231.49.211;rport=6060;branch=z9hG4bK68SgceeareaUa<br>f:"+18883333333"<<a href="mailto:sip%3A%2B18883333333@10.231.49.211" target="_blank">sip:+18883333333@10.231.49.211</a>>;tag=ZBQ713X9pgD5S<br>t:<<a href="mailto:sip%3A19992222222@domain.com" target="_blank">sip:19992222222@domain.com</a>>;tag=9dd61ff61e802d8e2bef5f14621ef3c2.50cf6b6c<br>i:cf649a38-3ce2-123a-eaad-122eaa5d9655<br>CSeq:36689486 INVITE<br>Identity: eyJhbGciOiJFUzI1NiIsInBwdCI6InNoYWtlbiIsInR5cCI6InBhc3Nwb3J0IiwieDV1IjoiaHR0cHM6Ly9vcHMtc3RhdGljLnMzLmFtYXpvbmF3cy5jb20vc3Rpci1zaGFrZW4vZWMyNTYtcHVibGljLnBlbSJ9.eyJhdHRlc3QiO<br>BIiwiZGVzdCI6eyJ0biI6WyIxNzg2NDEwNzgzNyJdfSwiaWF0IjoxNjIyNDg2NTU2LCJvcmlnIjp7InRuIjoiKzEzMTU5ODUyNTk0In0sIm9yaWdpZCI6IjhlZGE4M2Q1LWY1MjEtNDQzZC1iNDI0LWIzNDQ3MDc4ZjYxZCJ9.cjIz9VwlS9_6qA<br>6mmDgottk41BLpQcA40HdvV_6jAPqQ1EIL3_jLWl25oHeVEWOzTMhcERp4Jn-JZ4vP_n3w;info=<<a href="https://somedomain.com/stir-shaken/ec256-public.pem" target="_blank">https://somedomain.com/stir-shaken/ec256-public.pem</a>>;alg=ES256;ppt=shaken<br>Server: kamailio (5.5.0 (x86_64/linux))<br>Content-Length: 0</font><br></div><div><br></div>I'm trying to get the "Identity" header with:<div><br></div><div><font face="monospace">$avp(identity_header) = $(hdr(Identity));</font><br></div><div><br></div><div>But It's coming up <null></div><div><br></div><div>Any ideas of what I'm doing wrong?</div><div><br clear="all"><div><div dir="ltr"><div dir="ltr"><div>Regards,</div><div><br></div>David Villasmil<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div><div>phone: +34669448337</div></div></div></div></div></div>
</blockquote></div>
</blockquote></div>
</blockquote></div></div>-- <br><div dir="ltr"><div dir="ltr"><div>Regards,</div><div><br></div>David Villasmil<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div><div>phone: +34669448337</div></div></div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div>