<div dir="ltr"><br><div><div>Hi, </div></div><div><br></div><div>I have following User registred over public IP but that client doesn&#39;t support STUN so contact info showing private IP &quot;192.168.1.6&quot;  </div><div><br></div><div>lookup function default extract &quot;Contact:: <a href="http://sip:1001@192.168.1.6:27098">sip:1001@192.168.1.6:27098</a>&quot;  </div><div><br></div><div>Is there a way i can extract  &quot;Received:: sip:173.XX.XX.215:27098&quot;  so i can create new URI and send call to that? </div><div><br></div><div>if (lookup(&quot;location&quot;)) {<br></div><div>    ..</div><div>    ..</div><div>}</div><div><br></div><div><br></div><div><div>[root@sip ~]# opensipsctl ul show</div><div>Domain:: location table=512 records=1</div><div>        AOR:: <a href="mailto:1001@sip.example.com">1001@sip.example.com</a></div><div>                Contact:: sip:1001@192.168.1.6:27098;rinstance=e223da1c59d774db Q=</div><div>                        Expires:: 3585</div><div>                        Callid:: NjIyYzg5NzU0NGNlYjFhZTEyMDZlNDk2NTgzMDUzYjY</div><div>                        Cseq:: 2</div><div>                        User-agent:: X-Lite 4.7.1 74247-44615bc7-W6.1</div><div>                        Received:: sip:173.XX.XX.215:27098</div><div>                        State:: CS_SYNC</div><div>                        Flags:: 0</div><div>                        Cflags:: NAT</div><div>                        Socket:: udp:182.XX.XX.164:5060</div><div>                        Methods:: 5951</div></div></div>