Hi all,
Thanks for the comments of you both. I just achieved my goal by using
$var(callerip) = $ct.fields(uri);
$var(sendip) = $(var(callerip){s.select,-1,@});
$var(sendip2) = $(var(sendip){s.select,0,:});.
Obviously, $(ct.fields(uri){uri.host}) is a much better solution. Thanks
again.
Best wishes,
Chen-Che
--
View this message in context:
http://opensips-open-sip-server.1449251.n2.nabble.com/How-to-get-only-the-ip-from-contact-tp7586612p7586615.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users