Ali,

A Contact header is a "name-address pair", so you first need to fetch
the URI from it before you can fetch that URI's host portion. All of
that can be done using Kamailio transformations:

http://www.kamailio.org/wiki/cookbooks/5.0.x/transformations

To accomplish what you'd want, you'd use:

   $(ct{nameaddr.uri}{uri.host})

-- Alex

-- 
Alex Balashov | Principal | Evariste Systems LLC

Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) 
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to