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

2009-09-09 Thread Juan Cardoza
Hello All

 

I have been checking on internet but nothing.

I need to assigned an specific port of a T1 (TE121 card) to an specific
extension.

I think this is in the extension.conf file, but it looks like it does not
work well.

 

Could any one help me on this???

Best regards

Juan Cardoza



Teleperformance values: Integrity - Respect - Professionalism - Innovation - 
Commitment

The information contained in this communication is privileged and confidential. 
 The content is intended only for the use of the individual or entity named 
above. If the reader of this message is not the intended recipient, you are 
hereby notified that any dissemination, distribution or copying of this 
communication is strictly prohibited.  If you have received this communication 
in error, please notify me immediately by telephone or e-mail, and delete this 
message from your systems.
Please consider the environmental impact of needlessly printing this e-mail.___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2009 - October 13 - 15 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

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

2009-09-09 Thread Steve Edwards
On Wed, 9 Sep 2009, Juan Cardoza wrote:

 I need to assigned an specific port of a T1 (TE121 card) to an specific 
 extension.

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/555);
};

For #2, try

if  (Zap/y = ${CHANNEL})
{
dial(sip/x);
};

(Both examples intended as suggestions, not literal, tested code.)

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

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2009 - October 13 - 15 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


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

2009-09-09 Thread Juan Cardoza
Thanks Steve

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

-Mensaje original-
De: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] En nombre de Steve Edwards
Enviado el: Miércoles, 09 de Septiembre de 2009 12:45 p.m.
Para: Asterisk Users Mailing List - Non-Commercial Discussion
Asunto: Re: [asterisk-users] How can I assigned an specific port of the T1
to an extension

On Wed, 9 Sep 2009, Juan Cardoza wrote:

 I need to assigned an specific port of a T1 (TE121 card) to an specific 
 extension.

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/555);
};

For #2, try

if  (Zap/y = ${CHANNEL})
{
dial(sip/x);
};

(Both examples intended as suggestions, not literal, tested code.)

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

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2009 - October 13 - 15 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Teleperformance values: Integrity - Respect - Professionalism - Innovation - 
Commitment

The information contained in this communication is privileged and confidential. 
 The content is intended only for the use of the individual or entity named 
above. If the reader of this message is not the intended recipient, you are 
hereby notified that any dissemination, distribution or copying of this 
communication is strictly prohibited.  If you have received this communication 
in error, please notify me immediately by telephone or e-mail, and delete this 
message from your systems.
Please consider the environmental impact of needlessly printing this e-mail.

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2009 - October 13 - 15 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


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

2009-09-09 Thread Steve Edwards
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/555);
   };

 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   sedwa...@sedwards.com  Voice: +1-760-468-3867 PST
Newline  Fax: +1-760-731-3000

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2009 - October 13 - 15 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


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

2009-09-09 Thread Juan Cardoza
I have a TE121 card connected between AVAYA PG3r PBX and the asterisk, I
have configured the digium card as a T1, in the AVAYA PBX I have stations
that use the digital channels as virtual port, it means that each extension
need to have a ds0 port, then when the person dial the asterisk extension
from virtual AVAYA extension, should be route to the asterisk extension.

In the other hand I need that one skill on the AVAYA PBX route calls from
the PBX to the asterisk extensions, so this means the stations of asterisk
should be read in the AVAYA PBX.

Please let me know your comments.
Best regards


-Mensaje original-
De: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] En nombre de Steve Edwards
Enviado el: Miércoles, 09 de Septiembre de 2009 02:42 p.m.
Para: Asterisk Users Mailing List - Non-Commercial Discussion
Asunto: Re: [asterisk-users] How can I assigned an specific port of the T1
to an extension

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/555);
   };

 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   sedwa...@sedwards.com  Voice: +1-760-468-3867 PST
Newline  Fax: +1-760-731-3000

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2009 - October 13 - 15 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Teleperformance values: Integrity - Respect - Professionalism - Innovation - 
Commitment

The information contained in this communication is privileged and confidential. 
 The content is intended only for the use of the individual or entity named 
above. If the reader of this message is not the intended recipient, you are 
hereby notified that any dissemination, distribution or copying of this 
communication is strictly prohibited.  If you have received this communication 
in error, please notify me immediately by telephone or e-mail, and delete this 
message from your systems.
Please consider the environmental impact of needlessly printing this e-mail.

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2009 - October 13 - 15 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


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

