Hi,
Is there any function in openSER to return the ip address of VIA header? or return the VIA header?
Thanks, alex
_________________________________________________________________ Get more out of the Web. Learn 10 hidden secrets of Windows Live. http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!55...
I think getHeader("Via") from perl module will do the job for me.
From: alex_rsm@hotmail.com To: users@lists.kamailio.org Date: Thu, 25 Sep 2008 15:40:49 -0400 Subject: [Kamailio-Users] ip address of VIA header
Hi,
Is there any function in openSER to return the ip address of VIA header? or return the VIA header?
Thanks, alex
Get more out of the Web. Learn 10 hidden secrets of Windows Live. Learn Now
_________________________________________________________________ Want to do more with Windows Live? Learn “10 hidden secrets” from Jamie. http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!55...
Hi,
getHeader("Via") from perl module returns the last VIA record in VIA header. Is there other function which returns all (or selected) VIA record within VIA header? or I should parse the full header?
Thanks, Alex
_________________________________________________________________ See how Windows connects the people, information, and fun that are part of your life. http://clk.atdmt.com/MRT/go/msnnkwxp1020093175mrt/direct/01/
Hello,
$hdr(Via) will return the body of the Via header. Then you can use string transformations to get the ip out of it:
http://www.kamailio.org/dokuwiki/doku.php/transformations:1.4.x
Cheers, Daniel
On 09/25/08 22:46, Alex R.S.M wrote: