Jeremy Winder
2009-Jun-22 14:25 UTC
[asterisk-users] Different inbound routes for each interface on a TDM800P card.
I'm new to Asterisk and inherited this project so I apologize if this question has been asked a hundred time before. I did start with Google but I may not be asking the right questions, because I wasn't finding any answers. I have Asterisk 1.4.24 and FreePBX 2.5 running and using a Digium TDM800P to interface with our six analog phone lines from the telco. Currently I have a single trunk setup ZAP/G0 that will allow all incoming call go to your IVR and allow outgoing calls. My problem is I need two of those lines to be routed to one IVR for our tech support people and the other four to be routed to our main business IVR. For the life of me, I can't seem to find anything online about how to do this. I thought about setting up six separate trunks; but I didn't see anywhere you specify the channel for the trunk and right now my single trunk is working with all of the analog lines. Any help will be greatly appreciated, Jeremy
Kerem Erciyes
2009-Jun-22 14:48 UTC
[asterisk-users] Different inbound routes for each interface on a TDM800P card.
Start by creating two ZAP Groups, i.e. ZAP/G0 and ZAP/G1 then you can route the calls according to ZAP groups inbound and outbound. - /etc/zaptel.conf: Configuration of your hardware interfaces - /etc/asterisk/zapata.conf<http://www.voip-info.org/wiki/view/Asterisk+config+zapata.conf>: Asterisk configuration to use your hardware interfaces I have done the same setup on a Sangoma A101 connected to a channelbank. http://www.voip-info.org/wiki/view/Asterisk+config+zaptel.conf http://www.voip-info.org/wiki/view/Asterisk+config+zapata.conf On Mon, Jun 22, 2009 at 5:25 PM, Jeremy Winder <jwinder at logicalsi.com>wrote:> I'm new to Asterisk and inherited this project so I apologize if this > question has been asked a hundred time before. I did start with Google > but I may not be asking the right questions, because I wasn't finding > any answers. > > I have Asterisk 1.4.24 and FreePBX 2.5 running and using a Digium > TDM800P to interface with our six analog phone lines from the telco. > Currently I have a single trunk setup ZAP/G0 that will allow all > incoming call go to your IVR and allow outgoing calls. > > My problem is I need two of those lines to be routed to one IVR for our > tech support people and the other four to be routed to our main business > IVR. For the life of me, I can't seem to find anything online about how > to do this. I thought about setting up six separate trunks; but I didn't > see anywhere you specify the channel for the trunk and right now my > single trunk is working with all of the analog lines. > > Any help will be greatly appreciated, > > Jeremy > > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-- Kerem Erciyes Sistem Danismani http://proje.keremerciyes.com kerem.erciyes at gmail.com +90 532 737 05 83 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090622/aeb76eed/attachment.htm
Danny Nicholas
2009-Jun-22 14:56 UTC
[asterisk-users] Different inbound routes for each interface on aTDM800P card.
Here is one way: - exten => s,1,Answer - exten => s,2,Gotoif($["${CHANNEL}" = "Zap-1"]?techsupp|s|1) - exten => s,3,Gotoif($["${CHANNEL}" = "Zap-2"]?techsupp|s|1) - exten => s,4,Goto(regivr|s|1) - exten => s,5,hangup -----Original Message----- From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Jeremy Winder Sent: Monday, June 22, 2009 9:26 AM To: asterisk-users at lists.digium.com Subject: [asterisk-users] Different inbound routes for each interface on aTDM800P card. I'm new to Asterisk and inherited this project so I apologize if this question has been asked a hundred time before. I did start with Google but I may not be asking the right questions, because I wasn't finding any answers. I have Asterisk 1.4.24 and FreePBX 2.5 running and using a Digium TDM800P to interface with our six analog phone lines from the telco. Currently I have a single trunk setup ZAP/G0 that will allow all incoming call go to your IVR and allow outgoing calls. My problem is I need two of those lines to be routed to one IVR for our tech support people and the other four to be routed to our main business IVR. For the life of me, I can't seem to find anything online about how to do this. I thought about setting up six separate trunks; but I didn't see anywhere you specify the channel for the trunk and right now my single trunk is working with all of the analog lines. Any help will be greatly appreciated, Jeremy _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Tzafrir Cohen
2009-Jun-22 15:24 UTC
[asterisk-users] Different inbound routes for each interface on aTDM800P card.
On Mon, Jun 22, 2009 at 09:56:39AM -0500, Danny Nicholas wrote:> Here is one way: > - exten => s,1,Answer > - exten => s,2,Gotoif($["${CHANNEL}" = "Zap-1"]?techsupp|s|1)Zap/1-1 ? Elsewhere I have: exten => s,1,Set(DAHDI_CHAN=${CUT(CHANNEL,-,1)}) exten => s,n,Set(DAHDI_CHAN=${CUT(DAHDI_CHAN,/,2)}) -- Tzafrir Cohen icq#16849755 jabber:tzafrir.cohen at xorcom.com +972-50-7952406 mailto:tzafrir.cohen at xorcom.com http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
Danny Nicholas
2009-Jun-22 15:32 UTC
[asterisk-users] Different inbound routes for each interface onaTDM800P card.
Presumably this would work on Zap as well since OP was on an earlier 1.4 rel. Taking that ball and running with, a cleaner piece of logic; exten => s,1,Set(IVR_CHAN=${CUT(CHANNEL,-,1)}) exten => s,n,Set(IVR_CHAN=${CUT(IVR_CHAN,/,2)}) exten => s,n,Gotoif($["${IVR_CHAN}" < "3"]?techsupp|s|1) exten => s,n,Goto(regivr,s,1) -----Original Message----- From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Tzafrir Cohen Sent: Monday, June 22, 2009 10:24 AM To: asterisk-users at lists.digium.com Subject: Re: [asterisk-users] Different inbound routes for each interface onaTDM800P card. On Mon, Jun 22, 2009 at 09:56:39AM -0500, Danny Nicholas wrote:> Here is one way: > - exten => s,1,Answer > - exten => s,2,Gotoif($["${CHANNEL}" = "Zap-1"]?techsupp|s|1)Zap/1-1 ? Elsewhere I have: exten => s,1,Set(DAHDI_CHAN=${CUT(CHANNEL,-,1)}) exten => s,n,Set(DAHDI_CHAN=${CUT(DAHDI_CHAN,/,2)}) -- Tzafrir Cohen icq#16849755 jabber:tzafrir.cohen at xorcom.com +972-50-7952406 mailto:tzafrir.cohen at xorcom.com http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users