[Asterisk-Dev] 2 minutes pause before ring on H323 channel

Peter Valkov petew at rocketmail.com
Tue May 10 01:32:51 MST 2005


I have build asterisk from latest CVS HEAD-05/09/05 with H323 support as described in README file.
Open H.323 version v1.17.1 and PWLib v1.9.0 on Mandrake Linux 10.2 kernel-2.6.11

I tested it with following phones: 
-- XLite (SIP softphone)
-- QMix SIP IP phone (PA168F)
-- SJPhone (H323 softphone)
-- QMix H323 IP phone (PA168F)
-- FireFly (IAX2 softphone)

Everything works fine except a problem with h323 extension dialing. Behavior is the same for both
SJPhone (soft phone) and QMix (PA168F). When I dial such extension I have to wait 2 minutes
exactly (120 seconds) before extension rings. After long way of trial and errors with .conf files
I managed to minimize this time to 1 minute exactly (60 seconds) 

exten => 20,1,Dial(H323/h323phone) ; this leads to 120 seconds pause before ring 
exten => 21,1,Dial(H323/h323phone at 192.168.0.101) ; this leads to 60 seconds pause before ring 

After quick debugging session I found that this time goes to the call to
H323EndPoint::MakeCallLocked(fullAddress, token, opts) in MyH323EndPoint::MakeCall function.
MakeCallLocked is part of OpenH323 and this is too deep for me... I'm not sure is this is a
problem of OpenH323 or of channel driver but my speculation is that the time goes in some kind of
timeout wait... who knows...

Does anyone else experienced common problems? Any help to resolve the problem will be appreciated

And here are my .conf files ...  very basic yet ;-)

==== extensions.conf ===
[general]
static=yes
writeprotect=no

[globals]
SIP_XLITE = SIP/xlite
SIP_PHONE = SIP/sipphone

H323_SJPHONE = H323/sjphone at 192.168.0.1
H323_PHONE = H323/h323phone at 192.168.0.101

IAX_FIREFLY = IAX2/firefly

;
; Inbound
;

[inbound]
exten => s, 1, Answer
exten => s, 2, Playback(ss-noservice)
exten => s, 3, Hangup

;
; Internal Extensions
;

[local]
exten => 10,1,Dial(${SIP_XLITE})
exten => 11,1,Dial(${SIP_PHONE})

exten => 20,1,Dial,${H323_SJPHONE}
exten => 21,1,Dial,${H323_PHONE}

exten => 30,1,Dial(${IAX_FIREFLY})

exten => 0, 1, Answer
exten => 0, 2, Playback(ss-noservice)
exten => 0, 3, Hangup

=== h323.conf ===

[general]
port = 1720
bindaddr = 192.168.0.100
disallow = all
allow = ulaw
gatekeeper = DISABLE
context = inbound

[h323phone]
type = friend
host = 192.168.0.101
context = local
callerid = "h323phone" <21>

[sjphone]
type = friend
host = 192.168.0.1
context = local
callerid = "sjphone" <20>



	
		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - You care about security. So do we. 
http://promotions.yahoo.com/new_mail



More information about the asterisk-dev mailing list