[Asterisk-Users] Disa - how it returns on user not dialinganynumbers ?

Robert Rozman rozman at fri.uni-lj.si
Sun Jun 5 22:40:48 MST 2005


----- Original Message ----- 
From: "C F" <shmaltz at gmail.com>
To: "Asterisk Users Mailing List - Non-Commercial Discussion" 
<asterisk-users at lists.digium.com>
Sent: Monday, June 06, 2005 2:40 AM
Subject: Re: [Asterisk-Users] Disa - how it returns on user not 
dialinganynumbers ?


What is the CLI output?


Hi,

I get this:
    -- Executing SetAccount("Zap/10-1", "250") in new stack
    -- Executing DigitTimeout("Zap/10-1", "5") in new stack
    -- Set Digit Timeout to 5
    -- Executing ResponseTimeout("Zap/10-1", "20") in new stack
    -- Set Response Timeout to 20
    -- Executing DBget("Zap/10-1", "temp=USER/041461620") in new stack
    -- DBget: varname=temp, family=USER, key=041461620
    -- DBget: set variable temp to robi
    -- Executing SetAccount("Zap/10-1", "robi") in new stack
    -- Executing DISA("Zap/10-1", "no-password|from-bri-user-disa") in new 
stack
  == Spawn extension (from-bri-user, s, 18) exited non-zero on 'Zap/10-1'
    -- Executing NoOp("Zap/10-1", "Out od DISA command:hangup") in new stack
    -- Executing Macro("Zap/10-1", "hangupcall") in new stack
    -- Executing ResetCDR("Zap/10-1", "w") in new stack
    -- Executing NoCDR("Zap/10-1", "") in new stack
    -- Executing Wait("Zap/10-1", "2") in new stack
    -- Executing Hangup("Zap/10-1", "") in new stack
  == Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'Zap/10-1' 
in macro 'hangupcall'
  == Spawn extension (from-bri-user, h, 2) exited non-zero on 'Zap/10-1'
    -- Hungup 'Zap/10-1'

It seems like ti goes to hangup priority in context it was called from - but 
I'd like to continue with other actions in dialplan - how to do that ?

Regards,

Rob.





On 6/5/05, Robert Rozman <rozman at fri.uni-lj.si> wrote:
>
> ----- Original Message -----
> From: "C F" <shmaltz at gmail.com>
> To: "Asterisk Users Mailing List - Non-Commercial Discussion"
> <asterisk-users at lists.digium.com>
> Sent: Monday, June 06, 2005 1:27 AM
> Subject: Re: [Asterisk-Users] Disa - how it returns on user not dialing
> anynumbers ?
>
>
> Try the t extension (stands for timeout).
>
>
>
> Hi, thanks for advice. But it seems that t extension doesn't get executed. 
> I
> have it in context from where I call DISA and also in DISA context, but no
> go....
>
> After dialing nothing and some time it just gets hungup, no t extension
> triggering .....
>
> Any advice ?
>
> Thanks in advance,
>
> regards,
>
> Rob.
>
>
> I have :
>
> exten => s,14,DigitTimeout(5)
> exten => s,15,ResponseTimeout(20)
> exten => s,16,DBget(temp=USER/${CALLERIDNUM})
> exten => s,17,SetAccount(${temp})
> exten => s,18,DISA(no-password|from-bri-user-disa)
>
>
> exten => t,1,DBget(temp=DYNAMIC/${CALLERIDNUM})
> exten => t,2,DBdel(DYNAMIC/${CALLERIDNUM})
> exten => t,3,Dial(Local/${temp}@ext-local/n)
>
> exten => t,102,Goto(from-pstn,s,1)   ;
>
>
> [from-bri-user-disa]
> include => outbound-allroutes-custom
> include => outrt-001-Mednarodni
> include => ext-local
> include => outrt-003-zunanja
>
> exten => s,1,NoOp(DISA: Waiting for BRI user to enter number)
> exten => s,2,DigitTimeout(5) ; Vhodni
> exten => s,3,ResponseTimeout(20) ;
>
> exten => t,1,DBget(temp=DYNAMIC/${CALLERIDNUM})
> exten => t,2,DBdel(DYNAMIC/${CALLERIDNUM})
> exten => t,3,Dial(Local/${temp}@ext-local/n)
>
> exten => t,102,Goto(from-pstn,s,1)   ;
>
>
>
>
>
>
>
>
> On 6/5/05, Robert Rozman <rozman at fri.uni-lj.si> wrote:
> > Hi,
> >
> > I'd like to use DISA properly for my case - I'd like to handle it right,
> > if
> > user when in DISA doesn't dial any number - how does Asterisk return 
> > from
> > DISA cmd ?
> >
> > I'd like to dial some default number if user doesn't dial anything or 
> > give
> > him some message - but I don't know what gets executed after DISA if
> > nothing
> > is dialed ....
> >
> > I'm reading this on wiki, but don't understand what following sentence
> > means. Any help  ?
> >
> > "... If login is successful, the application parses the dialed number in
> > the specified (or default) context, and returns 0 with the new extension
> > context filled-in and the priority set to 1, so that the PBX may
> > re-apply the routing tables to it and complete the call normally. ... "
> >
> >
> > Thanks in advance,
> >
> > regards,
> >
> > Rob.
> >
> > _______________________________________________
> > Asterisk-Users mailing list
> > Asterisk-Users at lists.digium.com
> > http://lists.digium.com/mailman/listinfo/asterisk-users
> > To UNSUBSCRIBE or update options visit:
> >    http://lists.digium.com/mailman/listinfo/asterisk-users
> >
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users 




More information about the asterisk-users mailing list