Artifex Maximus
2006-Dec-01 06:27 UTC
[asterisk-users] Asterisk as bridge, strange ${EXTEN} values
Hello, I have this setup: Telco --PRI(g1,ext-incoming)--> Asterisk TE405P --PRI(g2,int-incoming)--> Alcatel OXO extensions.conf: [ext-incoming] exten => _X.,1,Noop exten => _X.,n,SetVar(CALLFILENAME=${TIMESTAMP:0:4}/${TIMESTAMP:4:2}/${TIMESTAMP:6:2}/${TIMESTAMP}-${UNIQUEID}-${EXTEN}) exten => _X.,n,Monitor(wav,${CALLFILENAME},b) exten => _X.,n,Dial(Zap/g2/${EXTEN}) exten => h,1,Noop exten => h,n,Noop(Process ${CALLFILENAME}) [int-incoming] exten => _X.,1,Noop exten => _X.,n,SetVar(CALLFILENAME=${TIMESTAMP:0:4}/${TIMESTAMP:4:2}/${TIMESTAMP:6:2}/${TIMESTAMP}-${UNIQUEID}-${EXTEN}) exten => _X.,n,Monitor(wav,${CALLFILENAME},b) exten => _X.,n,Dial(Zap/g1/${EXTEN}) exten => h,1,Noop exten => h,n,Noop(Process ${CALLFILENAME}) The problem that I have wav file and cdr(dst) records with "wrong" phone number but real conversation. I mean wrong phone numbers but works like good because there is conversation. So Dial is work because of conversation but dst field and filename is "wrong". How is it happen? If Dial is good then SetVar must be good as well. Isn't it? My system is FC5 with latest stable versions (zaptel 1.2.11, libpri 1.2.4, asterisk 1.2.13). Any idea where should be the problem? bye, Zsolt