I am using vicidialnow 1.2CE with sangoma PRI card.
for hangup cause the VD_hanupg.agi is not logging the details of the call made in vicidial_log table .but it was working before.i used this details to get hangup causes details for the cause like 16 , 17 ,18 ,31.etc.
can you please explain why this is not working suddenly.
***************************************************
my CLI :
-- Channel 0/1, span 1 got hangup request, cause 31
-- Hungup 'Zap/1-1'
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing Hangup("SIP/112-08e26c50", "") in new stack
== Spawn extension (default, 9986661718, 3) exited non-zero on 'SIP/112-08e26c50'
-- Executing DeadAGI("SIP/112-08e26c50", "call_log.agi|h") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/call_log.agi
-- AGI Script call_log.agi completed, returning 0
-- Executing DeadAGI("SIP/112-08e26c50", "VD_hangup.agi|--HVcauses--PRI-----NODEBUG-----31-----CHANUNAVAIL----------") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/VD_hangup.agi
-- AGI Script VD_hangup.agi completed, returning 0
-- Executing DeadAGI("SIP/112-08e26c50", "iTECS_hangup.agi|--HVcauses--PRI-----NODEBUG-----31-----CHANUNAVAIL----------") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/iTECS_hangup.agi
-- AGI Script iTECS_hangup.agi completed, returning 0
== Parsing '/etc/asterisk/manager.conf': Found
*******************************************************
Zapat.conf
autogenerated by /usr/local/sbin/config-zaptel do not hand edit
;Zaptel Channels Configurations (zapata.conf)
;
;For detailed zapata options, view /etc/asterisk/zapata.conf.orig
[trunkgroups]
[channels]
context=default
usecallerid=yes
hidecallerid=no
callwaiting=yes
pridialplan=unknown
prilocaldialplan=unknown
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes
relaxdtmf=yes
rxgain=0.0
txgain=0.0
group=1
callgroup=1
pickupgroup=1
immediate=no
priindication=outofband
callprogress=yes
;Sangoma A101 port 1 [slot:12 bus:3 span:1] <wanpipe1>
switchtype=euroisdn
context=from-pstn
group=0
signalling=pri_cpe
channel =>1-15,17-31
*************************************************
My dial plan
exten => _X.,1,Set,CALLERID(number)=4466XXXX
exten => _X.,n,Monitor(gsm,${TIMESTAMP}_${EXTEN}_${CALLERID(num)},b)
;exten => _X.,n,AGI(call_log.agi,${EXTEN})
exten => _X.,n,Dial(Zap/g0/${EXTEN},,tTo);
exten => _X.,n, Hangup();
*******************************************************
my crontab
### keepalive script for astguiclient processes
* * * * * /usr/share/astguiclient/ADMIN_keepalive_ALL.pl
### kill Hangup script for Asterisk updaters
* * * * * /usr/share/astguiclient/AST_manager_kill_hung_congested.pl
### updater for voicemail
* * * * * /usr/share/astguiclient/AST_vm_update.pl
### updater for conference validator
* * * * * /usr/share/astguiclient/AST_conf_update.pl
### flush queue DB table every hour for entries older than 1 hour
#11 * * * * /usr/share/astguiclient/AST_flush_DBqueue.pl -q
### fix the vicidial_agent_log once every hour
#33 * * * * /usr/share/astguiclient/AST_cleanup_agent_log.pl
### updater for VICIDIAL hopper
* * * * * /usr/share/astguiclient/AST_VDhopper.pl -q
### adjust the GMT offset for the leads in the vicidial_list table
1 1,7 * * * /usr/share/astguiclient/ADMIN_adjust_GMTnow_on_leads.pl --debug --postal-code-gmt
### reset several temporary-info tables in the database
#2 1 * * * /usr/share/astguiclient/AST_reset_mysql_vars.pl
### optimize the database tables within the asterisk database
#3 1 * * * /usr/share/astguiclient/AST_DB_optimize.pl
## adjust time on the server with ntp
#30 * * * * /usr/sbin/ntpdate -u 18.145.0.30 2>/dev/null 1>&2
### VICIDIAL agent time log weekly and daily summary report generation
#2 0 * * 0 /usr/share/astguiclient/AST_agent_week.pl
#22 0 * * * /usr/share/astguiclient/AST_agent_day.pl
### VICIDIAL campaign export scripts (OPTIONAL)
#32 0 * * * /usr/share/astguiclient/AST_VDsales_export.pl
#42 0 * * * /usr/share/astguiclient/AST_sourceID_summary_export.pl
### remove old vicidial logs and asterisk logs more than 2 days old
#28 0 * * * /usr/bin/find /var/log/astguiclient -maxdepth 1 -type f -mtime +2 -print | xargs rm -f
#29 0 * * * /usr/bin/find /var/log/asterisk -maxdepth 3 -type f -mtime +2 -print | xargs rm -f
### Delete XFER form vicidial_auto_calls run every 5 minutes
5 * * * * /usr/bin/php -q /var/www/html/testdel/deleteXFER.php
*************************************************
PLease help me , waht could be reason....i think vicidial_log should log all the calls dialed.