The proper way to do this is to check when the user registers if they are ipv4 or ipv6 and set a branch flag that will be saved with the registration. When you call lookup, it will restore the branch flag, allowing you access to the information about the UAS ipv4, ipv6, behind a not or not etc.

-Eric

On 02/08/2016 09:52 AM, Jonathan Hunter wrote:
Hi Eric,


Thanks for the response on this.
The main issue was with identifying if the
                   Registered user I was sending the INVITE request to
                   was over IPv6 or IPv4, and it looks like your config
                   should give me an indication.
Many thanks


Jon


Message: 5

                   Date: Mon, 8 Feb 2016 07:44:18 -0700

                   From: Eric Tamme <[email protected]>

                   Subject: Re: [OpenSIPS-Users] Engage rtpengine if
                   destination

                   resigstered client is ipv6

                   To: OpenSIPS users mailling list
                   <[email protected]>

                   Message-ID: <[email protected]>

                   Content-Type: text/plain; charset="windows-1252";
                   Format="flowed"

                   You can see an example of setting the flags in my
                   federated-sip project

                   
https://github.com/etamme/federated-sip/blob/master/core/opensips.cfg.erb#L558

                   -Eric

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to