THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#459 - Dispatcher Round Robin Logic not Working with Dispatcher Table with FQDNs
User who did this - Daniel-Constantin Mierla (miconda)
----------
Database creation is done by kamdbctl, kamctl is another tool, both using kamctlrc as config, becuase the credentials to connect to database are the same.
sip domain is optional, can be the server hostname or ip
----------
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=459#comment1591
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#459 - Dispatcher Round Robin Logic not Working with Dispatcher Table with FQDNs
User who did this - Ed James (erj01)
----------
I've got DBENGINE setup and the read/write user and read only user set up already. That link looks to me like the initial creation of the database which I wouldn't want to run again. I can log into MySQL using both read/write and readonly users and also the root user successfully. Could you tell me what the SIP_DOMAIN parameter should be pointing to in this file ? Also what does mi ds_list actually do ?
Thanks for your help.
----------
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=459#comment1590
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#459 - Dispatcher Round Robin Logic not Working with Dispatcher Table with FQDNs
User who did this - Daniel-Constantin Mierla (miconda)
----------
You need to set the DBENGINE -- maybe these notes would help a bit:
- http://www.kamailio.org/wiki/install/4.1.x/git#create_mysql_database
On the other hand, you can simply do:
kamctl mi ds_list
----------
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=459#comment1589
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#459 - Dispatcher Round Robin Logic not Working with Dispatcher Table with FQDNs
User who did this - Ed James (erj01)
----------
Thanks - do you have a working kamctlrc file as I'm having difficulty getting past the same error relating to the database engine. I've uncommented all of the entries relating to the read write user but no luck.
----------
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=459#comment1588
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
Module: sip-router
Branch: master
Commit: 1257d6832381d50280dff9133f0d5da7c4a58231
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=1257d68…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Fri Aug 15 16:14:34 2014 +0200
textopsx: documented return behavior of msg_apply_changes()
---
modules/textopsx/README | 7 +++++++
modules/textopsx/doc/functions.xml | 8 ++++++++
2 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/modules/textopsx/README b/modules/textopsx/README
index d53e2eb..3ff68fe 100644
--- a/modules/textopsx/README
+++ b/modules/textopsx/README
@@ -119,6 +119,13 @@ Chapter 1. Admin Guide
the SIP message buffer so far, using this function might change the
behaviour of your config. Do test your config properly!
+ The function returns true (1) on success. If it is failure before the
+ new content is build, the function returns false (-1), the old content
+ is still in place. If parsing of the new content is failing, the
+ function stops executions of the config file (the internal structure is
+ no longer valid for config processing, like it happens when a broken
+ message is received from network).
+
This function can be used from REQUEST_ROUTE or ONREPLY_ROUTE.
Example 1.1. msg_apply_changes() usage
diff --git a/modules/textopsx/doc/functions.xml b/modules/textopsx/doc/functions.xml
index 57d6d31..53fd113 100644
--- a/modules/textopsx/doc/functions.xml
+++ b/modules/textopsx/doc/functions.xml
@@ -16,6 +16,14 @@
the behaviour of your config. Do test your config properly!
</para>
<para>
+ The function returns true (1) on success. If it is failure before the
+ new content is build, the function returns false (-1), the old content
+ is still in place. If parsing of the new content is failing, the
+ function stops executions of the config file (the internal structure
+ is no longer valid for config processing, like it happens when a
+ broken message is received from network).
+ </para>
+ <para>
This function can be used from REQUEST_ROUTE or ONREPLY_ROUTE.
</para>
<example>
Module: sip-router
Branch: master
Commit: 55960106bbaa908057c3f619034b146fda7df48b
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=5596010…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Fri Aug 15 16:01:38 2014 +0200
textopsx: msg_apply_changes() exits config execution if result is not parsing well
- sip_msg_t structure is can be invalid
- similar behavior with the case when the message is broken from the
network, it doesn't get to config file
- reported by Marco B.
---
modules/textopsx/textopsx.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/modules/textopsx/textopsx.c b/modules/textopsx/textopsx.c
index 560f556..7e85013 100644
--- a/modules/textopsx/textopsx.c
+++ b/modules/textopsx/textopsx.c
@@ -228,8 +228,11 @@ static int msg_apply_changes_f(sip_msg_t *msg, char *str1, char *str2)
/* reparse the message */
LM_DBG("SIP message content updated - reparsing\n");
if (parse_msg(msg->buf, msg->len, msg)!=0){
- LM_ERR("parsing new sip message failed\n");
- return -1;
+ LM_ERR("parsing new sip message failed [[%.*s]]\n",
+ msg->len, msg->buf);
+ /* exit config execution - sip_msg_t structure is no longer
+ * valid/safe for config */
+ return 0;
}
return 1;