Hi,
I've been testing ser for the past few days and I ran into a little problem with search_append() and replace(). I have a string let's say: some_text If I do search_append("some_", "more_"); I get some_more_text which is great. However if I try to do a replace("some_more_text", "no_text'); it fails. Is this a known issue? Are there any workarounds? I have tried to verify the problem with the current CVS but I couldn't get it to start because all the modules that depend on a db fail to initialize.
Thank you, Alex.
Hello,
On 10/26/2003 7:12 AM, Alexandru Deac wrote:
Hi,
I've been testing ser for the past few days and I ran into a little problem with search_append() and replace(). I have a string let's say: some_text If I do search_append("some_", "more_"); I get some_more_text which is great. However if I try to do a replace("some_more_text", "no_text'); it fails. Is this a known issue? Are there any workarounds?
these two functions operate only on the original message -- so if you call first search_append("some_", "more_") and then you want to replace the previous built texts using replace("some_more_text", "no_text') that is not possible yet. These functions create some diffs to the original message and are applied when the message is wired again.
I have tried to verify the problem with the current CVS but I couldn't get it to start because all the modules that depend on a db fail to initialize.
Have you compiled the mysql module? It is not compiled by default -- try using 'make modules modules=modules/mysql' from sip_router directory, and then 'make install-modules include_modules="mysql"'.
Best regards, }Daniel
Thank you, Alex.
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
On Sunday 26 October 2003 04:39, you wrote:
Hello,
On 10/26/2003 7:12 AM, Alexandru Deac wrote:
Hi,
I've been testing ser for the past few days and I ran into a little problem with search_append() and replace(). I have a string let's say: some_text If I do search_append("some_", "more_"); I get some_more_text which is great. However if I try to do a replace("some_more_text", "no_text'); it fails. Is this a known issue? Are there any workarounds?
these two functions operate only on the original message -- so if you call first search_append("some_", "more_") and then you want to replace the previous built texts using replace("some_more_text", "no_text') that is not possible yet. These functions create some diffs to the original message and are applied when the message is wired again.
Thanks that explains quite a few things now.
I have tried to verify the problem with the current CVS but I couldn't get it to start because all the modules that depend on a db fail to initialize.
Have you compiled the mysql module? It is not compiled by default -- try using 'make modules modules=modules/mysql' from sip_router directory, and then 'make install-modules include_modules="mysql"'.
Yes I have enabled the module in the Makefile and it built without errors. The problems seems to be with the bind_dbmod() which fails during mod_init() Also the pdt module is mising the new db_url argument for bind_dbmod().
Alex.
Best regards, }Daniel
On 26-10 11:29, Alexandru Deac wrote:
Thanks that explains quite a few things now.
I have tried to verify the problem with the current CVS but I couldn't get it to start because all the modules that depend on a db fail to initialize.
Have you compiled the mysql module? It is not compiled by default -- try using 'make modules modules=modules/mysql' from sip_router directory, and then 'make install-modules include_modules="mysql"'.
Yes I have enabled the module in the Makefile and it built without errors. The problems seems to be with the bind_dbmod() which fails during mod_init() Also the pdt module is mising the new db_url argument for bind_dbmod().
It looks like you are playing with unstable branch. I am currently extending the database api and modules that depend on db will not work for a while, more changes will follow.
I would recommend you to use stable branch instead.
Jan.