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
_______________________________________________
--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