<p>Hi, </p>
<p>I have installed the presence server (183) in a docker container on a VM and that's working fine Now, on same VM I have installed the dispatcher in a second container </p>
<p>Both containers are able to PING each other but dispatcher is not sending the requests to the listed presence server</p>
<p>I am using a dbtext module to store the destination sets Below is the dispatcher table </p>
<p>id(int,auto) setid(int) destination(str) socket(str) flags(int) weight(int) attrs(str) description(str) <br>
1:0:sip:sa@1721705:15060:NULL:0:1:"":"" </p>
<p><strong>and some parts of the dispatcher cfg:</strong><br>
listen=udp:1721706:5060 <br>
loadmodule "dispatcherso" <br>
modparam("dispatcher", "db_url", <br>
"text:///usr/local/opensips/etc/dispatcher") # CUSTOMIZE ME <br>
route{ <br>
if (!mf_process_maxfwd_header("10")) { <br>
sl_send_reply("483","Too Many Hops"); <br>
exit; <br>
} <br>
if ( !ds_select_dst("1","4") ) { <br>
send_reply("500","No Destination available"); <br>
exit; <br>
} <br>
t_on_failure("GW_FAILOVER"); <br>
route(RELAY); <br>
} </p>
<p><strong>The server_name portion from the presence server cfg:</strong><br>
modparam("presence", "server_address", "sip:sa@1721705:15060")</p>
<p><strong>Server startup log:</strong></p>
<p>Dec 30 06:15:39 [23185] DBG:db_text:dbt_result_new: new res with 6 cols <br>
Dec 30 06:15:39 [23185] DBG:core:db_new_result: allocate 48 bytes for result set at 0x7f7a0364e8b0 <br>
Dec 30 06:15:39 [23185] DBG:core:db_allocate_columns: allocate 168 bytes for result columns at 0x7f7a0364e8f8 <br>
Dec 30 06:15:39 [23185] DBG:core:db_allocate_rows: allocate 208 bytes for result rows and values at 0x7f7a0364e9b8 <br>
Dec 30 06:15:39 [23185] DBG:core:grep_sock_info: checking if host==us: 4==10 && [NULL] == [1721706] <br>
Dec 30 06:15:39 [23185] DBG:core:grep_sock_info: checking if host==us: 4==10 && [NULL] == [1721706] <br>
Dec 30 06:15:39 [23185] ERROR:dispatcher:ds_load_db: socket is not local to opensips (we must listen on it) -> ignoring it<br>
Dec 30 06:15:39 [23185] DBG:core:mk_proxy: doing DNS lookup <br>
Dec 30 06:15:39 [23185] DBG:dispatcher:add_dest2list: first gw ip addr [1721705]:15060 <br>
Dec 30 06:15:39 [23185] DBG:dispatcher:add_dest2list: dest [0/1] sip:sa@1721705:15060<br>
Dec 30 06:15:39 [23185] DBG:dispatcher:reindex_dests: found [1] dest sets <br>
Dec 30 06:15:39 [23185] DBG:core:db_free_columns: freeing result columns at 0x7f7a0364e8f8 <br>
Dec 30 06:15:39 [23185] DBG:core:db_free_rows: freeing 1 rows <br>
Dec 30 06:15:39 [23185] DBG:core:db_free_row: freeing row values at 0x7f7a0364e9c8 <br>
Dec 30 06:15:39 [23185] DBG:core:db_free_row: EXITDec 30 06:15:39 [23185] DBG:core:db_free_rows: freeing rows at 0x7f7a0364e9b8 </p>
<p><strong>The log when I send a SIPP request:</strong> </p>
<p>Dec 30 06:18:45 [23189] DBG:core:parse_msg: SIP Request: <br>
Dec 30 06:18:45 [23189] DBG:core:parse_msg: method: <br>
Dec 30 06:18:45 [23189] DBG:core:parse_msg: uri: sip:service-1@1721706<br>
Dec 30 06:18:45 [23189] DBG:core:parse_msg: version: <br>
Dec 30 06:18:45 [23189] DBG:core:parse_headers: flags=2 <br>
Dec 30 06:18:45 [23189] DBG:core:parse_via_param: found param type 232, = ; state=16 <br>
Dec 30 06:18:45 [23189] DBG:core:parse_via: end of header reached, state=5 <br>
Dec 30 06:18:45 [23189] DBG:core:parse_headers: via found, flags=2 <br>
Dec 30 06:18:45 [23189] DBG:core:parse_headers: this is the first via <br>
Dec 30 06:18:45 [23189] DBG:core:receive_msg: After parse_msg <br>
Dec 30 06:18:45 [23189] DBG:core:receive_msg: preparing to run routing scripts <br>
Dec 30 06:18:45 [23189] DBG:core:parse_headers: flags=100 <br>
Dec 30 06:18:45 [23189] DBG:maxfwd:is_maxfwd_present: value = 20 <br>
Dec 30 06:18:45 [23189] ERROR:dispatcher:ds_get_index: destination set [1] not found <br>
Dec 30 06:18:45 [23189] ERROR:dispatcher:ds_select_dst: destination set [1] not found <br>
Dec 30 06:18:45 [23189] DBG:core:parse_headers: flags=8 <br>
Dec 30 06:18:45 [23189] DBG:core:parse_to: end of header reached, state=10 <br>
Dec 30 06:18:45 [23189] DBG:core:parse_to: display={sut}, ruri={sip:service-1@1721706} <br>
Dec 30 06:18:45 [23189] DBG:core:get_hdr_field: [32]; uri=[sip:service-1@1721706] <br>
Dec 30 06:18:45 [23189] DBG:core:get_hdr_field: to body [sut sip:service-1@1721706<br>
] <br>
Dec 30 06:18:45 [23189] DBG:core:parse_headers: flags=ffffffffffffffff <br>
Dec 30 06:18:45 [23189] DBG:core:get_hdr_field: cseq : <1> <br>
Dec 30 06:18:45 [23189] DBG:core:get_hdr_field: content_length=607 <br>
Dec 30 06:18:45 [23189] DBG:core:get_hdr_field: found end of header <br>
Dec 30 06:18:45 [23189] DBG:core:check_ip_address: params 1721701, 127011, 0 <br>
Dec 30 06:18:45 [23189] DBG:core:destroy_avp_list: destroying list (nil) <br>
Dec 30 06:18:45 [23189] DBG:core:receive_msg: cleaning up <br>
Dec 30 06:18:45 [23190] DBG:core:parse_msg: SIP Request: <br>
Dec 30 06:18:45 [23190] DBG:core:parse_msg: method: <br>
Dec 30 06:18:45 [23190] DBG:core:parse_msg: uri: sip:service-1@1721706<br>
Dec 30 06:18:45 [23190] DBG:core:parse_msg: version: <br>
Dec 30 06:18:45 [23190] DBG:core:parse_headers: flags=2 <br>
Dec 30 06:18:45 [23190] DBG:core:parse_via_param: found param type 232, = ; state=16 <br>
Dec 30 06:18:45 [23190] DBG:core:parse_via: end of header reached, state=5 <br>
Dec 30 06:18:45 [23190] DBG:core:parse_headers: via found, flags=2 <br>
Dec 30 06:18:45 [23190] DBG:core:parse_headers: this is the first via <br>
Dec 30 06:18:45 [23190] DBG:core:receive_msg: After parse_msg <br>
Dec 30 06:18:45 [23190] DBG:core:receive_msg: preparing to run routing scripts <br>
Dec 30 06:18:45 [23190] DBG:core:parse_headers: flags=100 <br>
Dec 30 06:18:45 [23190] DBG:core:parse_to_param: tag=246a5d4fbef8342456a1a597e7170548feec <br>
Dec 30 06:18:45 [23190] DBG:core:parse_to: end of header reached, state=29 <br>
Dec 30 06:18:45 [23190] DBG:core:parse_to: display={sut}, ruri={sip:service-1@1721706} <br>
Dec 30 06:18:45 [23190] DBG:core:get_hdr_field: [74]; uri=[sip:service-1@1721706] <br>
Dec 30 06:18:45 [23190] DBG:core:get_hdr_field: to body [sut sip:service-1@1721706] <br>
Dec 30 06:18:45 [23190] DBG:core:get_hdr_field: cseq : <2> <br>
Dec 30 06:18:45 [23190] DBG:maxfwd:is_maxfwd_present: value = 70 <br>
Dec 30 06:18:45 [23190] ERROR:dispatcher:ds_get_index: destination set [1] not found <br>
Dec 30 06:18:45 [23190] ERROR:dispatcher:ds_select_dst: destination set [1] not found <br>
Dec 30 06:18:45 [23190] DBG:core:parse_headers: flags=ffffffffffffffff <br>
Dec 30 06:18:45 [23190] DBG:core:get_hdr_field: content_length=0 <br>
Dec 30 06:18:45 [23190] DBG:core:get_hdr_field: found end of header <br>
Dec 30 06:18:45 [23190] DBG:core:check_ip_address: params 1721701, 127011, 0 <br>
Dec 30 06:18:45 [23190] DBG:core:destroy_avp_list: destroying list (nil) <br>
Dec 30 06:18:45 [23190] DBG:core:receive_msg: cleaning up </p>
<p><strong>scenario file</strong><br>
<?xml version="10" encoding="ISO-8859-1" ?> <br>
<br>
<br>
<![CDATA[ <br>
PUBLISH sip:[service]-[call_number]@1721706 SIP/20 <br>
Via: SIP/20/[transport] [local_ip]:[local_port];branch=[branch] <br>
Max-Forwards: 20 <br>
From: [service] sip:[service]-[call_number]@1721706;tag=[call_number] <br>
To: sut sip:[service]-[call_number]@1721706 <br>
Call-ID: [call_id] <br>
CSeq: 1 PUBLISH <br>
Expires: 3600 <br>
Event: presence <br>
Content-Length: [len] <br>
User-Agent: Sipp v11-TLS, version 20061124 <br>
<br>
<br>
<br>
<br>
<br>
</p>
<p><strong>SIPP command</strong></p>
<p>/sipp 1721706 -sf publishxml -m 1 </p>
<p>Thanks, <br>
Surya </p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/issues/740">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOciRJfj14hkY7AW8zwj_MjuBr8WnlHks5pWJU4gaJpZM4G9plx.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/OpenSIPS/opensips/issues/740"></link>
<meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>