Hi everybody,
 
Firstly I'm going to describe the scenario where I'm working. I use a E400P with Asterisk CVS-05/22/03-11:14:50, and I'm working with asterisk trow AGI scripts (Perl).
 
The configuration of extension.conf is:
   
    exten =>_s,1,Answer
    exten =>_s,2,AGI,script.agi
 
Inside the AGI script is call Dial application as follows:
 
    print "EXEC Dial Zap/g2/number|m\n";
    $resultado_llamada = checkresult();
 
And the configuration of musiconhold.conf is (inside the directory of default classes there is a song):
 
    ;
    ; Music on hold class definitions
    ;
    ;[classes]
    default => default => mp3:/home/asterisk/directory1/directory2/mp3
 
 
 
The problem is, that when I try to call with Dial using 'm' option asterisk don't call to the number.
 
Here there are the debug message from asterisk:
 
Jun 25 11:08:41 DEBUG[24595]: File cdr_mysql.c, Line 58 (mysql_log): cdr_mysql: inserting a CDR record.
Jun 25 11:08:41 DEBUG[24595]: File cdr_mysql.c, Line 61 (mysql_log): cdr_mysql: SQL command as follows:  INSERT INTO cdr (calldate,clid,src,dst,dcontext,channel,dstchannel,lastapp,lastdata,duration,billsec,disposition,amaflags,accountcode) VALUES ('2003-06-25 11:08:41','numbera','numbera',numberb','default', 'Zap/2-1','','Dial','Zap/g2/number|m',25,25,4,3,'')
Jun 25 11:08:41 DEBUG[24595]: File chan_zap.c, Line 1936 (zt_setoption): Set option AUDIO MODE, value: ON(1) on Zap/2-1
Jun 25 11:08:41 DEBUG[24595]: File chan_zap.c, Line 1493 (zt_hangup): Hangup: channel: 2 index = 0, normal = 13, callwait = -1, thirdcall = -1
Jun 25 11:08:41 DEBUG[24595]: File chan_zap.c, Line 1846 (zt_setoption): Set option TDD MODE, value: OFF(0) on Zap/2-1
Jun 25 11:08:41 DEBUG[24595]: File chan_zap.c, Line 908 (update_conf): Updated conferencing on 2, with 0 conference users
Jun 25 11:08:41 DEBUG[24595]: File chan_zap.c, Line 1930 (zt_setoption): Set option AUDIO MODE, value: OFF(0) on Zap/2-1
Can somebody help me???
 
Thks a lot.

Reply via email to