[SR-Users] Getting destination ip
Daniel-Constantin Mierla
miconda at gmail.com
Mon Dec 5 12:08:03 CET 2016
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.work at gmail.com
> <mailto:david.villasmil.work at gmail.com>
> phone: +34669448337
>
> On Tue, Nov 29, 2016 at 9:51 PM, Alberto Llamas
> <albertollamaso at gmail.com <mailto:albertollamaso at gmail.com>> wrote:
>
> Oh I see....What 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.work at gmail.com
> <mailto:david.villasmil.work at 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
> <albertollamaso at gmail.com <mailto:albertollamaso at gmail.com>>
> 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.work at gmail.com
> <mailto:david.villasmil.work at gmail.com>> wrote:
>
> Hello Guys,
>
> I'm wondering how do I get destination IP on a reply?
>
> Regards,
>
> David Villasmil
> email: david.villasmil.work at gmail.com
> <mailto:david.villasmil.work at gmail.com>
> phone: +34669448337 <tel:%2B34669448337>
> ᐧ
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) -
> sr-users mailing list
> sr-users at lists.sip-router.org
> <mailto:sr-users at lists.sip-router.org>
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
> <http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users>
>
>
>
>
> --
> Alberto Llamas
> Phone: +1-786-805-6003 <tel:+1%20786-805-6003>
> TelecommunicationsEngineer
> Digium Certified Asterisk Professional (dCap)
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users
> mailing list
> sr-users at lists.sip-router.org
> <mailto:sr-users at lists.sip-router.org>
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
> <http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users>
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users
> mailing list
> sr-users at lists.sip-router.org
> <mailto:sr-users at lists.sip-router.org>
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
> <http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users>
>
>
>
>
> --
> Alberto Llamas
> Phone: +1-786-805-6003 <tel:%28786%29%20805-6003>
> TelecommunicationsEngineer
> Digium Certified Asterisk Professional (dCap)
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing
> list
> sr-users at lists.sip-router.org <mailto:sr-users at lists.sip-router.org>
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
> <http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users>
>
>
> ᐧ
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20161205/0a305052/attachment.html>
More information about the sr-users
mailing list