[Home]

Summary:ASTERISK-05250: [patch] New application to define Short Numbers in a context
Reporter:Tiberiu Covaci (tibi)Labels:
Date Opened:2005-10-05 15:49:08Date Closed:2005-10-05 16:36:20
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Applications/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) app_shortnumber.c
Description:The application replace a short number with a real phone number. If the number is not possibel to dial from the current context, or if the user hangs then the dialplan will end. The reason I propose this, is to avoid definig stuff like exten => 123,1,Dial(SIP/someaccount/01123456789), and instead using the call routing generally defined.

****** ADDITIONAL INFORMATION ******

Example: exten => 123,1,ShortNumber(01123456789) will behave exactly as when the users press 01123456789.
Comments:By: Serge Vecher (serge-v) 2005-10-05 16:09:23

What's wrong with 'exten => 123,1,Dial(SIP/someaccount/01123456789)' format? I think this is perfectly fine.

By: Tilghman Lesher (tilghman) 2005-10-05 16:35:38

There's a much easier method.  It's called Goto:

exten => 123,1,Goto(01123456789,1)