Ringall strategy on CDR

hendrikm
Joined: Fri 26 of Sep, 2008

Ringall strategy on CDR

Posted:Fri 26 of Sep, 2008 (09:58 UTC)
Good day,

We currently have a problem on our asterisk server currently writing all the data into the cdrs.

Example:
— SIP/2009-4597d8b8 is ringing
— SIP/2010-438c6640 is ringing
— SIP/2017-4333af10 is ringing
— SIP/2019-43d50a80 is ringing
— SIP/2017-4333af10 is ringing
— SIP/2008-434cbe70 is ringing
— SIP/2019-43326cb0 is ringing
— SIP/2009-4597d8b8 is ringing
— SIP/2010-438c6640 is ringing
— SIP/2019-43d50a80 is ringing
— SIP/2017-4333af10 is ringing
— SIP/2008-434cbe70 is ringing
— SIP/2009-4597d8b8 is ringing
— SIP/2010-438c6640 is ringing

All of this will be part of the Master.csv file, and then been written into the mysql db.

The problem with this is that it the creates a problem when pulling the stats for total calls, as the stats are incorrect.

Now in the cdr database there is a column disposision which stats if the call has been answered or not. This helps when issueing the query but on our setup the phones log into a queue and this also show in the cdr's. There is no indication in the cdr's which are actual calls and which are the agents that are logging into the queues.

We are running Asterisk 1.4.17.

Is anyone aware of a fix for this?

Could it be with the structure of the dialplan:

[macro-didRouteOther123]
    exten => s,1,Answer()
    exten => s,n,Wait(1)
    exten => s,n,Playback(custom/${ARG3})
    ;exten => s,n,Playback(custom/${ARG2})
    ;exten => s,n,Playback(custom/${ARG3})
    exten => s,n,Set(DIR=/var/spool/asterisk/monitor/${TIMESTAMP:0:4}/${TIMESTAMP:4:2}/${TIMESTAMP:6:2})
    exten => s,n,System(/bin/mkdir -p ${DIR})
    exten => s,n,Set(FILENAME=${TIMESTAMP}-${UNIQUEID})
    exten => s,n,Set(MONITOR_FILENAME=${DIR}/${FILENAME})
    exten => s,n,Set(CALLERID(name)=${ARG4})
    exten => s,n,Set(CDR(accountcode)=${ARG4})
    ;#exten => s,n,Monitor(wav49,${MONITOR_FILENAME},mb)
    exten => s,n,GotoIfTime(06:00-23:00|mon-fri|*|*?internal,${ARG5},1)
    exten => s,n,GotoIfTime(08:00-23:00|sat-sun|*|*?internal,${ARG5},1)
    exten => s,n,Goto(internal,6611,1)

    exten => 1,1,Voicemail(2000)
    exten => 1,n,Hangup()

    exten => 3,1,Background(custom/banner1)
    exten => 3,n,Goto(internal,${ARG5},1)

    exten => 4,1,Background(custom/banner2)
    exten => 4,n,Goto(internal,${ARG5},1)


Any suggestions would be appreciated as this has been an ongoing issue and we have failed to get it working thus far.