Thanks Vlad,

$du   did magic, it is extracting Received:: value.

On Tue, Apr 14, 2015 at 11:34 AM, Vlad Paiu <vladp...@opensips.org> wrote:

>  Hello,
>
> From you ul show output, you don't have to do anything special for this to
> work - OpenSIPS will automatically relay the call to the Received:: value
> that's displayed in the ul show output, setting it as $du, while the actual
> Request-URI of the message will contain the private Contact that the client
> registered.
>
> Best Regards,
>
> Vlad Paiu
> OpenSIPS Developerhttp://www.opensips-solutions.com
>
> On 14.04.2015 18:09, Satish Patel wrote:
>
>
>  Hi,
>
>  I have following User registred over public IP but that client doesn't
> support STUN so contact info showing private IP "192.168.1.6"
>
>  lookup function default extract "Contact:: sip:1001@192.168.1.6:27098"
>
>  Is there a way i can extract  "Received:: sip:173.XX.XX.215:27098"  so i
> can create new URI and send call to that?
>
>  if (lookup("location")) {
>      ..
>     ..
> }
>
>
>  [root@sip ~]# opensipsctl ul show
> Domain:: location table=512 records=1
>         AOR:: 1...@sip.example.com
>                 Contact::
> sip:1001@192.168.1.6:27098;rinstance=e223da1c59d774db Q=
>                         Expires:: 3585
>                         Callid::
> NjIyYzg5NzU0NGNlYjFhZTEyMDZlNDk2NTgzMDUzYjY
>                         Cseq:: 2
>                         User-agent:: X-Lite 4.7.1 74247-44615bc7-W6.1
>                         Received:: sip:173.XX.XX.215:27098
>                         State:: CS_SYNC
>                         Flags:: 0
>                         Cflags:: NAT
>                         Socket:: udp:182.XX.XX.164:5060
>                         Methods:: 5951
>
>
> _______________________________________________
> Users mailing 
> listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
> _______________________________________________
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to