[OpenSIPS-Users] Error "ERROR:core:get_out_socket: no socket found"
Vladimir Vakulov
VVakulov at yotateam.com
Tue Sep 10 15:07:25 CEST 2013
Good afternoon.
If you try to make a call
Asterisk 1 -> Opensips -> Asterisk 2 .
But Opensips returns the error "ERROR: core: get_out_socket: no socket found", and it is not clear why it appears .
Can you please tell me which way to look.
In the lab, I use the following scheme :
Asterisk (10.90.249.1) - (10.90.249.10) Opensips (192.168.120.10) - (192.168.120.5) Asterisk
[root @ Tel-Support8 opensips-1.9.1-tls] # ip route
192.168.120.0/24 dev eth1 proto kernel scope link src 192.168.120.4
10.90.248.0/22 dev eth0 proto kernel scope link src 10.90.249.4
169.254.0.0/16 dev eth0 scope link metric 1002
169.254.0.0/16 dev eth1 scope link metric 1003
default via 10.90.248.1 dev eth0
[root at Tel-Support8 opensips-1.9.1-tls]# netstat -nlp | grep 5060
udp 0 0 127.0.0.1:5060 0.0.0.0:* 32522/opensips
udp 0 0 192.168.120.10:5060 0.0.0.0:* 32522/opensips
udp 0 0 10.90.249.10:5060 0.0.0.0:* 32522/opensips
opensips.cfg
debug = 8
memlog = 1
fork = yes
children = 4
log_stderror = no
log_facility = LOG_LOCAL0
disable_dns_blacklist = yes
mhomed = 1
auto_aliases = no
check_via = yes
dns = off
rev_dns = off
listen = udp: 10.90.249.10:5060
listen = udp: 192.168.120.10:5060
listen = udp: 127.0.0.1:5060
---- Part of route script
if (dst_ip == "10.90.249.10")
{
xlog ("Incoming Call \ n");
if (! mf_process_maxfwd_header (" 10") )
{
sl_send_reply (" 483 ", "looping");
exit;
}
if (! has_totag ())
{
# Initial request
record_route ();
}
else
{
# Sequential request -> obey Route indication
if (is_method ("BYE"))
{
xlog ("Its BYE message \ n");
# If we want to use RTPProxy
set_rtp_proxy_set (" 1");
unforce_rtp_proxy ();
}
loose_route ();
t_relay ();
exit;
}
# Handle cancel and re-transmissions
if (is_method ("CANCEL"))
{
if (t_check_trans ())
{
t_relay ();
}
exit;
}
# From now on we have only the initial requests
if (! is_method ("INVITE"))
{
send_reply (" 405 ", "Method Not Allowed");
exit;
}
if ($ tU! = " 4000 " && $ tU! = " 6000 " && $ tU! = " 7000 " && $ tU! = " 8000 " )
{
load_balance (" 1 ", "incoming");
if ($ retcode < 0)
{
# Load_balance (" 5 ", "incoming");
# Xlog ("Going to Busy message - Internal");
sl_send_reply (" 600 ", "Busy Everywhere");
xlog ("!! 500 !!, Service Full");
exit;
}
}
else
{
$ du = "sip: 192.168.120.5:5060";
}
# If we want to use RTPProxy
set_rtp_proxy_set (" 1");
rtpproxy_offer ("rie");
t_on_reply (" 1");
xlog ("Selected destination is: $ du \ n");
# Send it out
if (! t_relay ())
{
sl_reply_error ();
}
exit;
}
Sep 10 16:46:47 Tel-Support8 / sbin / opensips [ 32526 ]: ERROR: core: get_out_socket: no socket found
Sep 10 16:46:47 Tel-Support8 / sbin / opensips [ 32526 ]: ERROR: tm: update_uac_dst: failed to fwd to af 2 , proto 1 (no corresponding listening socket)
Sep 10 16:46:47 Tel-Support8 / sbin / opensips [ 32526 ]: ERROR: tm: t_forward_nonack: failure to add branches
Sep 10 16:46:47 Tel-Support8 / sbin / opensips [ 32526 ]: DBG: tm: t_relay_to: t_forward_nonack returned error
If you need more information plz tell me.
Regards, Vladimir.
More information about the Users
mailing list