Hi, Daniel and Frank!
Thanks for your support!
Now, I changed my scenario just a lil bit to make it easy to understand and deploy. I'm doing the following:
1. Created a server using the "Outbound" module configuration example, but add WebSocket support in it. (IP Address 192.168.1.16)
2. Created a server running as Proxy and Registrar with WebSockets support. (IP Address 192.168.1.15)
3. Registered two users (bob and
alice@enterprise.com) using WebRTC. These users sent they Register requests to the Oubount server (192.168.1.16).
4. I'm also using an external postgres database to store the user informations. In my proxy/registrar server, I've configurated "modparam("usrloc", "db_mode", 3)", so it will not store data in memory.
After register the users in my scenario, I can see the following information stored in my database (output of kamctl db show location):
id | ruid | username | domain | contact | received | path | expires | q | callid | cseq | last_modified | flags | cflags | user_agent | socket | methods | instance | reg_id
-----+----------------------+----------+----------------+------------------------------------------------+-----------------------+------+---------------------+----+------------------------+------+---------------------+-------+--------+-------------------+---------------------+---------+-------------------------------------------------+--------
277 | uloc-54203f71-10bd-2 | alice |
enterprise.com | sip:v4s0prah@o35ctmdnnruv.invalid;transport=ws | sip:
192.168.1.16:5060 | | 2014-09-22 15:31:21 | -1 | udb4shpe4dnm1jsl6016s5 | 82 | 2014-09-22 15:26:21 | 0 | 0 | JsSIP 0.4.0-devel | udp:
192.168.1.15:80 | 783 | <urn:uuid:75c837d1-740a-4c62-baa0-56a06149699e> | 1
278 | uloc-54203f71-10bc-2 | bob |
enterprise.com | sip:lr78s270@0mkf6fgtprlh.invalid;transport=ws | sip:
192.168.1.16:5060 | | 2014-09-22 15:34:02 | -1 | 5mpl9q4bkuqsnpk8r316j5 | 82 | 2014-09-22 15:29:02 | 0 | 0 | JsSIP 0.4.0-devel | udp:
192.168.1.15:80 | 783 | <urn:uuid:e92ef911-1ae4-45b1-bfc9-b5752b0f2fe1> | 1
So, I can assume that both users are registered and ready to start sessions.
Now, when I try to start a new session between then (let's say bob calling alice) what I get in the endpoint is the following message:
SIP/2.0 500 I'm terribly sorry, server error occurred (1/SL)
Via: SIP/2.0/WS 0mkf6fgtprlh.invalid;rport=33154;received=192.168.1.11;branch=z9hG4bK7711221
Call-ID: 5e1pmj2fppbgg13doi4k
CSeq: 3989 INVITE
Server: kamailio (4.1.5 (x86_64/linux))
Content-Length: 0
What I understood about this problem is that the Proxy server is trying to forward the INVITE to the Outbound server and this server does not know that to do with this message - like forward it to alice.
I'm stucked in this step.
Here you can find the configuration files that I'm using:
Outbound Server:
Proxy Server:
Thanks again!
Bruno Emer