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:[email protected]>;tag=as6de7a212.
To:
<sip:[email protected]>;tag=377ee575c0f232753ada2b7982794fac-4408.
Call-ID: [email protected].
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: '[email protected]' 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 [email protected] 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 [email protected] )
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.

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to