Hi Liviu, New problem. $ct.fields(uri) returns the received address in the domain, rather than what's in the Contact.
At call time: $ct = <sip:[email protected]> $ct.fields(uri) = sip:+12162450000@[PUBLIC_IP]:8490 Am I expecting the wrong thing? The only difference between $ct and the registered Contact is that $ct is wrapped in <>. I wrote a nasty regex to strip the <> characters and it works with is_contact_registered(), at least from this phone. - Jeff On Wed, Oct 7, 2020 at 10:38 AM Liviu Chircu <[email protected]> wrote: > On 07.10.2020 17:18, Jeff Pyle wrote: > > Am I missing something? > > Hi, > > Use "$ct.fields(uri)" instead of "$ct", so you extract the Contact URI > instead of the entire header body. > > -- > Liviu Chircu > www.twitter.com/liviuchircu | www.opensips-solutions.com > >
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
