Hi Cumhur,
ruri.hostport won't return the de-facto IPv[4,6] address if the RURI
contains a domain name, that's why ppl have suggested to use the
*onsend_route*, as it's the only route where the IP is exposed after DNS
resolver is performed following the t_relay() or forward().
Cheers.
On Tue, Jan 21, 2020 at 8:16 AM CUMHUR KARAHAN <
cumhur.karahan(a)consultant.turkcell.com.tr> wrote:
Hi again,
I used $sel(ruri.hostport) for Kamailio1 after t_relay in Relay route. So
I managed to get the request-line URI's IP and port parameters of the
outgoing INVITE that is leaving the first Kamailio box.
Thank you very much.
-----Original Message-----
From: sr-users <sr-users-bounces(a)lists.kamailio.org> On Behalf Of CUMHUR
KARAHAN
Sent: 17 Ocak 2020 Cuma 15:23
To: sr-users(a)lists.kamailio.org
Subject: Re: [SR-Users] Get destination IP from forwarded invite
Hi Joel,
Thank you for your response.
In fact, I want to get Request-line URI's parameters of the outgoing
INVITE that is leaving the first Kamailio box, briefly. Unfortunately "du -
destination URL" or "sndto(name)" pseudo-variables indicate the next
hope's
information. And in this case, the next hope's information is not same as
the ClientB's information.
As I tried to tell before, our setup is like that:
ClientA -> Kamailio1 -> Kamailio2 -> ClientB
I need the request line URI parameters of the invite message sent by
Kamailio1 to Kamailio2. And these parameters contain ClientB's ip and port
information such as 10.252.180.51:36945 as you can see below:
INVITE sip:905364167881@10.252.180.51:36945;transport=tls SIP/2.0
Record-Route:
<sip:gearbox11.turkcell.tgc:5060;r2=on;lr;did=7f5.f572;nat=yes>
Record-Route: <sip:testsip05.tvoip.turkcell.com.tr:443
;transport=tls;r2=on;lr;did=7f5.f572;nat=yes>
Via: SIP/2.0/UDP
gearbox11.turkcell.tgc:5060;branch=z9hG4bK67ad.4e8e863f2475ab8d3053af0593548557.1;i=f
Via: SIP/2.0/TLS 100.64.13.139:56993
;received=212.252.34.165;branch=z9hG4bK.1SYkXD1Me;rport=32980
From: <sip:905368601286@testsip.tvoip.turkcell.com.tr>;tag=WbINy0ypx
To: sip:905364167881@testsip.tvoip.turkcell.com.tr
CSeq: 21 INVITE
Call-ID: 1wF-vjzGIX
...
And, your question: no, we don't use the dispatcher mechanism. We just
check the DB to find out Kamailio server which the number registered into
and send the messages to this server basically.
Thanks for all...
-----Original Message-----
From: sr-users <sr-users-bounces(a)lists.kamailio.org> On Behalf Of
sr-users-request(a)lists.kamailio.org
Sent: 17 Ocak 2020 Cuma 14:00
To: sr-users(a)lists.kamailio.org
Subject: sr-users Digest, Vol 176, Issue 17
Send sr-users mailing list submissions to
sr-users(a)lists.kamailio.org
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
or, via email, send a message with subject or body 'help' to
sr-users-request(a)lists.kamailio.org
You can reach the person managing the list at
sr-users-owner(a)lists.kamailio.org
When replying, please edit your Subject line so it is more specific than
"Re: Contents of sr-users digest..."
Today's Topics:
1. Get destination IP from forwarded invite (CUMHUR KARAHAN)
2. Re: Kamalio + RTP Engine + SIP Client behind NAT (Richard Fuchs)
3. Re: Get destination IP from forwarded invite (Joel Serrano)
4. Re: Kamalio + RTP Engine + SIP Client behind NAT
(Nuno Miguel Reis)
5. Re: Kamailio/RTC dinner at Fosdem 2020 (Federico Santulli)
6. Re: http_client interface (Daniel-Constantin Mierla)
7. Re: Kamailio stop to process incoming SIP traffic via TCP.
(adeykunov)
8. Question about xhttp module kamailio 5.2.x (Jimmy Rodley)
9. Trouble with 302 Redirect (Jim Leahy)
10. Re: Kamalio + RTP Engine + SIP Client behind NAT (Richard Fuchs)
11. Re: http_client interface (Fred Posner)
12. Re: Trouble with 302 Redirect (Alex Balashov)
13. UCaaS Platform (Dario Vargas)
14. Re: [commercial announcement] (Henning Westerholt)
----------------------------------------------------------------------
Message: 1
Date: Thu, 16 Jan 2020 11:45:15 +0000
From: CUMHUR KARAHAN <cumhur.karahan(a)consultant.turkcell.com.tr>
To: "sr-users(a)lists.kamailio.org" <sr-users(a)lists.kamailio.org>
Subject: [SR-Users] Get destination IP from forwarded invite
Message-ID:
<319901a90d17413292ad249eb56df2ec(a)consultant.turkcell.com.tr>
Content-Type: text/plain; charset="utf-8"
Hi all,
I'm a newbie for Kamailio and working on a feature needs end-users'
destination IP in the first transferred/forwarded invite message.
Basically, our system/call flow is like:
ClientA -> Kamailio1 -> Kamailio2 -> ClientB
Invite from the clientA:
tls:212.252.34.165:32980
tls:172.21.193.100:5061
INVITE sip:905364167881@testsip.tvoip.turkcell.com.tr:443 SIP/2.0
Via: SIP/2.0/TLS 100.64.13.139:56993;branch=z9hG4bK.GoiTxA4Ee;rport
From: <sip:905368601286@testsip.tvoip.turkcell.com.tr>;tag=WbINy0ypx
To: sip:905364167881@testsip.tvoip.turkcell.com.tr
CSeq: 20 INVITE
...
Needed Ip (Client B's IP 10.252.180.51 for this case) is in the INVITE row
of the forwarded message.
Invite to the Kamailio2 :
udp:172.21.193.100:5060
udp:172.21.193.98:5060
INVITE sip:905364167881@10.252.180.51:36945;transport=tls SIP/2.0
Record-Route:
<sip:gearbox11.turkcell.tgc:5060;r2=on;lr;did=7f5.f572;nat=yes>
Record-Route: <sip:testsip05.tvoip.turkcell.com.tr:443
;transport=tls;r2=on;lr;did=7f5.f572;nat=yes>
Via: SIP/2.0/UDP
gearbox11.turkcell.tgc:5060;branch=z9hG4bK67ad.4e8e863f2475ab8d3053af0593548557.1;i=f
Via: SIP/2.0/TLS 100.64.13.139:56993
;received=212.252.34.165;branch=z9hG4bK.1SYkXD1Me;rport=32980
From: <sip:905368601286@testsip.tvoip.turkcell.com.tr>;tag=WbINy0ypx
To: sip:905364167881@testsip.tvoip.turkcell.com.tr
CSeq: 21 INVITE
...
When the first invite message receives, the dialog variables or
sel(msg...) parsed values belong to this first received message, as far as
I understand during the tests. However I need the forwarded invite
message's variables. Even after t_relay in RELAY route, it looks the
message I have is the first one. So, I cannot reach this later IP in the
forwarded invite message. As far as I understand, bear with me here please,
this IP manipulation executes in t_relay function and in the C side of
Kamailio. So, I cannot find a way to do that in the our native scripts.
Is there any way to get it without diving C code's abyss? Do you have any
idea about it? I would appreciate it, if I can get any help or any clue.
Thanks for all...
S. Cumhur Karahan
[
http://s.turkcell.com.tr/SiteAssets/Genel/mail-imza.jpg] <
https://ddei3-0-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=http%3a%2…
Bu elektronik posta ve onunla iletilen butun dosyalar sadece gondericisi
tarafindan almasi amaclanan yetkili gercek ya da tuzel kisinin kullanimi
icindir. Eger soz konusu yetkili alici degilseniz bu elektronik postanin
icerigini aciklamaniz, kopyalamaniz, yonlendirmeniz ve kullanmaniz
kesinlikle yasaktir ve bu elektronik postayi derhal silmeniz gerekmektedir.
TURKCELL bu mesajin icerdigi bilgilerin do?rulu?u veya eksiksiz oldugu
konusunda herhangi bir garanti vermemektedir. Bu nedenle bu bilgilerin ne
sekilde olursa olsun iceriginden, iletilmesinden, alinmasindan ve
saklanmasindan sorumlu degildir. Bu mesajdaki gorusler yalnizca gonderen
kisiye aittir ve TURKCELLin goruslerini yansitmayabilir
Bu e-posta bilinen butun bilgisayar viruslerine karsi taranmistir.
________________________________
This e-mail and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they are
addressed. If you are not the intended recipient you are hereby notified
that any dissemination, forwarding, copying or use of any of the
information is strictly prohibited, and the e-mail should immediately be
deleted.
TURKCELL makes no warranty as to the accuracy or completeness of any
information contained in this message and hereby excludes any liability of
any kind for the information contained therein or for the information
transmission, reception, storage or use of such in any way whatsoever. The
opinions expressed in this message belong to sender alone and may not
necessarily reflect the opinions of TURKCELL.
This e-mail has been scanned for all known computer viruses.