[Asterisk-Users] Asterisk slow transferring calls

James Bean james at hdcs.com.au
Wed Jun 15 03:47:40 MST 2005


Hi, 

Running Asterisk CVS-Head latest on a Dual P3 800 1Gb Ram.

For some odd reason now that I have the asterisk box almost to the stage
I want it, I hit a problem.

I have a te405p in the system, Zap/g1 is connected to the telco as an
ISDN 30, Zap/g4 is connected by ISDN Primary Rate to an Ericcson BP250
phone system.

When calls come in on g1 they go straight through instantaneously to the
entensions on the ericsson or local sip phones no problems, if someone
on a sip phone calls an extension on the ericsson it goes straight
through no pause.

If someone on the ericsson system dials a sip phone it takes close to 3
full seconds before the sip phone rings, it takes that long just to get
to the asterisk box, although its not the ericsson phone system that is
the problem, if I dump a straight plain extensions.conf into the system
it works perfectly and is fast from the ericsson to the sip phone, if I
use the one I want to get running its slow again.

Can someone have a breeze through and let me know what they think might
be causing the problem.

I think I am not getting the right idea with out the contexts work and
it might be looping or something, te405p-in and sip need access to each
other and the ability to dialout, and voip, voip needs access to dial
the ericsson system and the sip phones (haven't added that part yet) but
not access to an outside line.

James

My extensions.conf

#include extensions_sip.conf

[globals]
EMERGENCY=0
EMERGENCY_TRUNK=Zap/10

[dialstring]

exten => i,1,Playback(invalid)
exten => i,2,Hangup
exten => t,1,Hangup

[atp-out]

exten =>
_9X.,1,Dial(IAX2/username:password at overhere.overthere/${EXTEN:1})
exten => _9X.,2,Congestion
exten => _9X.,3,Hangup

[atp-in]

exten => 30182849,1,SetMusicOnHold(record)
exten => 30182849,2,Dial(SIP/bt-rlm,45,t)
exten => 30182849,3,Voicemail,u550
exten => 30182849,103,Voicemail,b550

[te405p-in]

exten => _2XX,1,Dial(Zap/g4/${EXTEN},60,r)
exten => _2XX,2,Hangup

exten => _73816592XX,1,Dial(Zap/g4/${EXTEN:-3},60,r)
exten => _73816592XX,2,Hangup

exten => _7XX,1,Dial(Zap/g4/${EXTEN},60,r)
exten => _7XX,2,Hangup

exten => _1XXX,1,Dial(Zap/g4/${EXTEN},60,r)
exten => _1XXX,2,Hangup

include => sip
include => parkedcalls
include => te405p-outgoing
include => transfer-record

[te405p-ext]

exten => s,1,SetMusicOnHold(random)
exten => s,2,Dial(SIP/bt-pavilion,45,t)
exten => s,4,VoiceMail,u500
exten => s,5,Hangup

exten => 38166400,1,SetMusicOnHold(random)
exten => 38166400,2,Dial(Zap/g4/211,600,t)
exten => 38166400,3,VoiceMail,u500
exten => 38166400,4,Hangup

exten => 38166444,1,DISA(1234|sip)

exten => _381664XX,1,SetMusicOnHold(random)
exten => _381664XX,2,Dial(Zap/g4/2${EXTEN:-2},600,t)
exten => _381664XX,3,VoiceMail,u500
exten => _381664XX,4,Hangup

[te405p-outgoing]

exten =>
000,1,SetVar(CALLFILENAME=/mnt/asterisk/EMERGENCY_CALL-${CALLERID}-${TIM
ESTAMP})
exten => 000,2,Monitor(gsm,${CALLFILENAME},m)
exten => 000,3,Goto(emergency,s,1)

exten =>
0000,1,SetVar(CALLFILENAME=/mnt/asterisk/EMERGENCY_CALL-${CALLERID}-${TI
MESTAMP})
exten => 0000,2,Monitor(gsm,${CALLFILENAME},m)
exten => 0000,3,Goto(emergency,s,1)

exten => _00011X.,1,AGI(blockintl.agi|${EXTEN:1})

exten => _01902X.,1,Hangup

exten =>
_0X.,1,SetVar(CALLFILENAME=/mnt/asterisk/${CALLERID}-${EXTEN:1}-${TIMEST
AMP})
exten => _0X.,2,Monitor(gsm,${CALLFILENAME},m)
exten => _0X.,3,Dial(Zap/g1/${EXTEN:1})
exten => _0X.,4,Congestion
exten => _0X.,5,Hangup

include => phatphingers

[transfer-record]

exten =>
_52XX,1,SetVar(CALLFILENAME=/mnt/asterisk/CallTo-${EXTEN:1}-${TIMESTAMP}
)
exten => _52XX,2,Monitor(gsm,${CALLFILENAME},m)
exten => _52XX,3,Dial(ZAP/g4/${EXTEN:1})
exten => _52XX,4,Congestion
exten => _52XX,104,Congestion

[voip]

exten => 589,1,Dial(IAX2/username:password at overhere.overthere/690)
exten => _2XX,1,Dial(Zap/g4/${EXTEN},60,r)

[parkedcalls]

exten => 590,1,playback(lm1/call_may_be_recorded)
exten =>
590,2,ParkAndAnnounce(pbx-transfer:PARKED|7200|SIP/DNE|te405p-in,Zap/g4/
211,1)

[emergency]
exten => s,1,SetVar(SET_EMERG_FLAG=0)
exten => s,n(checkavail),ChanIsAvail(${EMERGENCY_TRUNK})
exten => s,n,SetGlobalVar(EMERGENCY=1)
exten => s,n,SetVar(SET_EMERG_FLAG=1)
exten => s,n(dial),Dial(${EMERGENCY_TRUNK}/${EMERGENCY_NUM})
exten => s,s+2(trunkbusy),GotoIf($[${EMERGENCY} = 1]?inprogress)
exten => s,n,SoftHangup(${EMERGENCY_TRUNK}-1)
exten => s,n,Wait(12)
exten => s,n,Goto(checkavail)
exten => s,s+2(inprogress),Congestion
exten => s,checkavail+101(notavail),Goto(trunkbusy)
exten => h,1,GotoIf($[${SET_EMERG_FLAG} = 1]?3)
exten => h,3,SetGlobalVar(EMERGENCY=0)

[phatphingers]
exten => _X.,1,answer
exten => _X.,2,wait(.5)
exten => _X.,3,playback(vm-extension)
exten => _X.,4,sayalpha(${EXTEN})
exten => _X.,5,playback(invalid)
exten => _X.,6,hangup

My extensions_sip.conf

[sip]

exten => 555,1,SetMusicOnHold(random)
exten => 555,2,Dial(ZAP/g4/211)
exten => 555,3,Voicemail,u555
exten => 555,103,Voicemail,b555

exten => 556,1,SetMusicOnHold(random)
exten => 556,2,Dial(SIP/js-softphone,30,Ttr)
exten => 556,3,Voicemail,u556
exten => 556,103,Voicemail,b556

exten => 557,1,SetMusicOnHold(random)
exten => 557,2,Dial(SIP/hl,30,Ttr)
exten => 557,3,Voicemail,u557
exten => 557,103,Voicemail,b557

exten => 558,1,SetMusicOnHold(random)
exten => 558,2,Dial(SIP/zyxtel01,60,Ttr)
exten => 558,3,Voicemail,u580
exten => 558,103,Voicemail,b580

exten => 560,1,SetMusicOnHold(random)
exten => 560,2,Dial(SIP/odebeljak,30,Ttr)
exten => 560,3,Voicemail,u560
exten => 560,103,Voicemail,b560

exten => 561,1,SetMusicOnHold(random)
exten => 561,2,Dial(SIP/dsetevenson,30,Ttr)
exten => 561,3,Voicemail,u561
exten => 561,103,Voicemail,b561

exten => 562,1,SetMusicOnHold(random)
exten => 562,2,Dial(SIP/mkelso,30,Ttr)
exten => 562,3,Voicemail,u562
exten => 562,103,Voicemail,b562

exten => 563,1,SetMusicOnHold(random)
exten => 563,2,Dial(SIP/shorrell,30,Ttr)
exten => 563,3,Voicemail,u563
exten => 563,103,Voicemail,b563

exten => 564,1,SetMusicOnHold(random)
exten => 564,2,Dial(SIP/gwilson,30,Ttr)
exten => 564,3,Voicemail,u564
exten => 564,103,Voicemail,b564

exten => 565,1,SetMusicOnHold(random)
exten => 565,2,Dial(SIP/sabraham,30,Ttr)
exten => 565,3,Voicemail,u565
exten => 565,103,Voicemail,b565

exten => 566,1,SetMusicOnHold(random)
exten => 566,2,Dial(SIP/jsparksman,30,Ttr)
exten => 566,3,Voicemail,u566
exten => 566,103,Voicemail,b566

exten => 567,1,SetMusicOnHold(random)
exten => 567,2,Dial(SIP/rdrysdale,30,Ttr)
exten => 567,3,Voicemail,u567
exten => 567,103,Voicemail,b567

exten => 580,1,SetMusicOnHold(random)
exten => 580,2,Dial(SIP/softphone1,30,Ttr)
exten => 580,3,Voicemail,u580
exten => 580,103,Voicemail,b580

include => te405p-in
include => atp-out
include => voip



More information about the asterisk-users mailing list