Jim Freeze
2006-Apr-22 18:39 UTC
[Asterisk-Users] Need help with getting EXTEN from pstn hunt group
Hi I have a TDM card with 4 lines on a hunt group coming in. I can answer the phones with exten => s,1,Answer() exten => s,n,Dial(Zap....&Zap....) ... The problem is I don't know how to find out what extension was originally dialed. And, trying to match on the extension always fails. E.g. exten => 1234567,1,Answer() # never gets here I thought I could get the extension on the 's' extensions above, but, no, the extension is 's'. Is there something special that needs to be done with pstn hunt groups to get the extension? Thanks -- Jim Freeze
Leo Ann Boon
2006-Apr-22 19:02 UTC
[Asterisk-Users] Need help with getting EXTEN from pstn hunt group
Jim, You might want to be a little more specific: a. You want to find out which line the call came in on, OR b. The actual PSTN number that was dialed An example: - assuming a hunting pstn number 2341000 - 4 lines in a the group: 2341001, 2341002, 2341003, 2341004 - The 4 lines, are connected to your TDM card as Zap/1, Zap/2, Zap/3, Zap/4 If you want to find out which line was actually called, put each line into a different context in your zapata.conf, e.g. context=pstn_2341001 channel=>1 context=pstn_2341002 channel=>2 ... In your extension.conf, you'll need something like [psnt_2341001] exten => s,1,Answer() exten =>s,2,Set(DNID,2341001) exten =>s,3,Goto(defuault,s,1) ; Jump to normal processing [psnt_2341002] exten => s,1,Answer() exten =>s,2,Set(DNID,2341002) exten =>s,3,Goto(defuault,s,1) ; Jump to normal processing But, if you want to get the original hunting number 2341000, you'll need to use an ISDN line. Hope this helps. Leo Jim Freeze wrote:> Hi > > I have a TDM card with 4 lines on a hunt group coming in. > I can answer the phones with > > exten => s,1,Answer() > exten => s,n,Dial(Zap....&Zap....) > ... > > The problem is I don't know how to find out what extension > was originally dialed. And, trying to match on the extension > always fails. E.g. > > exten => 1234567,1,Answer() # never gets here > > I thought I could get the extension on the 's' extensions above, > but, no, the extension is 's'. > > Is there something special that needs to be done with pstn hunt > groups to get the extension? > > Thanks > > -- > Jim Freeze > > > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > Asterisk-Users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
Jim Freeze
2006-Apr-23 08:22 UTC
[Asterisk-Users] Need help with getting EXTEN from pstn hunt group
On Apr 22, 2006, at 9:02 PM, Leo Ann Boon wrote:> Jim, > > You might want to be a little more specific: > a. You want to find out which line the call came in on, OR > b. The actual PSTN number that was dialedAs I think about this more, and considering the solution you provide, I think there is still a problem. Let me re-explain. I have four numbers on a hunt group: Zap/1-1 234-1000 Zap/2-1 567-1002 Zap/3-1 567-1003 Zap/4-1 567-1004 The published number that everyone calls is 234-1000. I want all calls to that number to be sent to the front desk. That means, that even if the 1000 line is busy, and the next open line found is 567-1002, I still wan the call to go to the front desk. But, if someone calls 1002-1004, I want those calls to be directed to various phones in the office. So, it seems that it is not sufficient to know what zap channel the call comes in on, but we need the number dialed by the caller. Is this possible to do? Thanks -- Jim Freeze
C F
2006-Apr-23 09:04 UTC
[Asterisk-Users] Need help with getting EXTEN from pstn hunt group
Set up an IVR and prompt the callers to dial the extension they wish to reach. On 4/23/06, Jim Freeze <asterisk@freeze.org> wrote:> On Apr 22, 2006, at 9:02 PM, Leo Ann Boon wrote: > > > Jim, > > > > You might want to be a little more specific: > > a. You want to find out which line the call came in on, OR > > b. The actual PSTN number that was dialed > > As I think about this more, and considering the solution you provide, > I think there is still a problem. Let me re-explain. > > I have four numbers on a hunt group: > Zap/1-1 234-1000 > Zap/2-1 567-1002 > Zap/3-1 567-1003 > Zap/4-1 567-1004 > > The published number that everyone calls is 234-1000. > I want all calls to that number to be sent to the front desk. > That means, that even if the 1000 line is busy, and the next > open line found is 567-1002, I still wan the call to go to the > front desk. > > But, if someone calls 1002-1004, I want those calls to be > directed to various phones in the office. > > So, it seems that it is not sufficient to know what zap channel the > call comes in on, but we need the number dialed by the caller. > > Is this possible to do? > > Thanks > > -- > Jim Freeze > > > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > Asterisk-Users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
Alexander Lopez
2006-Apr-23 09:14 UTC
[Asterisk-Users] Need help with getting EXTEN from pstn hunt group
You will not be able to determine what number was DIALED unless you have DID service from you phone company. CF's suggestion is your best bet, unless you move over to DID service. Alex> -----Original Message----- > From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users- > bounces@lists.digium.com] On Behalf Of C F > Sent: Sunday, April 23, 2006 12:04 PM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: Re: [Asterisk-Users] Need help with getting EXTEN from pstnhunt> group > > Set up an IVR and prompt the callers to dial the extension they wishto> reach. > > On 4/23/06, Jim Freeze <asterisk@freeze.org> wrote: > > On Apr 22, 2006, at 9:02 PM, Leo Ann Boon wrote: > > > > > Jim, > > > > > > You might want to be a little more specific: > > > a. You want to find out which line the call came in on, OR > > > b. The actual PSTN number that was dialed > > > > As I think about this more, and considering the solution youprovide,> > I think there is still a problem. Let me re-explain. > > > > I have four numbers on a hunt group: > > Zap/1-1 234-1000 > > Zap/2-1 567-1002 > > Zap/3-1 567-1003 > > Zap/4-1 567-1004 > > > > The published number that everyone calls is 234-1000. > > I want all calls to that number to be sent to the front desk. > > That means, that even if the 1000 line is busy, and the next > > open line found is 567-1002, I still wan the call to go to the > > front desk. > > > > But, if someone calls 1002-1004, I want those calls to be > > directed to various phones in the office. > > > > So, it seems that it is not sufficient to know what zap channel the > > call comes in on, but we need the number dialed by the caller. > > > > Is this possible to do? > > > > Thanks > > > > -- > > Jim Freeze > > > > > > > > _______________________________________________ > > --Bandwidth and Colocation provided by Easynews.com -- > > > > Asterisk-Users mailing list > > To UNSUBSCRIBE or update options visit: > > http://lists.digium.com/mailman/listinfo/asterisk-users > > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > Asterisk-Users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users
Avi Miller
2006-Apr-23 15:03 UTC
[Asterisk-Users] Need help with getting EXTEN from pstn hunt group
Jim Freeze wrote:> I have a TDM card with 4 lines on a hunt group coming in.The latest version of FreePBX (2.1 Beta 1 - currently in SVN, but should be released soon, I'm told) allows you to create inbound routes based on Zap Channel, which I believe is what you're look for. You may want to grab a copy of 2.1 from SVN to see how they do the Zap-channel based inbound routing in extension.conf and extensions_additional.conf Hope that helps, Avi -- National Manager - Special Projects < Sydney / Melbourne / Canberra / Hobart / London /> 2/340 Gore Street T: +61 (0) 3 9486 0411 Fitzroy, VIC F: +61 (0) 3 9486 0611 3065 W: http://www.squiz.net/ .....>> Open Source - Own it - Squiz.net ...../>
Leo Ann Boon
2006-Apr-23 16:14 UTC
[Asterisk-Users] Need help with getting EXTEN from pstn hunt group
Jim Freeze wrote: <snip>> The published number that everyone calls is 234-1000. > I want all calls to that number to be sent to the front desk. > That means, that even if the 1000 line is busy, and the next > open line found is 567-1002, I still wan the call to go to the > front desk. > > But, if someone calls 1002-1004, I want those calls to be > directed to various phones in the office. > > So, it seems that it is not sufficient to know what zap channel the > call comes in on, but we need the number dialed by the caller. > > Is this possible to do?You need an ISDN line to do that. A BRI would be sufficient if you have a small number of DIDs. When using ISDN, the network will send you the actual number that was dialed as DNIS (Dialer Number Information String) or what Asterisk calls DNID. <snip>