[Users] How can i make my OpenSER server with presence module work properly with the db_text database?

Kc Ayuba kc.ayuba at gmail.com
Fri Feb 2 14:57:01 CET 2007


Hi,
I'm trying to use db_text database with the presence module of OpenSER(1.2.x
).
User agent is X-Lite(3.0). When I try to send a REGISTER message to
OpenSER,  OpenSER still works.
But if i sent a SUBSCRIBE or a PUBLISH message, then openser crashes.
If i use the MySQL database, then everything works just fine. But i prefer
to use the db_text database.
Here is the core file that was generated when OpenSER crashed.

Core generated:

Program terminated with signal 11, Segmentation fault.
#0 0xa7ced659 in msg_active_watchers_clean (ticks=100, param=0x0) at
subscribe.c:610
610 subs.event_id.len = strlen(row_vals[event_id_col].val.str_val.s);
(gdb) bt
#0 0xa7ced659 in msg_active_watchers_clean (ticks=100, param=0x0) at
subscribe.c:610
#1 0x080a3f6c in timer_ticker () at timer.c:141
#2 0x0806b51f in main_loop () at main.c:724
#3 0x0806d43b in main (argc=3, argv=0xaff0a2e4) at main.c:1438
(gdb) frame 0
#0 0xa7ced659 in msg_active_watchers_clean (ticks=100, param=0x0) at
subscribe.c:610
610 subs.event_id.len = strlen(row_vals[event_id_col].val.str_val.s);
(gdb) list
605
606 subs.from_domain.s = row_vals[from_domain_col].val.str_val.s;
607 subs.from_domain.len = strlen(row_vals[from_domain_col].val.str_val.s);
608
609 subs.event_id.s = row_vals[event_id_col].val.str_val.s;
610 subs.event_id.len = strlen(row_vals[event_id_col].val.str_val.s);
611
612 subs.to_tag.s = row_vals[to_tag_col].val.str_val.s;
613 subs.to_tag.len = strlen(row_vals[to_tag_col].val.str_val.s);
614
(gdb)
615 subs.from_tag.s = row_vals[from_tag_col].val.str_val.s;
616 subs.from_tag.len = strlen(row_vals[from_tag_col].val.str_val.s);
617
618 subs.callid.s = row_vals[callid_col].val.str_val.s;
619 subs.callid.len = strlen(row_vals[callid_col].val.str_val.s);
620
621 subs.contact.s = row_vals[contact_col].val.str_val.s;
622 subs.contact.len = strlen(row_vals[contact_col].val.str_val.s);
623
624 subs.cseq = row_vals[cseq_col].val.int_val;


I really hope that someone can help me with this problem. Thanks in advance.

Kind regards,

Kc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kamailio.org/pipermail/users/attachments/20070202/c5b980bf/attachment.htm 


More information about the Users mailing list