Hi all, I am tryng to understand how OpenSIPS works and i am playng with OpenSIPS liveCD.
I am able to register to it user and make outbound call toward asterisk machine ( is a separated server with different IP ).
The problem is when an asterisk user try to call a OpenSIPS user.
I always have these logs:
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@example.com>;tag=as6de7a212.
CSeq: 102 INVITE.
Server: OpenSIPS (1.6.3-notls (i386/linux)).
OK I found,after some DBG, that user 6000 is not present into usrloc table. See below:
As you can see 6000 is not present BUT if I call this user by OPENSIPS user it works. 6000 is an alias for firstname.lastname@example.org 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@example.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???
I was wrong at asterisk side. I had put "from domain" *'s TG that was altering From header. Now it works on both direction.
Hope my experience reported here can help someone else.