[Kamailio-Users] ip address of VIA header

Daniel-Constantin Mierla miconda at gmail.com
Fri Sep 26 21:19:26 CEST 2008


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 at hotmail.com
> To: users at 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 at lists.kamailio.org
> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
>   

-- 
Daniel-Constantin Mierla
http://www.asipto.com





More information about the sr-users mailing list