[OpenSIPS-Users] Routing in opensips
Eric Freeman
eric.freeman at tbwachiat.com
Fri Sep 30 15:52:20 CEST 2016
Hopefully this is the relevant information you need from the log. I am trying to call 111 at 199.48.152.152. The IP of the opensips server si 10.88.23.10 and has a public IP of 204.17.231.3. The IP address of the video conference server is 10.89.71.12.
Sep 29 12:10:17 cd-ubuntu-opensips /usr/local/sbin/opensips[12878]: DBG:core:parse_msg: SIP Request:
Sep 29 12:10:17 cd-ubuntu-opensips /usr/local/sbin/opensips[12878]: DBG:core:parse_msg: method: <INVITE>
Sep 29 12:10:17 cd-ubuntu-opensips /usr/local/sbin/opensips[12878]: DBG:core:parse_msg: uri: <sip:111 at 199.48.152.152>
Sep 29 12:10:17 cd-ubuntu-opensips /usr/local/sbin/opensips[12878]: DBG:core:parse_msg: version: <SIP/2.0>
Sep 29 12:10:17 cd-ubuntu-opensips /usr/local/sbin/opensips[12878]: DBG:core:parse_headers: flags=2
Sep 29 12:10:17 cd-ubuntu-opensips /usr/local/sbin/opensips[12878]: DBG:core:parse_to: end of header reached, state=10
Sep 29 12:10:17 cd-ubuntu-opensips /usr/local/sbin/opensips[12878]: DBG:core:parse_to: display={}, ruri={sip:111 at 199.48.152.152}
Sep 29 12:10:17 cd-ubuntu-opensips /usr/local/sbin/opensips[12878]: DBG:core:get_hdr_field: <To> [26]; uri=[sip:111 at 199.48.152.152]
Sep 29 12:10:17 cd-ubuntu-opensips /usr/local/sbin/opensips[12878]: DBG:core:get_hdr_field: to body [<sip:111 at 199.48.152.152>#015#012]
Sep 29 12:10:17 cd-ubuntu-opensips /usr/local/sbin/opensips[12878]: DBG:core:get_hdr_field: cseq <CSeq>: <1> <INVITE>
Sep 29 12:10:17 cd-ubuntu-opensips /usr/local/sbin/opensips[12878]: DBG:core:parse_via_param: found param type 235, <rport> = <n/a>; state=6
Sep 29 12:10:17 cd-ubuntu-opensips /usr/local/sbin/opensips[12878]: DBG:core:parse_via_param: found param type 232, <branch> = <z9hG4bK-57ed3cdd-76b5c304-9584dff>; state=16
Sep 29 12:10:17 cd-ubuntu-opensips /usr/local/sbin/opensips[12878]: DBG:core:parse_via: end of header reached, state=5
Sep 29 12:10:17 cd-ubuntu-opensips /usr/local/sbin/opensips[12878]: DBG:core:parse_headers: via found, flags=2
Sep 29 12:10:17 cd-ubuntu-opensips /usr/local/sbin/opensips[12878]: DBG:core:parse_headers: this is the first via
Sep 29 12:10:17 cd-ubuntu-opensips /usr/local/sbin/opensips[12878]: DBG:core:receive_msg: After parse_msg...
Sep 29 12:10:17 cd-ubuntu-opensips /usr/local/sbin/opensips[12878]: DBG:core:receive_msg: preparing to run routing scripts...
Sep 29 12:10:17 cd-ubuntu-opensips /usr/local/sbin/opensips[12878]: DBG:core:parse_headers: flags=100
Sep 29 12:10:17 cd-ubuntu-opensips /usr/local/sbin/opensips[12878]: DBG:maxfwd:is_maxfwd_present: value = 70
Sep 29 12:10:17 cd-ubuntu-opensips /usr/local/sbin/opensips[12878]: DBG:uri:has_totag: no totag
Sep 29 12:10:17 cd-ubuntu-opensips /usr/local/sbin/opensips[12878]: DBG:core:parse_headers: flags=78
Sep 29 12:10:17 cd-ubuntu-opensips /usr/local/sbin/opensips[12878]: DBG:tm:t_lookup_request: start searching: hash=25578, isACK=0
Sep 29 12:10:17 cd-ubuntu-opensips /usr/local/sbin/opensips[12878]: DBG:tm:matching_3261: RFC3261 transaction matching failed
Sep 29 12:10:17 cd-ubuntu-opensips /usr/local/sbin/opensips[12878]: DBG:tm:t_lookup_request: no transaction found
Sep 29 12:10:17 cd-ubuntu-opensips /usr/local/sbin/opensips[12878]: DBG:core:parse_to_param: tag=2c770a98-c47590a-13c4-45026-57ed3cdd-1bac9941-57ed3cdd
Sep 29 12:10:17 cd-ubuntu-opensips /usr/local/sbin/opensips[12878]: DBG:core:parse_to: end of header reached, state=29
Sep 29 12:10:17 cd-ubuntu-opensips /usr/local/sbin/opensips[12878]: DBG:core:parse_to: display={"Conference Room"}, ruri={sip:LifeSize at 10.88.23.13;transport=UDP}
Sep 29 12:10:17 cd-ubuntu-opensips /usr/local/sbin/opensips[12878]: DBG:core:grep_sock_info: checking if host==us: 11==11 && [10.88.23.13] == [10.88.23.13]
Sep 29 12:10:17 cd-ubuntu-opensips /usr/local/sbin/opensips[12878]: DBG:core:grep_sock_info: checking if port 5060 matches port 5060
Sep 29 12:10:17 cd-ubuntu-opensips /usr/local/sbin/opensips[12878]: DBG:core:parse_headers: flags=200
Sep 29 12:10:17 cd-ubuntu-opensips /usr/local/sbin/opensips[12878]: DBG:core:get_hdr_field: content_length=1759
Sep 29 12:10:17 cd-ubuntu-opensips /usr/local/sbin/opensips[12878]: DBG:core:get_hdr_field: found end of header
Sep 29 12:10:17 cd-ubuntu-opensips /usr/local/sbin/opensips[12878]: DBG:rr:find_first_route: No Route headers found
Sep 29 12:10:17 cd-ubuntu-opensips /usr/local/sbin/opensips[12878]: DBG:core:grep_sock_info: checking if host==us: 14==11 && [199.48.152.152] == [10.88.23.13]
Sep 29 12:10:17 cd-ubuntu-opensips /usr/local/sbin/opensips[12878]: DBG:core:grep_sock_info: checking if port 5060 matches port 5060
Sep 29 12:10:17 cd-ubuntu-opensips /usr/local/sbin/opensips[12878]: DBG:core:grep_sock_info: checking if host==us: 14==11 && [199.48.152.152] == [10.88.23.13]
Sep 29 12:10:17 cd-ubuntu-opensips /usr/local/sbin/opensips[12878]: DBG:core:grep_sock_info: checking if port 5060 matches port 5060
Sep 29 12:10:17 cd-ubuntu-opensips /usr/local/sbin/opensips[12878]: DBG:core:check_self: host != me
Sep 29 12:10:17 cd-ubuntu-opensips /usr/local/sbin/opensips[12878]: DBG:core:parse_headers: flags=ffffffffffffffff
Sep 29 12:10:17 cd-ubuntu-opensips /usr/local/sbin/opensips[12878]: DBG:core:do_action_set_adv_address: setting adv address = [204.17.231.3]
Eric Freeman
Technical Director/NA for TBWA\Chiat\Day
TBWA\Chiat\Day New York
488 Madison Ave.
New York NY 10022
United States of America
Tel: +12128041324<tel:%2B12128041324>
________________________________
From: Bogdan-Andrei Iancu <bogdan at opensips.org>
Sent: Friday, September 30, 2016 4:32:01 AM
To: Eric Freeman; OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] Routing in opensips
Hi Eric,
As a first step, can you confirm that the INVITE (sent out by your OPenSIPS to the internet) has in VIA hdr the public IP of your NAT ?
Best regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 29.09.2016 19:14, Eric Freeman wrote:
It is still not working, I added my public IP as requested. I do not have any gateways or anything set up. Do I need to add anything?
I added this to the route statement:
if (!uri==myself) {
append_hf("P-hint: outbound\r\n");
set_advertised_address("XXX.XX.XXX.X");
route(relay);
I am still receiving these errors:
Sep 29 12:10:22 cd-ubuntu-opensips /usr/local/sbin/opensips[12878]: DBG:rr:find_first_route: No Route headers found
Sep 29 12:10:22 cd-ubuntu-opensips /usr/local/sbin/opensips[12878]: DBG:rr:loose_route: There is no Route HF
Sep 29 12:10:22 cd-ubuntu-opensips /usr/local/sbin/opensips[12878]: DBG:core:parse_headers: flags=78
Eric Freeman
Technical Director/NA for TBWA\Chiat\Day
TBWA\Chiat\Day New York
488 Madison Ave.
New York NY 10022
United States of America
Tel: +12128041324<tel:%2B12128041324>
________________________________
From: Bogdan-Andrei Iancu <bogdan at opensips.org><mailto:bogdan at opensips.org>
Sent: Tuesday, September 20, 2016 8:38:31 AM
To: Eric Freeman; OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] Routing in opensips
He Eric,
In the script (generated by menuconfig), you have an IF block with :
append_hf("P-hint: outbound\r\n");
That block is executed if one of your users is dialing an external SIP domain. So, that is the place where the calls will break out to public internet.
As your OpenSIPS has a private IP (not routable in internet), you need to configure it to advertise the public IP of your NAT via the set_advertise_address() - see:
http://www.opensips.org/Documentation/Script-CoreFunctions-2-2#toc46
Put there the public IP of your NAT. Also, be sure you create in your router (running the NAT) a port forwarding from the public IP port 5060 UDP to the private IP of your OpenSIPS port 5060 UDP.
Best regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 15.09.2016 13:10, Eric Freeman wrote:
Yes.
Get Outlook for iOS<https://aka.ms/o0ukef>
________________________________
From: Bogdan-Andrei Iancu <bogdan at opensips.org><mailto:bogdan at opensips.org>
Sent: Thursday, September 15, 2016 4:57:45 AM
To: Eric Freeman; OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] Routing in opensips
Hello Eric,
So, you OpenSIPS is running behind a NAT ?
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 14.09.2016 18:43, Eric Freeman wrote:
Thank you. I am using the residential script and my device is registered. When I register two devices I can call between them. But, when I want to send the traffic out to the Internet I receive these types of errors. My device is a 10 address trying to call public IPs on the Internet. It appears I need to add a default route in opensips? It seems like it can't send the traffic to the Internet or a default route. The opensips server itself can get onto the Internet.
Aug 22 15:12:55 cd-ubuntu-opensips /usr/local/sbin/opensips[11973]: DBG:core:get_hdr_field
: found end of header
Aug 22 15:12:55 cd-ubuntu-opensips /usr/local/sbin/opensips[11973]: DBG:rr:find_first_rout
e: No Route headers found
Aug 22 15:12:55 cd-ubuntu-opensips /usr/local/sbin/opensips[11973]: DBG:rr:loose_route: Th
ere is no Route HF
Aug 22 15:12:55 cd-ubuntu-opensips /usr/local/sbin/opensips[11973]: DBG:dialog:w_create_di
alog2: bye on timeout activated
Thank you,
Eric Freeman
________________________________
From: Bogdan-Andrei Iancu <bogdan at opensips.org><mailto:bogdan at opensips.org>
Sent: Wednesday, September 14, 2016 10:47:23 AM
To: OpenSIPS users mailling list; Eric Freeman
Subject: Re: [OpenSIPS-Users] Routing in opensips
Hi Eric,
A good starting point is the residential script that can be generated via the menuconfig tool. See:
http://www.opensips.org/Documentation/Generating-Configs-2-2
Then have your unit registered with your OpenSIPS.
Best regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 12.09.2016 18:15, Eric Freeman wrote:
I am very new to opensips and I want to use it for one application. I have installed version: opensips 2.2.1 (x86_64/linux)
on Ubuntu 14.04.2 LTS
Release: 14.04
I have a video conference unit and I want to be able make SIP calls to other video conference
units over the Internet.
I believe I need to set up some type of routing to route calls from this device out
to the Internet. I believe I need to add some commands to the route section of the configuration file. Can someone please let me know what commands I need to the config to allow the unit to call other units via sip over the Internet. I am using the “default routing” from the residential script.
I have registered the video conference unit to the opensips server
Contact:: sip:LifeSize at 10.89.71.12;transport=UDP<mailto:sip:LifeSize at 10.89.71.12;transport=UDP> Q=
from config
listen=udp:10.88.23.13:5060 # CUSTOMIZE ME
listen=tcp:10.88.23.13:5060 # CUSTOMIZE ME
Please let me know if you need more information.
Thank you,
Eric Freeman
-------------------------------------------------------------------------------
This e-mail is intended only for the named person or entity to which it is addressed and contains valuable business
information that is privileged, confidential and/or otherwise protected from disclosure. If you received this e-mail
in error, any review, use, dissemination, distribution or copying of this e-mail is strictly prohibited. Please notify us
immediately of the error via e-mail to disclaimer at email-abuse.com<mailto:disclaimer at email-abuse.com> and please delete the e-mail from your system,
retaining no copies in any media. We appreciate your cooperation.
-------------------------------------------------------------------disc99999999
_______________________________________________
Users mailing list
Users at lists.opensips.org<mailto:Users at lists.opensips.org>
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20160930/02d989a3/attachment-0001.htm>
More information about the Users
mailing list