[Asterisk-Users] Need help with getting EXTEN from pstn hunt group

Jim Freeze asterisk at freeze.org
Sun Apr 23 07:19:44 MST 2006


Hi

On Apr 22, 2006, at 9:02 PM, Leo Ann Boon wrote:

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

All seems to work up to this point, But I am having problems with the  
Set() command.
I think the Set() syntax is
    Set(DND=2341001)

but when I do SayAlpha(${DNID}) or SayDigits(${DNID}), the output is  
always and
empty string.

> 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
>
>
> Hope this helps.
Yes, much. Thanks
--
Jim Freeze






More information about the asterisk-users mailing list