Hello all! I have a problem when I try to playback soundfile using Playback or Background in extensions.conf CDR is recording call as ANSWERED even if it's not, and record time from beginning of Playback. Is it a bug or do i do something wrong? exten => _078.,1,Set(CHANNEL(language)=pl) exten => _078.,2,Wait(2) exten => _078.,3,Playback(platna) exten => _078.,4,SetAMAFlags(documentation) exten => _078.,5,Dial(SIP/voipnet/0048${EXTEN:1},120,Tt) exten => _078.,6,Hangup When i use AGI and play soundfile using AGI script everything is right. like: exten => _078.,1,Set(CHANNEL(language)=pl) exten => _078.,2,Wait(2) exten => _078.,3,AGI(platna.agi) exten => _078.,4,SetAMAFlags(documentation) exten => _078.,5,Dial(SIP/voipnet/0048${EXTEN:1},120,Tt) exten => _078.,6,Hangup I tried to reorder this extension but nothing have changed. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080628/2862887a/attachment.htm
michael_t Gazeta.pl pisze:> > Hello all! > > I have a problem when I try to playback soundfile using Playback or > Background in extensions.conf CDR is recording call as ANSWERED even > if it's not, and record time from beginning of Playback. > > Is it a bug or do i do something wrong? > > exten => _078.,1,Set(CHANNEL(language)=pl) > exten => _078.,2,Wait(2) > exten => _078.,3,Playback(platna) > exten => _078.,4,SetAMAFlags(documentation) > exten => _078.,5,Dial(SIP/voipnet/0048${EXTEN:1},120,Tt) > exten => _078.,6,Hangup >I think you shoud add http://www.voip-info.org/wiki/view/Asterisk+cmd+ResetCDR before dial. I may be wrong, so you have to check
michael_t Gazeta.pl wrote:> Hello all! > > I have a problem when I try to playback soundfile using Playback or > Background in extensions.conf CDR is recording call as ANSWERED even if > it's not, and record time from beginning of Playback. > > Is it a bug or do i do something wrong? > > exten => _078.,1,Set(CHANNEL(language)=pl) > exten => _078.,2,Wait(2) > exten => _078.,3,Playback(platna) > exten => _078.,4,SetAMAFlags(documentation) > exten => _078.,5,Dial(SIP/voipnet/0048${EXTEN:1},120,Tt) > exten => _078.,6,Hangup >exten => _078.,3,Playback(platna|noanswer) Mark Michelson
> >exten => _078.,3,Playback(platna|noanswer) >Thank you everything work perfect now :) -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080629/7c808997/attachment.htm