<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:#000099">Hi guys,</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:#000099"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:#000099"><br></div><div class="gmail_default" style=""><span style="color:rgb(0,0,153);font-family:arial,helvetica,sans-serif">I looked up <a href="https://tools.ietf.org/html/rfc3261" style="font-size:13.3333px;font-family:Arial,Helvetica,sans-serif;color:rgb(119,119,119)">RFC 3261</a>.</span><font color="#777777"><span style="font-size:13.3333px"> and the </span></font><span style="color:rgb(0,0,153);font-family:arial,helvetica,sans-serif">from-spec (page 229) says:</span></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:#000099"><div class="gmail_default"><pre class="gmail-newpage" style="font-size:13.3333px;margin-top:0px;margin-bottom:0px;break-before:page;color:rgb(0,0,0)">from-spec = ( name-addr / addr-spec )
*( SEMI from-param )</pre></div></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:#000099"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:#000099">I have the following FROM tag in a SIP header.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:#000099">"Mr Invite-R-Us <<a href="http://sip:12345688@192.168.136.134:5060">sip:12345688@192.168.136.134:5060</a>>;tag=784"</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:#000099"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:#000099">In my opensips.cfg, I got the following results using the <span style="color:rgb(0,0,0);font-size:13.3333px;font-family:Arial,Helvetica,sans-serif">compact forms, m and f</span></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:#000099"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:#000099">$var(CALLING2)=$hdr(m); --> printed out <sip:sipp@192.168.136.134:5060;transport=UDP><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:#000099">$var(CALLING3)=$hdr(f); --> printed out Mr Invite-R-Us <<a href="http://sip:12345688@192.168.136.134:5060">sip:12345688@192.168.136.134:5060</a>>;tag=784<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:#000099"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:#000099"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:#000099">I have looked through the RFC document again but could not find how one could get the "name-addr" (ie. "
12345688"). I have also looked through the Opensips Core variable documentation.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:#000099"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:#000099"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:#000099">Can anyone please tell me how to get the name-addr within a From header? What is the attribute name or compact form? </div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:#000099"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:#000099"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:#000099">Thank you</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:#000099"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:#000099">Gordon</div></div>