Hello All,
Contact and Record-Route are using Private IP Address - is this correct? I though the Public IP should be used. I do not know what setting is causing this to happen. Does anyone have any ideas?
Thank you, -Steve
I'm assuming you are interfacing with an external party, and then, yes, the external IP should be used for the RR header assuming that party should be able to route to that route.
Furthermore I assume you have multiple interfaces on your machine, in such case you need to set the listen/advertise param:
https://www.kamailio.org/wiki/cookbooks/5.1.x/core#listen cookbooks:5.1.x:core [Kamailio SIP Server Wiki]https://www.kamailio.org/wiki/cookbooks/5.1.x/core#listen This is the second section of the configuration file, containing the directives to load modules and set their parameters. It contains the directives loadmodule and ... www.kamailio.org
Cheers, Samuel ________________________________ From: sr-users sr-users-bounces@lists.kamailio.org on behalf of Wilkins, Steve swwilkins@mitre.org Sent: Tuesday, February 6, 2018 00:32 To: Kamailio (SER) - Users Mailing List Subject: [SR-Users] Contact and Record-Route are using Private IP Address- is this correct?
Hello All,
Contact and Record-Route are using Private IP Address - is this correct? I though the Public IP should be used. I do not know what setting is causing this to happen. Does anyone have any ideas?
Thank you,
-Steve
Hello Samuel,
I do listen on - listen=udp:localIP:port advertise externalIP:port listen=tcp:localIP:port advertise externalIP:port However, it is the localIP that is being used in contact and record-route. I do have Asterisk in the mix, could that be what is causing the IP to be local? Also, what is strange is that some providers are able to use the local IP.
Thank you, -Steve
From: sr-users [mailto:sr-users-bounces@lists.kamailio.org] On Behalf Of Samuel F. Sent: Monday, February 5, 2018 6:57 PM To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Subject: Re: [SR-Users] Contact and Record-Route are using Private IP Address- is this correct?
I'm assuming you are interfacing with an external party, and then, yes, the external IP should be used for the RR header assuming that party should be able to route to that route.
Furthermore I assume you have multiple interfaces on your machine, in such case you need to set the listen/advertise param:
https://www.kamailio.org/wiki/cookbooks/5.1.x/core#listen cookbooks:5.1.x:core [Kamailio SIP Server Wiki]https://www.kamailio.org/wiki/cookbooks/5.1.x/core#listen This is the second section of the configuration file, containing the directives to load modules and set their parameters. It contains the directives loadmodule and ... www.kamailio.orghttp://www.kamailio.org
Cheers, Samuel ________________________________ From: sr-users <sr-users-bounces@lists.kamailio.orgmailto:sr-users-bounces@lists.kamailio.org> on behalf of Wilkins, Steve <swwilkins@mitre.orgmailto:swwilkins@mitre.org> Sent: Tuesday, February 6, 2018 00:32 To: Kamailio (SER) - Users Mailing List Subject: [SR-Users] Contact and Record-Route are using Private IP Address- is this correct?
Hello All,
Contact and Record-Route are using Private IP Address - is this correct? I though the Public IP should be used. I do not know what setting is causing this to happen. Does anyone have any ideas?
Thank you,
-Steve
I think that if you want someone to review this you would have to provide a: - Topology - Configuration - PCAP from the Kamailio
// Samuel ________________________________ From: sr-users sr-users-bounces@lists.kamailio.org on behalf of Wilkins, Steve swwilkins@mitre.org Sent: Tuesday, February 6, 2018 13:41 To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Contact and Record-Route are using Private IP Address- is this correct?
Hello Samuel,
I do listen on -
listen=udp:localIP:port advertise externalIP:port
listen=tcp:localIP:port advertise externalIP:port
However, it is the localIP that is being used in contact and record-route. I do have Asterisk in the mix, could that be what is causing the IP to be local?
Also, what is strange is that some providers are able to use the local IP.
Thank you,
-Steve
From: sr-users [mailto:sr-users-bounces@lists.kamailio.org] On Behalf Of Samuel F. Sent: Monday, February 5, 2018 6:57 PM To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Subject: Re: [SR-Users] Contact and Record-Route are using Private IP Address- is this correct?
I'm assuming you are interfacing with an external party, and then, yes, the external IP should be used for the RR header assuming that party should be able to route to that route.
Furthermore I assume you have multiple interfaces on your machine, in such case you need to set the listen/advertise param:
https://www.kamailio.org/wiki/cookbooks/5.1.x/core#listenhttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.kamailio.org%2Fwiki%2Fcookbooks%2F5.1.x%2Fcore%23listen&data=02%7C01%7C%7Cbd2c79e3f7e34393b21c08d56d5f13d9%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636535177473458761&sdata=wCH9%2FcGYlML86nnYF%2FgoSUImdoo5eB3afhQIFcqGwSw%3D&reserved=0
cookbooks:5.1.x:core [Kamailio SIP Server Wiki]https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.kamailio.org%2Fwiki%2Fcookbooks%2F5.1.x%2Fcore%23listen&data=02%7C01%7C%7Cbd2c79e3f7e34393b21c08d56d5f13d9%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636535177473458761&sdata=wCH9%2FcGYlML86nnYF%2FgoSUImdoo5eB3afhQIFcqGwSw%3D&reserved=0
This is the second section of the configuration file, containing the directives to load modules and set their parameters. It contains the directives loadmodule and ...
Cheers,
Samuel
________________________________
From: sr-users <sr-users-bounces@lists.kamailio.orgmailto:sr-users-bounces@lists.kamailio.org> on behalf of Wilkins, Steve <swwilkins@mitre.orgmailto:swwilkins@mitre.org> Sent: Tuesday, February 6, 2018 00:32 To: Kamailio (SER) - Users Mailing List Subject: [SR-Users] Contact and Record-Route are using Private IP Address- is this correct?
Hello All,
Contact and Record-Route are using Private IP Address - is this correct? I though the Public IP should be used. I do not know what setting is causing this to happen. Does anyone have any ideas?
Thank you,
-Steve
Hello,
the Contact address is not set by Kamailio, unless it is a NOTIFY of a presence server in Kamailio.
Record-Route should be the advertised address. You have to grab the pcap or ngrep output for such a call for more analysis.
Cheers, Daniel
On 06.02.18 13:41, Wilkins, Steve wrote:
Hello Samuel,
I do listen on -
listen=udp:localIP:port advertise externalIP:port
listen=tcp:localIP:port advertise externalIP:port
However, it is the localIP that is being used in contact and record-route. I do have Asterisk in the mix, could that be what is causing the IP to be local?
Also, what is strange is that some providers are able to use the local IP.
Thank you,
-Steve
*From:* sr-users [mailto:sr-users-bounces@lists.kamailio.org] *On Behalf Of *Samuel F. *Sent:* Monday, February 5, 2018 6:57 PM *To:* Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org *Subject:* Re: [SR-Users] Contact and Record-Route are using Private IP Address- is this correct?
I'm assuming you are interfacing with an external party, and then, yes, the external IP should be used for the RR header assuming that party should be able to route to that route.
Furthermore I assume you have multiple interfaces on your machine, in such case you need to set the listen/advertise param:
https://www.kamailio.org/wiki/cookbooks/5.1.x/core#listen
cookbooks:5.1.x:core [Kamailio SIP Server Wiki] https://www.kamailio.org/wiki/cookbooks/5.1.x/core#listen
This is the second section of the configuration file, containing the directives to load modules and set their parameters. It contains the directives loadmodule and ...
www.kamailio.org http://www.kamailio.org
Cheers,
Samuel
*From:*sr-users <sr-users-bounces@lists.kamailio.org mailto:sr-users-bounces@lists.kamailio.org> on behalf of Wilkins, Steve <swwilkins@mitre.org mailto:swwilkins@mitre.org> *Sent:* Tuesday, February 6, 2018 00:32 *To:* Kamailio (SER) - Users Mailing List *Subject:* [SR-Users] Contact and Record-Route are using Private IP Address- is this correct?
Hello All,
Contact and Record-Route are using Private IP Address - is this correct? I though the Public IP should be used. I do not know what setting is causing this to happen. Does anyone have any ideas?
Thank you,
-Steve
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users