[Asterisk-Users] Zap - What is going on?

Rob Scott Rob_Scott at epam.com
Mon Apr 4 05:00:13 MST 2005


For a start it should be 

${EXTEN}

You have to realize that ALL variables look like that.
Dollar-open-curly-brackets-variablename-close-curly-brackets.

So it didn't see your text as a variable and it tried to call the number
$EXTEN on Zap/g2.
 

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Etienne
Pretorius
Sent: 04 April 2005 13:27
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [Asterisk-Users] Zap - What is going on?

Ok - I was told that you set a group for Zap channels.

So I tried to make use of my Zap channels.... so the 2 I am interisted
in is channel 3 and channel 4.
I make Channel 3 in use bu calling a line... then I try to call another
line so expecting to have Zap channel 4 open and allowing me to make a
call, but it just keeps on ringing... and then times out. Can anyone
please shed some light on this for me?

extensions.conf

[outgoing]                                                      ;Dial 
"0" on the phone for external line
                                                                ;SIP
Phones need another way... they act like a cell phone
exten => _0,1,Dial(Zap/g2/$EXTEN,20,tr)                         ;Try 
finding a line...
exten => _0,2,Goto(_0-${DIALSTATUS},1)                          ;Jump 
based on status (NOANSWER,BUSY,CHANUNAVAIL,CONGESTION,ANSWER)

exten => _0-ANSWER,1,Goto(_0,102)
exten => _0-.,1,Goto(_0,1)                                      ;Try 
another line

exten => _0,102,Congestion
exten => _0,103,Hangup

Asterisk Console:

    -- Starting simple switch on 'Zap/1-1'
    -- Executing Dial("Zap/1-1", "Zap/g2/$EXTEN|20|tr") in new stack
    -- Called g2/$EXTEN
    -- Nobody picked up in 20000 ms
    -- Hungup 'Zap/4-1'                                                
                                    <===========That channel is free and
has a seperate phone line connected to it.
    -- Executing Goto("Zap/1-1", "_0-NOANSWER|1") in new stack


-- 
Kind Regards
Etienne



_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at 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



More information about the asterisk-users mailing list