Re: [SR-Users] getting source IP from Contact header

2017-03-22 Thread Alex Balashov
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:

Re: [SR-Users] getting source IP from Contact header

2017-03-22 Thread Kordován Szabolcs
Hello, You can use {uri.host} transformation. Regards, Szabolcs 2017-03-22 18:23 GMT+01:00 Ali Taher : > Hello everyone, > > > > I’m trying to get the host part from the contact header in the sip invite > packet. > > > > Fo

[SR-Users] getting source IP from Contact header

2017-03-22 Thread Ali Taher
Hello everyone, I'm trying to get the host part from the contact header in the sip invite packet. Following is the contact header format: Contact: What I want as result is 192.168.1.1 I searched among the pseudovairables and found $ct variable which reference to the body of conta