Hello, Im coding a module for my needs, and one of them is to modify the SIP message after querying some db. I decided to use the function replace_all() exported by the textops module, using the find_export() function declared in sr_module.h. The problem is that im getting a SIGSEGV when some child exec the replace_all mapped function:
Feb 11 11:29:30 [4868] DBG:core:find_cmd_export_t: found <replace_all>(2) in module textops [/usr/local/lib/openser/modules/] Feb 11 11:29:31 [4867] INFO:core:handle_sigs: child process 4868 exited by a signal 11 Feb 11 11:29:31 [4867] INFO:core:handle_sigs: core was generated Feb 11 11:29:31 [4867] INFO:core:handle_sigs: terminating due to SIGCHLD
I cant find the core generated by openser. Where is the default dir where this cores are saved?
I dont know if this is a correct way to modify a SIP message; is there a better o more apropiated way to do this?
Thanks in advance, Francisco.
Tarjeta de crédito Yahoo! de Banco Supervielle. Solicitá tu nueva Tarjeta de crédito. De tu PC directo a tu casa. www.tuprimeratarjeta.com.ar
Hi Francisco,
Please repost this on the correct email list which is "devel".
Thanks and regards, Bogdan
Francisco Seratti wrote:
Hello, Im coding a module for my needs, and one of them is to modify the SIP message after querying some db. I decided to use the function replace_all() exported by the textops module, using the find_export() function declared in sr_module.h. The problem is that im getting a SIGSEGV when some child exec the replace_all mapped function:
Feb 11 11:29:30 [4868] DBG:core:find_cmd_export_t: found <replace_all>(2) in module textops [/usr/local/lib/openser/modules/] Feb 11 11:29:31 [4867] INFO:core:handle_sigs: child process 4868 exited by a signal 11 Feb 11 11:29:31 [4867] INFO:core:handle_sigs: core was generated Feb 11 11:29:31 [4867] INFO:core:handle_sigs: terminating due to SIGCHLD
I cant find the core generated by openser. Where is the default dir where this cores are saved?
I dont know if this is a correct way to modify a SIP message; is there a better o more apropiated way to do this?
Thanks in advance, Francisco.
Tarjeta de crédito Yahoo! de Banco Supervielle.
Solicitá tu nueva Tarjeta de crédito. De tu PC directo a tu casa. www.tuprimeratarjeta.com.ar
Users mailing list Users@lists.openser.org http://lists.openser.org/cgi-bin/mailman/listinfo/users
On Monday 11 February 2008, Francisco Seratti wrote:
[..] I cant find the core generated by openser. Where is the default dir where this cores are saved?
Hi,
the core (if you enabled it) is generated in the working dir of openser if this is writeable by the process. If you don't specify a working dir, '/' will be used and in most cases you won't get a core.
I dont know if this is a correct way to modify a SIP message; is there a better o more apropiated way to do this?
Have you already looked into the avpops module? This can be used to push some DB contents into a message, or assign variables from db content. You can also rewrite many SIP fields with pseudo-variables.
Cheers,
Henning