[Asterisk-Users] How to handle one incoming call on multiple lines?

2005-06-08 Thread Erwin Lubbers
Hi,

I have connected 4 analog public telephone lines to an Asterisk server using a 
Digium TDM400P card and that working fine. But my 4 lines are connected to 
each other in a group by the telecom operator. So if someone calls me all 4 
lines are ringing. I wrote a AGI script which will handle the incoming calls, 
but before it decides to answer the call or not the next channel is ringing 
and the script is started again. How can I create a situation that after the 
first ringing channel is coupled to a script the other channels are still 
ringing for the same call?

Regards,
Erwin
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] How to handle one incoming call on multiple lines?

2005-06-08 Thread Julian J. M.
Isn't it easier to talk to your Telco, and tell them to just ring the
first free line, instead of all 4?

Julian J. M.

On 6/8/05, Erwin Lubbers [EMAIL PROTECTED] wrote:
 Hi,
 
 I have connected 4 analog public telephone lines to an Asterisk server using a
 Digium TDM400P card and that working fine. But my 4 lines are connected to
 each other in a group by the telecom operator. So if someone calls me all 4
 lines are ringing. I wrote a AGI script which will handle the incoming calls,
 but before it decides to answer the call or not the next channel is ringing
 and the script is started again. How can I create a situation that after the
 first ringing channel is coupled to a script the other channels are still
 ringing for the same call?
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] How to handle one incoming call on multiple lines?

2005-06-08 Thread Erwin Lubbers
Julian,

Thanks, but it isn't an option because the Telco is actually connected to
a PBX which is connected to Asterisk which should act as a intelligent
answering device during non-office hours. The PBX isn't capable of doing
this. Any other option?

Regards,
Erwin

 Isn't it easier to talk to your Telco, and tell them to just ring the
 first free line, instead of all 4?

 Julian J. M.



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


Re: [Asterisk-Users] How to handle one incoming call on multiple lines?

2005-06-08 Thread Andrew Latham
unplug the other three lines 

This is an after hours ring group or is this enabled after hours only?

On 6/8/05, Erwin Lubbers [EMAIL PROTECTED] wrote:
 Julian,
 
 Thanks, but it isn't an option because the Telco is actually connected to
 a PBX which is connected to Asterisk which should act as a intelligent
 answering device during non-office hours. The PBX isn't capable of doing
 this. Any other option?
 
 Regards,
 Erwin
 
  Isn't it easier to talk to your Telco, and tell them to just ring the
  first free line, instead of all 4?
 
  Julian J. M.
 
 
 
 ___
 Asterisk-Users mailing list
 Asterisk-Users@lists.digium.com
 http://lists.digium.com/mailman/listinfo/asterisk-users
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
 


-- 
sig
Andrew Latham - AKA: LATHAMA (lay-th-ham-eh)
WWW: http://lathama.com
Email: [EMAIL PROTECTED] - [EMAIL PROTECTED] - [EMAIL PROTECTED]
If any of the above are down we have bigger problems than my email!
/sig
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] How to handle one incoming call on multiple lines?

2005-06-08 Thread Florian Overkamp
Hi, 

 -Original Message-
 Thanks, but it isn't an option because the Telco is actually 
 connected to
 a PBX which is connected to Asterisk which should act as a intelligent
 answering device during non-office hours. The PBX isn't 
 capable of doing
 this. Any other option?

Hmm, this is a bit of a hack, but it might suit your needs:

- Make sure each of those lines goes into a different extension or context
- Add a delay on each line, like this:

exten = line1,1,Do stuff

exten = line2,1,Wait(2)
exten = line2,1,Do stuff

exten = line3,1,Wait(4)
exten = line3,1,Do stuff

exten = line4,1,Wait(6)
exten = line4,1,Do stuff

Could this help your case ?

Florian


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


Re: [Asterisk-Users] How to handle one incoming call on multiple lines?

2005-06-08 Thread Henry Coleman
This feature is called  attendant - night answer position. Is it not 
possible to switch the incoming call to an alternate extension based on 
time of day ?


Henry

Florian Overkamp wrote:

Hi, 

 


-Original Message-
Thanks, but it isn't an option because the Telco is actually 
connected to

a PBX which is connected to Asterisk which should act as a intelligent
answering device during non-office hours. The PBX isn't 
capable of doing