2009-09-09 Thread Steve Edwards
Un-top-posting (again)...

 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/555);
  };

 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?

On Wed, 9 Sep 2009, Juan Cardoza wrote:

 I have a TE121 card connected between AVAYA PG3r PBX and the asterisk, I
 have configured the digium card as a T1, in the AVAYA PBX I have stations
 that use the digital channels as virtual port, it means that each extension
 need to have a ds0 port, then when the person dial the asterisk extension
 from virtual AVAYA extension, should be route to the asterisk extension.

If it is of interest...

If you can configure your Avaya as an E1, you could configure Asterisk
as an E1 and have 32 channels instead of 24. I've never done this, but
have heard it may be an option.

 In the other hand I need that one skill on the AVAYA PBX route calls from
 the PBX to the asterisk extensions, so this means the stations of asterisk
 should be read in the AVAYA PBX.

I'm not clear on exactly all this means, but it sounds like about 24 (or 32) 
lines in extensions.conf to map each channel to an extension and then 24 
(or 32) lines to map each extension to each channel. You could do this in 
just a couple of lines with some fancy pattern matching.

If you have many more channels or anticipate frequent changes or if you 
want the users to be able to change the mapping via a web page you should 
consider storing the mapping in a database and then accessing the database 
within the dialplan using an AGI.

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

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2009 - October 13 - 15 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


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

2009-09-09 Thread Juan Cardoza
I am newbi in the asterisk side, I have AVAYA knowledge, I understand you,
but I have been searching on the internet but nothing have work.

Do you have a step by step manual or some screenshots about this.
It looks like this is easy but I have not find information on the web for
it.

I am configuring the asterisk server over the CLI, I don’t have a graphical
interface install.
I hope you can share me an extensions.conf file to see in a real example the
meaning of your words, of course if you can send it, if not, don’t worry I
appreciate your help, you have clear some ideas in my mind so I am continue
looking over the internet.

Thanks a lot
Jhon

-Mensaje original-
De: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] En nombre de Steve Edwards
Enviado el: Miércoles, 09 de Septiembre de 2009 05:19 p.m.
Para: Asterisk Users Mailing List - Non-Commercial Discussion
Asunto: Re: [asterisk-users] How can I assigned an specific port of the T1
to an extension

Un-top-posting (again)...

 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/555);
  };

 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?

On Wed, 9 Sep 2009, Juan Cardoza wrote:

 I have a TE121 card connected between AVAYA PG3r PBX and the asterisk, I
 have configured the digium card as a T1, in the AVAYA PBX I have stations
 that use the digital channels as virtual port, it means that each
extension
 need to have a ds0 port, then when the person dial the asterisk extension
 from virtual AVAYA extension, should be route to the asterisk extension.

If it is of interest...

If you can configure your Avaya as an E1, you could configure Asterisk
as an E1 and have 32 channels instead of 24. I've never done this, but
have heard it may be an option.

 In the other hand I need that one skill on the AVAYA PBX route calls from
 the PBX to the asterisk extensions, so this means the stations of asterisk
 should be read in the AVAYA PBX.

I'm not clear on exactly all this means, but it sounds like about 24 (or 32)

lines in extensions.conf to map each channel to an extension and then 24 
(or 32) lines to map each extension to each channel. You could do this in 
just a couple of lines with some fancy pattern matching.

If you have many more channels or anticipate frequent changes or if you 
want the users to be able to change the mapping via a web page you should 
consider storing the mapping in a database and then accessing the database 
within the dialplan using an AGI.

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

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2009 - October 13 - 15 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Teleperformance values: Integrity - Respect - Professionalism - Innovation - 
Commitment

The information contained in this communication is privileged and confidential. 
 The content is intended only for the use of the individual or entity named 
above. If the reader of this message is not the intended recipient, you are 
hereby notified that any dissemination, distribution or copying of this 
communication is strictly prohibited.  If you have received this communication 
in error, please notify me immediately by telephone or e-mail, and delete this 
message from your systems.
Please consider the environmental impact of needlessly printing this e-mail.

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2009 - October 13 - 15 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users