Shouldn't it be ${EXTEN}, not $EXTEN ??
e.g.
exten => _9.,1,Dial(Zap/1/$EXTEN:1)
should be
exten => _9.,1,Dial(Zap/1/${EXTEN:1})
----- Original Message -----
From: "Russell Horn" <asterisk-users@albanach.com>
To: <asterisk-users@lists.digium.com>
Sent: Friday, August 13, 2004 4:58 PM
Subject: [Asterisk-Users] Problem with ougoing Zap calls
> I'm able to receive but not make calls with zaptel using an X101P
> connecting to Asterisk with an Xlite client. My client has context = flat
> in sip.conf and extensions number 8919
>
> In extensions.conf I've got:
>
> [home]
> ; Line 1
> ;
> exten => 8919,1,Dial(${PHONES1},20,Ttm)
> exten => 8919,2,Macro(vmessage,${PHONES1VM})
> exten => 8919,3,Hangup
>
> [outgoing]
> exten => _9.,1,Dial(Zap/1/$EXTEN:1)
>
> [flat]
> include => home
> include => outgoing
>
>
> zapata.conf contains the following - I have 2 x101p cards installed
>
> [channels]
> language=en
> group=1
> context=from-analog
> signalling=fxs_ks
> usecallerid=no
> echocancel=yes
> echocancelwhenbridged=yes
> channel => 1-2
>
>
> When I dial the asterisk box from an ordinary phone it picks up fine and
> shows:
>
> -- Starting simple switch on 'Zap/1-1'
> -- Executing Dial("Zap/1-1", "SIP/8919|30") in new
stack
> -- Called 8919
> -- SIP/8919-2e9f is ringing
>
> But if I try and dial out I get:
>
> -- Executing Dial("SIP/8919-917c",
"Zap/1/$EXTEN:1") in new stack
> -- Called 1/$EXTEN:1
> -- Zap/1-1 answered SIP/8919-917c
> -- Hungup 'Zap/1-1'
> == Spawn extension (flat, 95558925, 1) exited non-zero on
'SIP/8919-917c'>
>
> So my call is immediatly answered, but doesn't go anywhere, then
asterisk
> hangs up.
>
> Has anyone else experienced this, or know what's wrong? Help would be
> very much appreciated!
>
> Russell.
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users@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
>