[OpenSIPS-Users] Inbound call not works

spady antonio.spirandelli at longwave.eu
Thu Jul 28 10:58:37 CEST 2011


Hi all, I am getting closer to solution. After many tests and changes I
understood that the domain into From HEADER of INVITE was not present into
DOMAIN table of mysql. After added it the error message into "ngrep" is
changed; now it's

U 2011/07/28 04:49:40.126784 172.16.52.139:5060 -> 172.16.52.123:5060
SIP/2.0 404 Not Found.
Via: SIP/2.0/UDP 172.16.52.123:5060;branch=z9hG4bK41cebffd;rport=5060.
From: "Thomson 3950" <sip:3950 at 172.16.52.139>;tag=as6de7a212.
To:
<sip:6000 at 172.16.52.139>;tag=377ee575c0f232753ada2b7982794fac-4408.
Call-ID: 54925a5c3d5c4e33733f3d3418832488 at 172.16.52.139.
CSeq: 102 INVITE.
Server: OpenSIPS (1.6.3-notls (i386/linux)).
Content-Length: 0.

OK I found,after some DBG, that user 6000 is not present into usrloc table.
See below:

Jul 28 04:21:31 opensips /usr/local/opensips_proxy/sbin/opensips[3371]:
DBG:dialplan:dp_translate_f: input is 6000
Jul 28 04:21:31 opensips /usr/local/opensips_proxy/sbin/opensips[3371]:
DBG:dialplan:translate: regex operator testing
Jul 28 04:21:31 opensips /usr/local/opensips_proxy/sbin/opensips[3371]:
DBG:dialplan:test_match: test_match:[0] 6
Jul 28 04:21:31 opensips /usr/local/opensips_proxy/sbin/opensips[3371]:
DBG:dialplan:translate: found a matching rule 0xaf1d422c: pr 0, match_exp ^6
Jul 28 04:21:31 opensips /usr/local/opensips_proxy/sbin/opensips[3371]:
DBG:dialplan:translate: the rule's attrs are usrloc
Jul 28 04:21:31 opensips /usr/local/opensips_proxy/sbin/opensips[3371]:
DBG:dialplan:translate: the copied attributes are: usrloc
Jul 28 04:21:31 opensips /usr/local/opensips_proxy/sbin/opensips[3371]:
DBG:dialplan:rule_translate: null replacement
Jul 28 04:21:31 opensips /usr/local/opensips_proxy/sbin/opensips[3371]:
DBG:dialplan:dp_translate_f: input 6000 with dpid 0 => output
Jul 28 04:21:31 opensips /usr/local/opensips_proxy/sbin/opensips[3371]:
usrloc
Jul 28 04:21:31 opensips /usr/local/opensips_proxy/sbin/opensips[3371]:
DBG:core:comp_scriptvar: str 20 : usrloc
Jul 28 04:21:31 opensips /usr/local/opensips_proxy/sbin/opensips[3371]:
DBG:registrar:lookup: '6000 at 172.16.52.139' Not found in usrloc

As you can see 6000 is not present BUT if I call this user by OPENSIPS user
it works. 6000 is an alias for xxxx at yyyy.com user. 
So now what is not clear is how OpenSIPS works if it receive a call from
inside site and from outside site.
I mean, why if I call number 6000 ( that's an alias fro user xxxx at yyyy.com )
from opensips's user i can reach it BUT if I call same number from outside (
in my case from asterisk box ) does not work???
Regards.


--
View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/Inbound-call-not-works-tp6625495p6629161.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.



More information about the Users mailing list