[asterisk-users] How can I assigned an specific port of the T1 to an extension

Steve Edwards asterisk.org at sedwards.com
Wed Sep 9 14:42:01 CDT 2009


Un-top-posting...

> On Wed, 9 Sep 2009, Juan Cardoza wrote:
>
>> I need to assigned an specific port of a T1 (TE121 card) to an specific
>> extension.

> On Wed, 9 Sep 2009, Steve Edwards wrote:
>
> Does this mean
>
> 1) I want all calls made from extension x to be sent out over channel y?
>
> or
>
> 2) I want all calls coming in on channel y to be sent to extension x?
>
> For #1, try
>
> 	if	("x" = "${EXTEN}")
> 		{
> 		dial(zap/y/55555555555);
> 		};
>
> For #2, try
>
> 	if	("Zap/y" = "${CHANNEL}")
> 		{
> 		dial(sip/x);
> 		};
>
> (Both examples intended as suggestions, not literal, tested code.)

On Wed, 9 Sep 2009, Juan Cardoza wrote:

> Just to complete the information, do I need to load this to the
> extensions.conf file, right?

extensions.conf would be the place, but the examples are AEL which lives 
in extensions.ael. But again, this is an example, not literal code.

What are you trying to accomplish?

-- 
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards       sedwards at sedwards.com      Voice: +1-760-468-3867 PST
Newline                                              Fax: +1-760-731-3000



More information about the asterisk-users mailing list