this. Any other option?
   



Hmm, this is a bit of a hack, but it might suit your needs:

- Make sure each of those lines goes into a different extension or context
- Add a delay on each line, like this:

exten = line1,1,Do stuff

exten = line2,1,Wait(2)
exten = line2,1,Do stuff

exten = line3,1,Wait(4)
exten = line3,1,Do stuff

exten = line4,1,Wait(6)
exten = line4,1,Do stuff

Could this help your case ?

Florian


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


 


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


Re: [Asterisk-Users] How to handle one incoming call on multiple lines?

2005-06-08 Thread Andrew Kohlsmith
On Wednesday 08 June 2005 11:24, Henry Coleman wrote:
 This feature is called  attendant - night answer position. Is it not
 possible to switch the incoming call to an alternate extension based on
 time of day ?

You need to read up.  This exact situation is given in the Asterisk Handbook.

http://www.digium.com/handbook-draft.pdf

In particular, you want GotoIfTime().

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


Re: [Asterisk-Users] How to handle one incoming call on multiple lines?

2005-06-08 Thread Henry Coleman
Yeh, this is called line hunting  all telco's offer this... you get  
one published number but say 12 lines each line actually has a 
number but just calling the main number will automatically roll-over to 
the first available line in that hunting group. By the way, outgoing 
calls that use the same lines should have hunting groups going in the 
opposite direction (for obvious reasons).
Unfortunatly, for those who want to develop ACD (Automatic Call 
Distribution) 
this mode is useless, if you were to distribute calls based on this 
method the person attached to the first line would get most of the calls 
while the last would be able to put their feet up and whistle dixie


Have fun ..Henry
 
 


Erwin Lubbers wrote:


Julian,

Thanks, but it isn't an option because the Telco is actually connected to
a PBX which is connected to Asterisk which should act as a intelligent
answering device during non-office hours. The PBX isn't capable of doing
this. Any other option?

Regards,
Erwin

 


Isn't it easier to talk to your Telco, and tell them to just ring the
first free line, instead of all 4?

Julian J. M.

   




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


 


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


Re: [Asterisk-Users] How to handle one incoming call on multiple lines?

2005-06-08 Thread Henry Coleman

Will do ..Thanks Henry

Andrew Kohlsmith wrote:


On Wednesday 08 June 2005 11:24, Henry Coleman wrote:
 


This feature is called  attendant - night answer position. Is it not
possible to switch the incoming call to an alternate extension based on
time of day ?
   



You need to read up.  This exact situation is given in the Asterisk Handbook.

http://www.digium.com/handbook-draft.pdf

In particular, you want GotoIfTime().

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


 


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


Re: [Asterisk-Users] How to handle one incoming call on multiple lines?

2005-06-08 Thread Greg Oliver
We use it like this if that is what you are looking for:

exten = s,4,GotoIfTime(8:30-17:00|mon-fri|*|*?open,s,1)

-Greg

On Wed, 2005-06-08 at 11:24 -0400, Henry Coleman wrote:
 This feature is called  attendant - night answer position. Is it not 
 possible to switch the incoming call to an alternate extension based on 
 time of day ?
 
 Henry
 
 Florian Overkamp wrote:
 
 Hi, 
 
   
 
 -Original Message-
 Thanks, but it isn't an option because the Telco is actually 
 connected to
 a PBX which is connected to Asterisk which should act as a intelligent
 answering device during non-office hours. The PBX isn't 
 capable of doing
 this. Any other option?
 
 
 
 Hmm, this is a bit of a hack, but it might suit your needs:
 
 - Make sure each of those lines goes into a different extension or context
 - Add a delay on each line, like this:
 
 exten = line1,1,Do stuff
 
 exten = line2,1,Wait(2)
 exten = line2,1,Do stuff
 
 exten = line3,1,Wait(4)
 exten = line3,1,Do stuff
 
 exten = line4,1,Wait(6)
 exten = line4,1,Do stuff
 
 Could this help your case ?
 
 Florian
 
 
 ___
 Asterisk-Users mailing list
 Asterisk-Users@lists.digium.com
 http://lists.digium.com/mailman/listinfo/asterisk-users
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
 
 
   
 
 ___
 Asterisk-Users mailing list
 Asterisk-Users@lists.digium.com
 http://lists.digium.com/mailman/listinfo/asterisk-users
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users

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