Re: [asterisk-users] Reporting for Asterisk Call Center

2011-11-05 Thread bilal ghayyad
Dear Warren;

Thanks a lot for the reply and kindly help.

I ran the below commands and now I have the database asteriskcdrdb and the 
table cdr, also I did the configuration in the cdr_mysql.conf but until now I 
do not see entries in the database (still the table is free).

The asterisk version I am running is 1.8.4.2 and actually I selected the 
cdr_mysql from the menuselect while doing the installation, but I do not see 
cdr_mysql.so in the /usr/lib/asterisk/modules , so it is not added?

I checked the cdr.conf file and I found the following sentence (I am surprise, 
because in asterisk 1.8, it should come with it without need for the addon to 
be downloaded separately ..):

;(also, mysql is available via the asterisk-addons, due to licensing
; requirements)

So, the licesne is required? Well, why I did not see the cdr_mysql it in the 
/usr/lib/asterisk/modules/?

From the other side, do I have to add for the /etc/asterisk/modules.conf this 
line: 

load = cdr_addon_mysql.so

Or it is required only for old asterisk version?


Appreciate ur kindly help.
Regards
Bilal


 --

 
 The following script will generate an asterisk database
 with a table named
 CDR that will work with asterisk 1.8.  Be sure to
 change 'PASSWORD' with
 whatever password you want to use.
 
 SET SQL_MODE=NO_AUTO_VALUE_ON_ZERO;
 CREATE DATABASE `asterisk` DEFAULT CHARACTER SET latin1
 COLLATE
 latin1_swedish_ci;
 USE `asterisk`;
 
 CREATE TABLE IF NOT EXISTS `cdr` (
 `recid` mediumint(8) unsigned NOT NULL auto_increment
 COMMENT 'Record ID',
 `calldate` datetime NOT NULL default '-00-00
 00:00:00',
 `clid` varchar(80) NOT NULL default '',
 `src` varchar(80) NOT NULL default '',
 `dst` varchar(80) NOT NULL default '',
 `dcontext` varchar(80) NOT NULL default '',
 `channel` varchar(80) NOT NULL default '',
 `dstchannel` varchar(80) NOT NULL default '',
 `lastapp` varchar(80) NOT NULL default '',
 `lastdata` varchar(80) NOT NULL default '',
 `duration` int(11) NOT NULL default '0',
 `billsec` int(11) NOT NULL default '0',
 `disposition` varchar(45) NOT NULL default '',
 `amaflags` int(11) NOT NULL default '0',
 `accountcode` varchar(20) NOT NULL default '',
 `uniqueid` varchar(32) NOT NULL default '',
 `userfield` varchar(255) NOT NULL default '',
 PRIMARY KEY  (`recid`),
 KEY `calldate` (`calldate`),
 KEY `dst` (`dst`),
 KEY `accountcode` (`accountcode`),
 KEY `src` (`src`),
 KEY `disposition` (`disposition`),
 KEY `uniqueid` (`uniqueid`)
 ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
 
 CREATE USER 'asterisk'@'localhost' IDENTIFIED BY
 'PASSWORD';
 GRANT FILE ON * . * TO 'asterisk'@'localhost' IDENTIFIED BY
 'PASSWORD'
 WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0
 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0 ;
 GRANT INSERT ON `asterisk`.`cdr` TO
 'asterisk'@'localhost';
 
 
 If you're going to be running the mysql database on the
 same server as the
 asterisk box, the following cdr_mysql.conf should also work
 for 1.8:
 
 [global]
 hostname=localhost
 dbname=asterisk
 table=cdr
 password=PASSWORD
 user=asterisk
 port=3306
 sock=/var/lib/mysql/mysql.sock
 userfield=1
 loguniqueid=yes
 
 
 -- 
 Thanks,
 --Warren Selby, dCAP

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] Where do I find error message descriptions?

2011-11-05 Thread Thorben Jensen
Is there a place where I can find more description of error messages I
see in asterisk CLI?
I get this message very often when watching the CLI:

[Nov  4 12:12:42] ERROR[21533]: app_queue.c:3083 ring_entry: Found a
channel matching iterface SIP/213_323 while status was 1 changed to 0

I have Googled it but no answers but I found the code, but I'm no good
at C code, perhaps someone can tell me whats going on?

if (!qe-parent-ringinuse || !tmp-member-ignorebusy) {
if ((tmp-member-status == AST_DEVICE_UNKNOWN) ||
(tmp-member-status == AST_DEVICE_NOT_INUSE)) {
newstate =
ast_parse_device_state(tmp-member-interface);
if (newstate != tmp-member-status) {
ast_log(LOG_ERROR, Found a channel
matching iterface %s while status was %i changed to %i\n,
tmp-member-interface,
tmp-member-status, newstate);
update_status(qe-parent, tmp-member,
newstate);
}
}

Regards
Thorben

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] CallerID inconsistently presented through ISDN/cellular networks

2011-11-05 Thread giovanni.v

Il 04/11/2011 9.32, Olivier ha scritto:

I don't know how Telcos manage their networks.
I would have naturally thought that going from one point to another in
this network would always pass through the same set of equipements.


It was ... about 30 (or more) years ago, today most moved from switched 
network to packet network.



Maybe it's not the case and specifically when the end destination is a
cellphone and there is a large gateway between the landline and the
mobile networks.


I think most is carried on ss7(*) over ip, passing through a wide range 
of equipments from many manufacturers. Each of these could have it's own 
bugs or inaccurate configuration.



Is this reasonning correct ?


I think it is, you are facing some internetwork problem out of your control.

Anyway you're lucky, changing the caller presentation number to anything 
that not belongs to the subscriber circuit would be simply impossible 
here due to regulations.


(*) - http://www.ss7-training.net/index.html

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users