[asterisk-users] FreePBX: using context other than the default context and the generation for the configuration

bilal ghayyad bilmar_gh at yahoo.com
Tue Jul 10 16:25:40 CDT 2012


Dear Warren;

I did not understand the example below well.

What the Verbose will do? It will write in the CDR or the database? Really this did not understand.

Also did not understand this lineL same => n,Goto(${EXTEN},from-internal,1) How it will work? Can u plz explain?

Regards
Bilal


------------

> > umm Warren, yes including from-internal is the way of
> getting all the
> > features,,,but in my experience the calls going out
> using the dialplan
> > script we manually enter in our custome context don't
> get inserted into the
> > FreePBX CDR and recording stuff !!
> >
> 
> Okay, if you're writing custom dialplan to control outbound
> calling, but
> you want to utilize the FreePBX standard features, without
> using custom
> modules, you can do something like the following, adjusting
> for your
> specific situations of course:
> 
> [custom-local-only]
> ; local NANPA calling for area code 281
> exten => _281NXXXXXX,1,Verbose(Outbound call from
> local-only context)
>  same => n,Goto(${EXTEN},from-internal,1)
> 
> ; extension-to-extension (internal) calling, assuming 2XXX
> internal
> extension plan
> exten => _2XXX,1,Verbose(Internal extension-to-extension
> call)
>  same => n,Goto(${EXTEN},from-internal,1)
> 
> [custom-long-distance]
> ; long distance NANPA calling, dial a 1 to dial anything
> outside of a local
> number
> exten => _1NXXNXXXXXX,1,Verbose(Outbound call from local
> and long-distance
> context)
>  same => n,Goto(${EXTEN},from-internal,1)
> 
> ; allow local calls also, without having to dial a 1
> include => custom-local-only
> 
> 
> -- 
> Thanks,
> --Warren Selby, dCAP
> http://www.SelbyTech.com <http://www.selbytech.com>



More information about the asterisk-users mailing list