Hopefully the collective hive mind can help with this one, as I have little 
experience of using TCP in this manner and neither does a friendly Kamailio 
expert I know personally. 

I'm replacing a closed box thing that accepts connections from various nodes 
over TCP. They send INVITEs and REGISTERs over that TCP socket and expect to 
receive inbound calls over the same established TCP socket. 

Struggling to make Kamailio behave the same way, but it should be possible. 

The first time it receives a message, I add the sender to the dispatcher as 
follows;

jsonrpc_exec('{"jsonrpc": "2.0", "method": "dispatcher.add", "params": [5, 
"sip:$si:$sp;transport=tcp", 0, "socket=tcp:127.0.0.1:5776"], "id": 1}');

This works great, but despite setting the socket to use there, when a call 
later comes in and it's routed to one of the dispatcher nodes that's been added 
in this way it fails because Kamailio attempts to open a new connection to the 
IP / PORT rather than having kept the socket open from the earlier message and 
reusing the same connection/.

Any ideas? I get the feeling I'm missing something obvious! 

Ross
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
  * [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to