Re: [Asterisk-Users] Disa - how it returns on user not dialing any numbers ?

2005-06-06 Thread Peter Svensson
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

___
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


[Asterisk-Users] Disa - how it returns on user not dialing any numbers ?

2005-06-05 Thread Robert Rozman

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


Re: [Asterisk-Users] Disa - how it returns on user not dialing any numbers ?

2005-06-05 Thread C F
Try the t extension (stands for timeout).

On 6/5/05, Robert Rozman [EMAIL PROTECTED] 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

___
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