Thanks it worked.. I added the lines you had extra
________________________________
From: David Villasmil [mailto:david.villasmil.work@gmail.com]
Sent: Tuesday, June 17, 2008 3:35 PM
To: Ali Jawad
Cc: users(a)lists.openser.org
Subject: Re: [OpenSER-Users] Enter Dialog info to database
Are you sure? that's strange... here's my cfg:
modparam("dialog","db_url","mysql://openser:xxxxxxx@localhost/openser")
modparam("dialog", "enable_stats", 0)
modparam("dialog", "dlg_flag", 5)
modparam("dialog", "default_timeout", 21600)
modparam("dialog", "dlg_match_mode", 1)
modparam("dialog", "db_mode", 1)
if (method=="INVITE") {
# Store Dialog in db
setflag(5);
You have to look at the table while the call is online.
----- Original Message -----
From: Ali Jawad <mailto:ali.jawad@splendor.net>
To: David Villasmil <mailto:david.villasmil.work@gmail.com>
Cc: users(a)lists.openser.org
Sent: Tuesday, June 17, 2008 2:28 PM
Subject: RE: [OpenSER-Users] Enter Dialog info to database
Well I did :-) and it did not work, no info is written into the
db
With Regards
Ali Jawad
System Administrator
Splendor Telecom (
www.splendor.net)
Beirut, Lebanon
Phone: +961 1 373725
Fax: + 961 1 375554
________________________________
From: David Villasmil [mailto:david.villasmil.work@gmail.com]
Sent: Tuesday, June 17, 2008 3:27 PM
To: Ali Jawad
Subject: Re: [OpenSER-Users] Enter Dialog info to database
try it and you'll see
;)
On Tue, Jun 17, 2008 at 2:22 PM, Ali Jawad
<ali.jawad(a)splendor.net> wrote:
Hi I am setting the flag as follows
if (is_method("INVITE")) {
setflag(4);
}
Is that the correct way ?
With Regards
________________________________
From: David Villasmil [mailto:david.villasmil.work@gmail.com]
Sent: Tuesday, June 17, 2008 3:21 PM
To: Ali Jawad
Subject: Re: [OpenSER-Users] Enter Dialog info to database
You have to set the flag on incoming INVITEs to enable db on the
dialog.
On Tue, Jun 17, 2008 at 2:18 PM, Ali Jawad
<ali.jawad(a)splendor.net> wrote:
Hi All
I have the following dialog module setup
# ----- Dialog -----------
modparam("dialog",
"db_url","mysql://openser:xxxxxxxxxxxxx@localhost/openser")
modparam("dialog", "db_mode", 1)
modparam("dialog", "dlg_flag", 4)
modparam("dialog", "enable_stats", 1)
modparam("dialog", "rr_param", "did")
If I execute
/usr/local/sbin/openserctl fifo dlg_list
I get the dialogs that are taking place. However there is
nothing written into the database even for calls longer than 2 minute
Anything I missed here?
Thanks
_______________________________________________
Users mailing list
Users(a)lists.openser.org
http://lists.openser.org/cgi-bin/mailman/listinfo/users
--
This message has been scanned for viruses and
dangerous content by MailScanner <http://www.mailscanner.info/>
, and is
believed to be clean.
--
This message has been scanned for viruses and
dangerous content by MailScanner <http://www.mailscanner.info/>
, and is
believed to be clean.
--
This message has been scanned for viruses and
dangerous content by MailScanner <http://www.mailscanner.info/> , and is
believed to be clean.