Xisco Mateu
2003-Jun-25 02:34 UTC
[Asterisk-Users] Problems with music during tones of dial.
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. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20030625/9c8a7fa9/attachment.htm
James Golovich
2003-Jun-25 06:49 UTC
[Asterisk-Users] Problems with music during tones of dial.
On Wed, 25 Jun 2003, Xisco Mateu wrote:> Inside the AGI script is call Dial application as follows: > > print "EXEC Dial Zap/g2/number|m\n"; > $resultado_llamada = checkresult();Looks like your problem lies here. The 2nd argument to Dial is the timeout. So if you don't want a timeout try: print "EXEC Dial Zap/g2/number||m\n"; James *CLI> show application Dial -= Info about application 'Dial' =- [Synopsis]: Place an call and connect to the current channel [Description]: Dial(Technology/resource[&Technology2/resource2...][|timeout][|options][|URL]):