[Asterisk-Users] Record() cut off after 40 sec

Carlos Gabriel Drach gabriel.drach at gmail.com
Mon Feb 7 14:25:44 MST 2005


On Mon, 07 Feb 2005 14:54:46 -0600, Steven Critchfield
<critch at basesys.com> wrote:
> On Mon, 2005-02-07 at 17:40 -0300, Carlos Gabriel Drach wrote:
> > On Mon, 07 Feb 2005 13:54:13 -0600, Steven Critchfield
> > <critch at basesys.com> wrote:
> > > On Mon, 2005-02-07 at 16:45 -0300, Carlos Gabriel Drach wrote:
> > > > Hi,
> > > >
> > > > i am recording a message, but it is always cut off at 40 secs.
> > > > There are no time out configured.
> > >
> > > Care to provide more relevant details such as console output when record
> > > ends, trimmed down section of your extensions.conf, explanation of what
> > > technology you use to connect to asterisk for record?
> > > --
> > > Steven Critchfield <critch at basesys.com>
> > >
> > >
> >
> > Here i put more info from console
> >
> >     -- Executing Record("Local/541141091828 at callout-5eb4,1",
> > "/var/spool/asterisk/message532:WAV|0|0|skip") in new stack
> >     -- Playing 'beep' (language 'en')
> >     -- Hungup 'IAX2/voiptalk/1'
> >   == Spawn extension (callout, 541141091828, 2) exited non-zero on
> > 'Local/541141091828 at callout-5eb4,2'
> >     -- Executing Hangup("Local/541141091828 at callout-5eb4,2", "") in new stack
> >   == Spawn extension (callout, h, 1) exited non-zero on
> > 'Local/541141091828 at callout-5eb4,2'
> >   == Spawn extension (mail2speak, 9532, 5) exited non-zero on
> > 'Local/541141091828 at callout-5eb4,1'
> >     -- Executing Hangup("Local/541141091828 at callout-5eb4,1", "") in new stack
> >
> > from extensions.conf:
> >
> > exten => _N.,1,AbsoluteTimeout,330
> > exten => _N.,2,Setvar(VOICEMAILREQ=${EXTEN})
> > exten => _N.,3,Background(record)
> > exten => _N.,4,Playtones(record)
> > exten => _N.,5,Record(/var/spool/asterisk/message${VOICEMAILREQ:1}:WAV,0,0,skip)
> > exten => _N.,6,Wait,2
> > exten => _N.,7,Background(confirm)
> > exten => _N.,8,Background(silen)
> >
> > exten => 1,1,Background(adio)
> > exten => 1,2,Hangup
> >
> > exten => h,1,Hangup
> >
> > exten => t,1,Goto(CDR,s,1)
> > exten => T,1,NoOp
> > exten => T,2,Goto(CDR,s,1)
> 
> Looks like you are missing some information here. Specifically you don't
> have the portion that created the local channel. I am starting to wonder
> if your dial that creates the local channel isn't set for 40 seconds
> timeout. It would explain the hangup listed in the messages above.
> 
> --
> Steven Critchfield <critch at basesys.com>
> 
> 

Hi Steven, thanks for your help.
I trigger the call throw .call file

    -- Attempting call on Local/541141091828 at callout/n for
9533 at Validate:1 (Retry 2)
    -- Executing SetAccount("Local/541141091828 at callout-015f,2",
"217815") in new stack
    -- Executing Dial("Local/541141091828 at callout-015f,2",
"IAX2/NNNNNN at voiptalk/541141091828") in new stack
    -- Called NNNNNN at voiptalk/541141091828
    -- Call accepted by 217.14.132.162 (format G729A)
    -- Format for call is G729A
    -- IAX2/voiptalk/2 is making progress passing it to
Local/541141091828 at callout-015f,2
    -- IAX2/voiptalk/2 answered Local/541141091828 at callout-015f,2


After this, follow the part i sent already.


-- 
The educated person is not the person who can answer the questions but
the person who can question the answer.



More information about the asterisk-users mailing list