[Asterisk-Users] clid and src fields wrong in cdr SOLVED

asterisk at frameweb.it asterisk at frameweb.it
Thu Feb 9 05:35:35 MST 2006


Today I noticed that junghanns released the bristuffed version of asterisk
1.2.4 (it was .1.2.2 last week, when I installed)
http://www.junghanns.net/downloads/bristuff-0.3.0-PRE-1l.tar.gz

Downloading and installing that solved my problem

Andrea


                                                                           
             asterisk at frameweb                                             
             .it                                                           
             Sent by:                                                   To 
             asterisk-users-bo         <asterisk-users at lists.digium.com>   
             unces at lists.digiu                                          cc 
             m.com                                                         
                                                                   Subject 
                                       [Asterisk-Users] clid and src       
             09/02/2006 12.32          fields wrong in cdr                 
                                                                           
                                                                           
             Please respond to                                             
              Asterisk Users                                               
              Mailing List -                                               
              Non-Commercial                                               
                Discussion                                                 
             <asterisk-users at l                                             
             ists.digium.com>                                              
                                                                           
                                                                           




Hi all,
I have a strange problem, regarding zap channels and cdr.

I am using asterisk bristuffed version
Asterisk 1.2.2-BRIstuffed-0.3.0-PRE-1i, Copyright (C) 1999 - 2006 Digium,
Inc. and others.

with two billion ISDN cards. I also installed asterisk addons, last stable
version via cvs

internal calls, or calls starting from internal sip or iax phone are
recorded in the cdr all without any problem

