[asterisk-dev] Dial2 or better named... was Re: ast_flags now uint64_t ? should it be reverted ?

Steven Critchfield critch at basesys.com
Thu Jul 19 09:45:50 CDT 2007


On Thu, 2007-07-19 at 13:11 +0200, Olle E Johansson wrote:
> I have been thinking about implementing "dial by profile" for a while...
> 
> Imagine having a configuration file where you define a couple of dial  
> "patterns",
> in an easy-to-read way. Like
> 
> 
> [normal-call]
> timeout=20
> macro=dial-check
> answer-elsewhere=on
> 
> 
> then you could implement
> 
> 	dialbyprofile(normal-call, SIP/olle)
> 
> 
> That would make the dialplans easier to handle, but the specific dial  
> command would
> not have all the required information - you have to read dial.conf to  
> understand.

That is an interesting thought. 

It could even be accomplished without a new conf file in my idea.
Specifically, with the DIAL variable, you could create macros in your
dialplan that set your commonly used options before returning to dial.
Being done within extensions would also allow for a lot of the same
smart functionality that people may be doing right now.

Or you could possibly do this as a combined idea where your common
options are put into the profile in a dial.conf file and anything in the
DIAL var would overwrite the profile. 

Several options are available.
-- 
Steven Critchfield <critch at basesys.com>




More information about the asterisk-dev mailing list