[asterisk-users] outgoing call problem

Tzafrir Cohen tzafrir.cohen at xorcom.com
Mon Jul 10 22:27:12 MST 2006


Another note:

On Mon, Jul 10, 2006 at 10:05:22PM +0900, Ganbaa wrote:
> Hi,
> 
> I have configured digium tdm04b card with asterisk on debian. Incoming 
> call is ok. But outgoing call has problem. Would you give me advice ? 

It would have helped to get a CLI trace of of such a problematic call,
BTW.

See below...

> 
> Here is my config files.
> 
> zaptel.conf 
> 
> fxsks=1
> fxsks=2
> fxsks=3
> fxsks=4
> loadzone=us
> defaultzone=us
> 
> zapata.conf
> 
> [channels]
> language=en
> context=incoming
> signalling=fxs_ks
> usecallerid=yes
> hidecallerid=no
> callwaiting=no
> usecallingpres=yes
> callwaitingcallerid=yes
> transfer=no
> echocancel=yes
> echocancelwhenbridged=yes
> echotraining=yes
> rxgain=1
> txgain=4
> group=1
> callgroup=1
> pickupgroup=1
> immediate=no
> musiconhold=default
> busydetect=yes
> callprogress=no
> channel => 1-4
> 
> extension.conf
> 
> [general]
> static=yes
> writeprotect=no

Are you sure?

> 
> [home]
> exten => s,1,Answer

Missing priority 2.

> exten => s,3,Playback(thank-you-cooperation)
> exten => s,4,WaitExten
> 
> exten => _1XXX,1,Playback(thank-you-cooperation)
> exten => _1XXX,2,Answer
> exten => _1XXX,3,Wait(1)
> exten => _1XXX,4,Playback(thank-you-for-calling)
> exten => _1XXX,5,Dial(SIP/${EXTEN},10)

Mising priorities 6,7

> exten => _1XXX,8,Voicemail(u${EXTEN})
> exten => _1XXX,9,Hangup
> exten => _1XXX,103,Voicemail(b${EXTEN})
> exten => _1XXX,104,Hangup
> 
> exten => _9.,1,Answer
> exten => _9.,1,Playback(thank-you-cooperation)
> exten => _9.,2,Dial(Zap/g1/${EXTEN})

double priority 1 (try 'show dialplan home' and you'll only see the
first). Also, as already mentioned, use ${EXTEN:1}

To avoid all of those manual numbering and renumbering issues, use the
priority 'n' whereever possible:

exten => s,1,Answer
exten => s,n,Playback(thank-you-cooperation)
exten => s,n,WaitExten

-- 
Tzafrir Cohen      sip:tzafrir at local.xorcom.com
icq#16849755       iax:tzafrir at local.xorcom.com
+972-50-7952406           
tzafrir.cohen at xorcom.com  http://www.xorcom.com



More information about the asterisk-users mailing list