[asterisk-users] dialplan problem : not including context

Doug Lytle support at drdos.info
Fri Jan 13 09:22:35 CST 2012


Jonas Kellens wrote:
> Does this mean the Return() comes before Asterisk looks into the 
> context [TrunkAccounts] ??

No, I believe the includes are read first, but the order in important.

Since you may be matching against another context that may cause 
failure.  For example, I have the following in a internal context:

   Include =>        'analog-extensions'                           
[pbx_config]
   Include =>        'sip-utilities'                               
[pbx_config]
   Include =>        'internal-extensions'                         
[pbx_config]
   Include =>        'dial-local'                                  
[pbx_config]
   Include =>        'dial-ld'                                     
[pbx_config]
   Include =>        'incoming'                                    
[pbx_config]
   Include =>        'fall-through'                                
[pbx_config]

If I had fall-through first, it'd cause lots of issues.

Doug


-- 

Ben Franklin quote:

"Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."




More information about the asterisk-users mailing list