[asterisk-users] FreePBX: using context other than the default context and the generation for the configuration
bilal ghayyad
bilmar_gh at yahoo.com
Fri Jul 6 17:21:46 CDT 2012
Dears;
Thanks for all the replies and help.
First of all, I am not looking to have the custom context only for outbound, I need this also to separate the extensions into partitions, so I can have same extensions in different contexts, also extensions in context A can not call extensions in context B (as example).
Secondly, regarding to have the calls in the CDR (the outside and internal calls), really i did not understand in the below example what I have to do?
For example:
exten => _2XXX,1,Verbose(Internal extension-to-extension call)
same => n,Goto(${EXTEN},from-internal,1)
Why to use the Goto? How the call will be done using my manual configuration? As you are going to use from-internal then why you used the Verbose?
We need to know if we did a manual script, how the calls will be logged in the CDR without using the from-internal? In other words, we will write manually the Dial function and will not depend on the auto generated script.
Also why u used same? And u let it go for from-internal at sequence 1. Well, is it always to go for sequence 1? Or I have to check the right sequence? What if changed?
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