[Serusers] Getting IPaddress and port # only off VIA header

Chahn Kim johnk at koreanet.us
Mon Nov 16 18:43:44 CET 2009


Sorry for sending previous post without subject line.
Applogy.

> Hi all,
>
> Need some help from experts.
> I have beeb using $hdr(via[0]) to fetch the VIA header to get top via field,
> which will show entire top via filed as;
> <SIP/2.0/UDP 1.2.3.4:5060;branch=z9hG4bK-9aa0fded>.
>
> Now I am in need of getting IP:port# portion only to get assigend to a variable.
>
> What would be the most effecient way of doing it?
>
> I didn't find any other pseudo variable to provide it based on docu.
>
> Thanks in advance.
>
> John Chahn Kim
>
> email: johnk at koreanet.us
>
>
>
> _______________________________________________
> Serusers mailing list
> Serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
>

John Chahn Kim
email: johnk at koreanet.us





More information about the sr-users mailing list