The issue is with opnsips-cli version 9..3.4 that I was unable to add a
destination in the dispatcher from the OpenSIPS control panel. The reason
is that the code for adding a destination in the dispatcher is not syncing
with the control panel version 9.3.4. Although it works fine for the 3.3
version of the control panel. The solution is to open
/var/www/html/opensips-cp/web/tools/system/dispatcher/apply_changes.php and
update the query as follows:

$sql = "INSERT INTO ".$table." (setid, destination, socket, state, weight,
attrs, probe_mode, description) VALUES (?, ?, ?, ?, ?, ?, ?, ?)";

There was a very small mistake where the number of question marks was 7
earlier. It should be 8 for version 9.3.4."
_______________________________________________
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel

Reply via email to