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/
What is it you're trying to do? You can get a great deal of data using the pseudo variables:
From URI domain - $fd Received IP address - $Ri IP source address - $si
Is what you're looking for in one of those?
Alex R.S.M wrote:
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. See Now http://clk.atdmt.com/MRT/go/msnnkwxp1020093175mrt/direct/01/
Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
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:
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 http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns%21550F681DAD532637%215295.entry?ocid=TXT_TAGLM_WL_getmore_092008
Want to do more with Windows Live? Learn “10 hidden secrets” from Jamie. Learn Now http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns%21550F681DAD532637%215295.entry?ocid=TXT_TAGLM_WL_domore_092008
Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users