incoming external calls, reaching as via 1 of the two billion cards, have
problems in cdr recording.
If the call reach channel 4 or 5, which are the 2 channels of the second
zap group, everything is OK
If the call reach channel 1 or 2, which are the 2 channels of the FIRST zap
group, everything is OK but src and clid, wich contain strange symbols
(example 'xƒ
' ora '' and so on)

More interesting, when the call arrives on one of these 2 channels (1 or 2)
and is routed to one internal SIP Phone, the phone display
correctly shows the CallerID. So it means tha CallerID reach the * box

If I look at the full log, I can see:

Feb  9 11:00:35 DEBUG[25990] cdr_addon_mysql.c: cdr_mysql: inserting a CDR
record.
Feb  9 11:00:35 DEBUG[25990] cdr_addon_mysql.c: cdr_mysql: SQL command as
follows: INSERT INTO cdr
(calldate,clid,src,dst,dcontext,channel,dstchannel,lastapp,lastdata,duration,billsec,disposition,amaflags,accountcode)

 VALUES ('2006-02-09 11:00:30','xƒ
','xƒ
','0108680580','custom-did-route',
'Zap/2-1','SIP/580-2357','Dial','SIP/580|25|tr',5,2,'ANSWERED',3,'')
Feb  9 11:00:35 DEBUG[25990] pbx.c: Function result is 'xƒ
'
Feb  9 11:00:35 DEBUG[25990] pbx.c: Function result is 'xƒ
'
Feb  9 11:00:35 DEBUG[25990] pbx.c: Function result is '0108680580'
Feb  9 11:00:35 DEBUG[25990] pbx.c: Function result is 'custom-did-route'
Feb  9 11:00:35 DEBUG[25990] pbx.c: Function result is 'Zap/2-1'
Feb  9 11:00:35 DEBUG[25990] pbx.c: Function result is 'SIP/580-2357'
Feb  9 11:00:35 DEBUG[25990] pbx.c: Function result is 'Dial'
Feb  9 11:00:35 DEBUG[25990] pbx.c: Function result is 'SIP/580|25|tr'
Feb  9 11:00:35 DEBUG[25990] pbx.c: Function result is '2006-02-09
11:00:30'
Feb  9 11:00:35 DEBUG[25990] pbx.c: Function result is '2006-02-09
11:00:33'
Feb  9 11:00:35 DEBUG[25990] pbx.c: Function result is '2006-02-09
11:00:35'
Feb  9 11:00:35 DEBUG[25990] pbx.c: Function result is '5'
Feb  9 11:00:35 DEBUG[25990] pbx.c: Function result is '2'
Feb  9 11:00:35 DEBUG[25990] pbx.c: Function result is 'ANSWERED'
Feb  9 11:00:35 DEBUG[25990] pbx.c: Function result is 'DOCUMENTATION'
Feb  9 11:00:35 DEBUG[25990] pbx.c: Function result is '(null)'
Feb  9 11:00:35 DEBUG[25990] pbx.c: Function result is
'asterisk-25591-1139479230.10'
Feb  9 11:00:35 DEBUG[25990] pbx.c: Function result is '(null)'

while in the other 2 channels:
Feb  9 10:57:13 DEBUG[25689] cdr_addon_mysql.c: cdr_mysql: inserting a CDR
record.
Feb  9 10:57:13 DEBUG[25689] cdr_addon_mysql.c: cdr_mysql: SQL command as
follows: INSERT INTO cdr
(calldate,clid,src,dst,dcontext,channel,dstchannel,lastapp,lastdata,duration,billsec,disposition,amaflags,accountcode)

 VALUES ('2006-02-09
10:57:08','0108680550','0108680550','0108680580','custom-did-route',
'Zap/4-1','SIP/580-1b7c','Dial','SIP/580|25|tr',5,3,'ANSWERED',3,'')
Feb  9 10:57:13 DEBUG[25689] pbx.c: Function result is '0108680550'
Feb  9 10:57:13 DEBUG[25689] pbx.c: Function result is '0108680550'
Feb  9 10:57:13 DEBUG[25689] pbx.c: Function result is '0108680580'
Feb  9 10:57:13 DEBUG[25689] pbx.c: Function result is 'custom-did-route'
Feb  9 10:57:13 DEBUG[25689] pbx.c: Function result is 'Zap/4-1'
Feb  9 10:57:13 DEBUG[25689] pbx.c: Function result is 'SIP/580-1b7c'
Feb  9 10:57:13 DEBUG[25689] pbx.c: Function result is 'Dial'
Feb  9 10:57:13 DEBUG[25689] pbx.c: Function result is 'SIP/580|25|tr'
Feb  9 10:57:13 DEBUG[25689] pbx.c: Function result is '2006-02-09
10:57:08'
Feb  9 10:57:13 DEBUG[25689] pbx.c: Function result is '2006-02-09
10:57:10'
Feb  9 10:57:13 DEBUG[25689] pbx.c: Function result is '2006-02-09
10:57:13'
Feb  9 10:57:13 DEBUG[25689] pbx.c: Function result is '5'
Feb  9 10:57:13 DEBUG[25689] pbx.c: Function result is '3'
Feb  9 10:57:13 DEBUG[25689] pbx.c: Function result is 'ANSWERED'
Feb  9 10:57:13 DEBUG[25689] pbx.c: Function result is 'DOCUMENTATION'
Feb  9 10:57:13 DEBUG[25689] pbx.c: Function result is '(null)'
Feb  9 10:57:13 DEBUG[25689] pbx.c: Function result is
'asterisk-25591-1139479028.6'
Feb  9 10:57:13 DEBUG[25689] pbx.c: Function result is '(null)'

I tried several configuration, all the same problem.
here are my files:
asterisk01:/etc/asterisk # cat /etc/zaptel.conf
# hfc-s pci a span definition
# most of the values should be bogus because we are not really zaptel
loadzone=it
defaultzone=it

span=1,1,3,ccs,ami
bchan=1-2
dchan=3

span=2,1,3,ccs,ami
bchan=4-5
dchan=6



asterisk01:/etc/asterisk # cat /etc/asterisk/zapata.conf
;# Flash Operator Panel will parse this file for zap trunk buttons
;# AMPLABEL will be used for the display labels on the buttons

;# %c Zap Channel number
;# %n Line number
;# %N Line number, but restart counter
;# Example:
;# ;AMPLABEL:Channel %c - Button %n

;# For Zap/* buttons use the following
;# (where x=number of buttons to dislpay)
;# ;AMPWILDCARDLABEL(x):MyLabel


[channels]
language=it

; include zap extensions defined in AMP
#include zapata_additional.conf

; XTDM20B Port #1,2 plugged into PSTN
;AMPLABEL:Channel %c - Button %n

signalling = bri_cpe_ptmp ;p2mp TE mode port1/(card1)
faxdetect=incoming
usecallerid=yes
echocancel=yes
echocancelwhenbridged=no
echotraining=800
hidecallerid=no
callerid=asreceived
group = 1
context=from-pstn
channel => 1-2

signalling = bri_cpe_ptmp ;p2mp TE mode port2/(card2)
faxdetect=incoming
usecallerid=yes
echocancel=yes
echocancelwhenbridged=no
echotraining=800
hidecallerid=no
callerid=asreceived
group = 2
context=from-pstn
channel => 4-5

I have no zapata_additional.conf file on my box.

Last things. If I restart the software, via amportal stop and start, the
FIRST, (and only the FIST) call incoming
on channels 1 or 2 is correctly recorded in the cdr.....................

other info: opensuse Linux 10.0;

Linux asterisk01 2.6.13-15.7-smp #1 SMP Tue Nov 29 14:32:29 UTC 2005 i686
i686 i386 GNU/Linux

I think it is a crazy situation, but any help will be greatly appreciated..


Andrea



Chi ricevesse questa mail per errore e' gentilmente pregato di cancellarla.

Visitate il sito http://www.frameweb.it
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

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


More information about the asterisk-users mailing list