Re: [SR-Users] Getting destination ip

2016-12-06 Thread Daniel-Constantin Mierla
Hello,

ok, I see. Not sure what sipcapture is exposing there.

Cheers,
Daniel


On 06/12/2016 10:07, David Villasmil wrote:
> Hello Daniel,
>
> Actually I'm working on Homer's Kamailio. So what I need is to get the
> sending ip on replies. As far as I can see, there's currently no way
> of doing this, that's why I patched sipcapture.c to expose
> $hep(src_ip) to get the sending ip
> address https://github.com/kamailio/kamailio/pull/879/files
>
>
> Is there any other way?
>
> Regards,
>
> David Villasmil
> ᐧ
>
> Regards,
>
> David Villasmil
> email: david.villasmil.w...@gmail.com
> 
> phone: +34669448337
>
> On Mon, Dec 5, 2016 at 12:08 PM, Daniel-Constantin Mierla
> > wrote:
>
> Hello,
>
> do you need to get this when the sip response is received from
> another address or when kamailio is generating the response?
>
> Cheers,
> Daniel
>
>
> On 30/11/2016 02:49, David Villasmil wrote:
>> Thanks for your help,
>> $sel(via[1].host) actually shows the internal ip address of the
>> client... :(
>>
>> David
>>
>> Regards,
>>
>> David Villasmil
>> email: david.villasmil.w...@gmail.com
>> 
>> phone: +34669448337 
>>
>> On Tue, Nov 29, 2016 at 9:51 PM, Alberto Llamas
>> > wrote:
>>
>> Oh I seeWhat about to get the host attribute from the
>> 'top' via header as below
>>
>> $sel(via[1].host)
>>
>> Cheers,
>>
>> On Tue, Nov 29, 2016 at 6:00 PM, David Villasmil
>> > > wrote:
>>
>> Thanks Alberto,
>>
>> But that won't work for me. I should have mentioned it on
>> the original email, but this is on kamailio working on
>> Sipcapture/Homer, so there are no transactions or dialogs...
>>
>> David
>>
>> On Tue, Nov 29, 2016 at 5:18 PM Alberto Llamas
>> > > wrote:
>>
>> Hi David,
>>
>> Below instruction should work for you:
>>
>> $T_req($rd)
>>
>> Cheers,
>>
>> On Tue, Nov 29, 2016 at 4:29 PM, David Villasmil
>> > > wrote:
>>
>> Hello Guys,
>>
>> I'm wondering how do I get destination IP on a reply?
>>
>> Regards,
>>
>> David Villasmil
>> email: david.villasmil.w...@gmail.com
>> 
>> phone: +34669448337 
>> ᐧ
>>
>> ___
>> SIP Express Router (SER) and Kamailio (OpenSER) -
>> sr-users mailing list
>> sr-users@lists.sip-router.org
>> 
>> 
>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>> 
>> 
>>
>>
>>
>>
>> -- 
>> Alberto Llamas
>> Phone: +1-786-805-6003 
>> TelecommunicationsEngineer
>> Digium Certified Asterisk Professional (dCap)
>>
>> ___
>> SIP Express Router (SER) and Kamailio (OpenSER) -
>> sr-users mailing list
>> sr-users@lists.sip-router.org
>> 
>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>> 
>> 
>>
>>
>> ___
>> SIP Express Router (SER) and Kamailio (OpenSER) -
>> sr-users mailing list
>> sr-users@lists.sip-router.org
>> 
>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>> 
>>
>>
>>
>>
>> -- 
>> Alberto Llamas
>> Phone: +1-786-805-6003 
>> TelecommunicationsEngineer
>> Digium Certified Asterisk Professional (dCap)
>>
>>
>> ___
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users
>> mailing list
>> 

Re: [SR-Users] Getting destination ip

2016-12-06 Thread David Villasmil
Hello Daniel,

Actually I'm working on Homer's Kamailio. So what I need is to get the
sending ip on replies. As far as I can see, there's currently no way of
doing this, that's why I patched sipcapture.c to expose $hep(src_ip) to get
the sending ip address https://github.com/kamailio/kamailio/pull/879/files


Is there any other way?

Regards,

David Villasmil
ᐧ

Regards,

David Villasmil
email: david.villasmil.w...@gmail.com
phone: +34669448337

On Mon, Dec 5, 2016 at 12:08 PM, Daniel-Constantin Mierla  wrote:

> Hello,
>
> do you need to get this when the sip response is received from another
> address or when kamailio is generating the response?
>
> Cheers,
> Daniel
>
> On 30/11/2016 02:49, David Villasmil wrote:
>
> Thanks for your help,
> $sel(via[1].host) actually shows the internal ip address of the client...
> :(
>
> David
>
> Regards,
>
> David Villasmil
> email: david.villasmil.w...@gmail.com
> phone: +34669448337 <+34%20669%2044%2083%2037>
>
> On Tue, Nov 29, 2016 at 9:51 PM, Alberto Llamas 
> wrote:
>
>> Oh I seeWhat about to get the host attribute from the 'top' via
>> header as below
>>
>> $sel(via[1].host)
>>
>> Cheers,
>>
>> On Tue, Nov 29, 2016 at 6:00 PM, David Villasmil <
>> david.villasmil.w...@gmail.com> wrote:
>>
>>> Thanks Alberto,
>>>
>>> But that won't work for me. I should have mentioned it on the original
>>> email, but this is on kamailio working on Sipcapture/Homer, so there are no
>>> transactions or dialogs...
>>>
>>> David
>>>
>>> On Tue, Nov 29, 2016 at 5:18 PM Alberto Llamas 
>>> wrote:
>>>
 Hi David,

 Below instruction should work for you:

 $T_req($rd)

 Cheers,

 On Tue, Nov 29, 2016 at 4:29 PM, David Villasmil <
 david.villasmil.w...@gmail.com> wrote:

 Hello Guys,

 I'm wondering how do I get destination IP on a reply?

 Regards,

 David Villasmil
 email: david.villasmil.w...@gmail.com
 phone: +34669448337
 ᐧ

 ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
 sr-users@lists.sip-router.org
 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users




 --
 Alberto Llamas
 Phone: +1-786-805-6003 <+1%20786-805-6003>
 Telecommunications Engineer
 Digium Certified Asterisk Professional (dCap)

 ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
 sr-users@lists.sip-router.org
 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

>>>
>>> ___
>>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>>> sr-users@lists.sip-router.org
>>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>>
>>>
>>
>>
>> --
>> Alberto Llamas
>> Phone: +1-786-805-6003 <%28786%29%20805-6003>
>> Telecommunications Engineer
>> Digium Certified Asterisk Professional (dCap)
>>
>>
>> ___
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>> sr-users@lists.sip-router.org
>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>
>>
> ᐧ
>
>
> ___
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing 
> listsr-us...@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
> --
> Daniel-Constantin Mierlawww.twitter.com/miconda -- www.linkedin.com/in/miconda
> Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com
>
>
> ___
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Getting destination ip

2016-12-05 Thread Daniel-Constantin Mierla
Hello,

do you need to get this when the sip response is received from another
address or when kamailio is generating the response?

Cheers,
Daniel


On 30/11/2016 02:49, David Villasmil wrote:
> Thanks for your help,
> $sel(via[1].host) actually shows the internal ip address of the
> client... :(
>
> David
>
> Regards,
>
> David Villasmil
> email: david.villasmil.w...@gmail.com
> 
> phone: +34669448337
>
> On Tue, Nov 29, 2016 at 9:51 PM, Alberto Llamas
> > wrote:
>
> Oh I seeWhat about to get the host attribute from the 'top'
> via header as below
>
> $sel(via[1].host)
>
> Cheers,
>
> On Tue, Nov 29, 2016 at 6:00 PM, David Villasmil
>  > wrote:
>
> Thanks Alberto,
>
> But that won't work for me. I should have mentioned it on the
> original email, but this is on kamailio working on
> Sipcapture/Homer, so there are no transactions or dialogs...
>
> David
>
> On Tue, Nov 29, 2016 at 5:18 PM Alberto Llamas
> >
> wrote:
>
> Hi David,
>
> Below instruction should work for you:
>
> $T_req($rd)
>
> Cheers,
>
> On Tue, Nov 29, 2016 at 4:29 PM, David Villasmil
>  > wrote:
>
> Hello Guys,
>
> I'm wondering how do I get destination IP on a reply?
>
> Regards,
>
> David Villasmil
> email: david.villasmil.w...@gmail.com
> 
> phone: +34669448337 
> ᐧ
>
> ___
> SIP Express Router (SER) and Kamailio (OpenSER) -
> sr-users mailing list
> sr-users@lists.sip-router.org
> 
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
> 
> 
>
>
>
>
> -- 
> Alberto Llamas
> Phone: +1-786-805-6003 
> TelecommunicationsEngineer
> Digium Certified Asterisk Professional (dCap)
>
> ___
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users
> mailing list
> sr-users@lists.sip-router.org
> 
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
> 
>
>
> ___
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users
> mailing list
> sr-users@lists.sip-router.org
> 
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
> 
>
>
>
>
> -- 
> Alberto Llamas
> Phone: +1-786-805-6003 
> TelecommunicationsEngineer
> Digium Certified Asterisk Professional (dCap)
>
>
> ___
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing
> list
> sr-users@lists.sip-router.org 
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
> 
>
>
> ᐧ
>
>
> ___
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Getting destination ip

2016-11-29 Thread David Villasmil
Thanks for your help,
$sel(via[1].host) actually shows the internal ip address of the client... :(

David

Regards,

David Villasmil
email: david.villasmil.w...@gmail.com
phone: +34669448337

On Tue, Nov 29, 2016 at 9:51 PM, Alberto Llamas 
wrote:

> Oh I seeWhat about to get the host attribute from the 'top' via header
> as below
>
> $sel(via[1].host)
>
> Cheers,
>
> On Tue, Nov 29, 2016 at 6:00 PM, David Villasmil <
> david.villasmil.w...@gmail.com> wrote:
>
>> Thanks Alberto,
>>
>> But that won't work for me. I should have mentioned it on the original
>> email, but this is on kamailio working on Sipcapture/Homer, so there are no
>> transactions or dialogs...
>>
>> David
>>
>> On Tue, Nov 29, 2016 at 5:18 PM Alberto Llamas 
>> wrote:
>>
>>> Hi David,
>>>
>>> Below instruction should work for you:
>>>
>>> $T_req($rd)
>>>
>>> Cheers,
>>>
>>> On Tue, Nov 29, 2016 at 4:29 PM, David Villasmil <
>>> david.villasmil.w...@gmail.com> wrote:
>>>
>>> Hello Guys,
>>>
>>> I'm wondering how do I get destination IP on a reply?
>>>
>>> Regards,
>>>
>>> David Villasmil
>>> email: david.villasmil.w...@gmail.com
>>> phone: +34669448337
>>> ᐧ
>>>
>>> ___
>>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>>> sr-users@lists.sip-router.org
>>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>>
>>>
>>>
>>>
>>> --
>>> Alberto Llamas
>>> Phone: +1-786-805-6003 <+1%20786-805-6003>
>>> Telecommunications Engineer
>>> Digium Certified Asterisk Professional (dCap)
>>>
>>> ___
>>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>>> sr-users@lists.sip-router.org
>>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>>
>>
>> ___
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>> sr-users@lists.sip-router.org
>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>
>>
>
>
> --
> Alberto Llamas
> Phone: +1-786-805-6003 <(786)%20805-6003>
> Telecommunications Engineer
> Digium Certified Asterisk Professional (dCap)
>
>
> ___
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
ᐧ
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Getting destination ip

2016-11-29 Thread Alberto Llamas
Oh I seeWhat about to get the host attribute from the 'top' via header
as below

$sel(via[1].host)

Cheers,

On Tue, Nov 29, 2016 at 6:00 PM, David Villasmil <
david.villasmil.w...@gmail.com> wrote:

> Thanks Alberto,
>
> But that won't work for me. I should have mentioned it on the original
> email, but this is on kamailio working on Sipcapture/Homer, so there are no
> transactions or dialogs...
>
> David
>
> On Tue, Nov 29, 2016 at 5:18 PM Alberto Llamas 
> wrote:
>
>> Hi David,
>>
>> Below instruction should work for you:
>>
>> $T_req($rd)
>>
>> Cheers,
>>
>> On Tue, Nov 29, 2016 at 4:29 PM, David Villasmil <
>> david.villasmil.w...@gmail.com> wrote:
>>
>> Hello Guys,
>>
>> I'm wondering how do I get destination IP on a reply?
>>
>> Regards,
>>
>> David Villasmil
>> email: david.villasmil.w...@gmail.com
>> phone: +34669448337
>> ᐧ
>>
>> ___
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>> sr-users@lists.sip-router.org
>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>
>>
>>
>>
>> --
>> Alberto Llamas
>> Phone: +1-786-805-6003 <+1%20786-805-6003>
>> Telecommunications Engineer
>> Digium Certified Asterisk Professional (dCap)
>>
>> ___
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>> sr-users@lists.sip-router.org
>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>
>
> ___
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>


-- 
Alberto Llamas
Phone: +1-786-805-6003
Telecommunications Engineer
Digium Certified Asterisk Professional (dCap)
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Getting destination ip

2016-11-29 Thread David Villasmil
Thanks Alberto,

But that won't work for me. I should have mentioned it on the original
email, but this is on kamailio working on Sipcapture/Homer, so there are no
transactions or dialogs...

David
On Tue, Nov 29, 2016 at 5:18 PM Alberto Llamas 
wrote:

> Hi David,
>
> Below instruction should work for you:
>
> $T_req($rd)
>
> Cheers,
>
> On Tue, Nov 29, 2016 at 4:29 PM, David Villasmil <
> david.villasmil.w...@gmail.com> wrote:
>
> Hello Guys,
>
> I'm wondering how do I get destination IP on a reply?
>
> Regards,
>
> David Villasmil
> email: david.villasmil.w...@gmail.com
> phone: +34669448337
> ᐧ
>
> ___
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
>
>
> --
> Alberto Llamas
> Phone: +1-786-805-6003
> Telecommunications Engineer
> Digium Certified Asterisk Professional (dCap)
>
> ___
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Getting destination ip

2016-11-29 Thread Alberto Llamas
Hi David,

Below instruction should work for you:

$T_req($rd)

Cheers,

On Tue, Nov 29, 2016 at 4:29 PM, David Villasmil <
david.villasmil.w...@gmail.com> wrote:

> Hello Guys,
>
> I'm wondering how do I get destination IP on a reply?
>
> Regards,
>
> David Villasmil
> email: david.villasmil.w...@gmail.com
> phone: +34669448337
> ᐧ
>
> ___
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>


-- 
Alberto Llamas
Phone: +1-786-805-6003
Telecommunications Engineer
Digium Certified Asterisk Professional (dCap)
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users