Robert Rozman
2005-Jun-05 16:04 UTC
[Asterisk-Users] Disa - how it returns on user not dialing any numbers ?
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.
C F
2005-Jun-05 16:27 UTC
[Asterisk-Users] Disa - how it returns on user not dialing any numbers ?
Try the t extension (stands for timeout). On 6/5/05, Robert Rozman <rozman@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@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 >
Peter Svensson
2005-Jun-06 00:30 UTC
[Asterisk-Users] Disa - how it returns on user not dialing any numbers ?
On Mon, 6 Jun 2005, Robert Rozman wrote:> 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 ?The file app_disa.c is hardwired to hang up the call if too many incorrect passwords are attempted and when no valid extensions has been entered before the digittimeout expires. To change it the block under the "reorder:" label in app_disa.c is probably the easiest. Instead of playing tones and all that it could set a channel variable based on the "k" variable which seem to be the main state variable. The dialplan could then handle the various exit cases. Peter