Issue about agi-NVA_recording recording, size is zero
Posted: Tue May 03, 2011 2:56 am
Gateway: Asterisk 1.2.30.2 vicidial 2.0.5-stable zaptel Digium TE122
Dialer: Asterisk 1.2.30.2 vicidial 2.2.1-stable
Between them, use IAX2 trunk.
extension.conf on Dialer server
iax.conf on Dialer server
extension.conf on Gateway server
iax.conf on gateway server
/var/spool/crom/root
When dial out, about 2% call log is zero, but the call continue over 1 min at least.
When I set recording at gateway, it can get the right recording file.
Check log file on dialer, the -in and -out call log file is 11:47:36, and both size are 44Byte.
The message log on dialer,
Dialer: Asterisk 1.2.30.2 vicidial 2.2.1-stable
Between them, use IAX2 trunk.
extension.conf on Dialer server
- Code: Select all
exten => _86ZXXXXXXX.,1,AGI(agi-NVA_recording.agi,BOTH------Y---N---Y)
exten => _86ZXXXXXXX.,2,Dial(${HKZH3TRUNK}/${EXTEN},,tTor)
exten => _86ZXXXXXXX.,3,Congestion
exten => _86ZXXXXXXX.,4,Hangup
iax.conf on Dialer server
- Code: Select all
register => hkzh3carrier:xxxxxx@192.168.1.39
extension.conf on Gateway server
- Code: Select all
exten => _86ZXXXXXXX.,1,Set(PATH=/home/${STRFTIME(${EPOCH},,%Y-%m-%d)})
exten => _86ZXXXXXXX.,n,Set(FILENAME=${STRFTIME(${EPOCH},,%Y-%m-%d-%H%M%S)}--${CALLERID(num)}-${EXTEN})
exten => _86ZXXXXXXX.,n,Set(MONITOR_EXEC=/etc/asterisk/scripts/mce ${PATH} ${FILENAME})
exten => _86ZXXXXXXX.,n,Monitor(wav,${PATH}/${FILENAME},mb)
exten => _86ZXXXXXXX.,n,Dial(ZAP/g1/0080${EXTEN},,tTm)
iax.conf on gateway server
- Code: Select all
register => hkzh3carrier:xxxxxx@192.168.2.38
[hkzh3carrier]
disallow=all
allow=g729
allow=gsm
allow=ulaw
allow=ilbc
type=friend
username=hkzh3carrier
secret=xxxxxx
host=dynamic
dtmfmode=rfc2833
context=default
/var/spool/crom/root
- Code: Select all
0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57 * * * * /usr/share/astguiclient/AST_CRON_audio_1_move_mix.pl
When dial out, about 2% call log is zero, but the call continue over 1 min at least.
When I set recording at gateway, it can get the right recording file.
Check log file on dialer, the -in and -out call log file is 11:47:36, and both size are 44Byte.
The message log on dialer,
- Code: Select all
[May 3 11:47:36] -- Executing [1;36;40mAGI[0;37;40m("[1;35;40mSIP/6208-b7b9f4a0[0;37;40m", "[1;35;40magi-NVA_recording.agi|BOTH------Y---N---Y[0;37;40m") in new stack
[May 3 11:47:36] -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-NVA_recording.agi
2011-05-03 11:47:36|agi-NVA_recording.agi|Perl Environment Dump:
2011-05-03 11:47:36|agi-NVA_recording.agi|BOTH||N|Y|
2011-05-03 11:47:36|agi-NVA_recording.agi|request|agi-NVA_recording.agi
2011-05-03 11:47:36|agi-NVA_recording.agi|channel|SIP/6208-b7b9f4a0
2011-05-03 11:47:36|agi-NVA_recording.agi|language|en
2011-05-03 11:47:36|agi-NVA_recording.agi|type|SIP
2011-05-03 11:47:36|agi-NVA_recording.agi|uniqueid|1304394456.412
2011-05-03 11:47:36|agi-NVA_recording.agi|callerid|6208
2011-05-03 11:47:36|agi-NVA_recording.agi|calleridname|station 6208
2011-05-03 11:47:36|agi-NVA_recording.agi|callingpres|0
2011-05-03 11:47:36|agi-NVA_recording.agi|callingani2|0
2011-05-03 11:47:36|agi-NVA_recording.agi|callington|0
2011-05-03 11:47:36|agi-NVA_recording.agi|callingtns|0
2011-05-03 11:47:36|agi-NVA_recording.agi|dnid|8613594805280
2011-05-03 11:47:36|agi-NVA_recording.agi|rdnis|unknown
2011-05-03 11:47:36|agi-NVA_recording.agi|context|default
2011-05-03 11:47:36|agi-NVA_recording.agi|extension|8613594805280
2011-05-03 11:47:36|agi-NVA_recording.agi|priority|1
2011-05-03 11:47:36|agi-NVA_recording.agi|enhanced|0.0
2011-05-03 11:47:36|agi-NVA_recording.agi|accountcode|
[May 3 11:47:36] -- AGI Script Executing Application: (Monitor) Options: (wav|/var/spool/asterisk/monitor/20110503-114736_6208_8613594805280)
[May 3 11:47:36] -- AGI Script agi-NVA_recording.agi completed, returning 0
[May 3 11:47:36] -- Executing [1;36;40mDial[0;37;40m("[1;35;40mSIP/6208-b7b9f4a0[0;37;40m", "[1;35;40mIAX2/hkzh3carrier/8613594805280||tTor[0;37;40m") in new stack
[May 3 11:47:36] -- Called hkzh3carrier/8613594805280
[May 3 11:47:36] -- Call accepted by 192.168.1.39 (format g729)
[May 3 11:47:36] -- Format for call is g729
[May 3 11:47:36] -- IAX2/hkzh3carrier-13530 is making progress passing it to SIP/6208-b7b9f4a0
[May 3 11:47:36] -- IAX2/hkzh3carrier-13530 is proceeding passing it to SIP/6208-b7b9f4a0
[May 3 11:48:11] -- IAX2/hkzh3carrier-13530 answered SIP/6208-b7b9f4a0
[May 3 11:50:40] -- Hungup 'IAX2/hkzh3carrier-13530'
[May 3 11:50:40] == Spawn extension (default, 8613594805280, 2) exited non-zero on 'SIP/6208-b7b9f4a0'
[May 3 11:50:40] -- Executing [1;36;40mDeadAGI[0;37;40m("[1;35;40mSIP/6208-b7b9f4a0[0;37;40m", "[1;35;40magi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----184-----149[0;37;40m") in new stack
[May 3 11:50:40] -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16-----ANSWER-----184-----149 completed, returning 0