[asterisk-users] Using ooh323 with Gatekeeper controlled dialling

Michael J. Tubby G8TIC mike.tubby at thorcom.co.uk
Wed Feb 28 18:26:33 MST 2007


All,

I've fixed my problem getting Asterisk ooh323 channel to stay registered with my Cisco IOPS gatekeeper, now I need to get dialling working.

I have the following:

    [Asterisk with ooh323] ----h323---- [Cisco IOS GK] ----h323---- [Radio system OpenH323]
        192.168.1.5                                192.168.1.6                             192.168.1.7

the Asterisk box has numbers like 8102001, 8102002, etc.   and the radio system has numbers like 8172001, 8172002 etc.

Both devices are registered with the Cisco H.323 gatekeeper as gateways.

I have a PC with "Ephony H323 soft phone" which is also registered to the Gatekeeper (as a terminal) - from this I can call 810xxxx and 817xxxx numbers, so my routing in the Cisco GK must be about right...

!
gatekeeper
 zone local THORCOM int.thorcom.com 192.168.1.6
 gw-type-prefix 817* gw ipaddr 192.168.1.7 1720
 gw-type-prefix 810* gw ipaddr 192.168.1.5 1720
 no shutdown
!


What is the correct form of Dial() to use in extensions.conf on the asterisk box to place an ooh323 call via the Gatekeeper?  What do I need in the ooh323.conf?  I've tried several/many combinations without any success and I'm finding the (very) limited documentation in the ooh323.conf file confusing...

In extensions.conf I've tried things like:

 
a) using ooh3232/${EXTEN}/peer-name

    exten => _817XXXX,1,Dial(ooh323/${EXTEN}/cisco-gk)


 
b) using ooh323/${EXTEN}/H232-ID

    exten => _817XXXX,1,Dial(ooh323/${EXTEN}/H323-GK)


c) using ooh323/${EXTEN}/ip-address-of-gatekeeper

    exten => _817XXXX,1,Dial(ooh323/${EXTEN}/192.168.1.6)


Everything results in:

    -- Executing NoOp("IAX2/thorcom-1", ""route-tetra: routing call to: 8172008 via H.323/GateKeeper from: 8202001"") in new stack
    -- Executing Dial("IAX2/thorcom-1", "ooh323/8172008 at 192.168.1.6") in new stack
    -- Called 8172008 at 192.168.1.6
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Executing Hangup("IAX2/thorcom-1", "") in new stack

back at the asterisk box and the following in the Cisco Gatekeeper logs:

Mar  1 01:19:00.080:  RecvUDP_IPSockData  successfully rcvd message of length 128 from 192.168.1.5:13030
Mar  1 01:19:00.084: ARQ (seq# 14) rcvd
Mar  1 01:19:00.084: gk_rassrv_arq: arqp=0x82E42F38, crv=0xE, answerCall=0
Mar  1 01:19:00.088:  IPSOCK_RAS_sendto:   msg length 47 from 192.168.1.6:1719 to 192.168.1.5: 13030
Mar  1 01:19:00.088:       RASLib::RASSendACF: ACF (seq# 14) sent to 192.168.1.5
Mar  1 01:19:08.017: gk_process: got a TIMER event


Yes, when I place a call from the Ephony softphone on the same Gatekeeper I get progress and ringing, callset up etc:

Mar  1 01:21:34.713:  RecvUDP_IPSockData  successfully rcvd message of length 97 from 192.168.144.20:2288
Mar  1 01:21:34.717: GRQ (seq# 14206) rcvd
Mar  1 01:21:34.717:  IPSOCK_RAS_sendto:   msg length 33 from 192.168.1.6:1719 to 192.168.144.20: 2288
Mar  1 01:21:34.717:       RASLib::RASSendGCF: GCF (seq# 14206) sent to 192.168.144.20
Mar  1 01:21:34.737:  RecvUDP_IPSockData  successfully rcvd message of length 173 from 192.168.144.20:2288
Mar  1 01:21:34.737: RRQ (seq# 14207) rcvd
Mar  1 01:21:34.741: gk_rassrv_rrq: gwtype=0x0, endpttype=0x8
Mar  1 01:21:34.741:  IPSOCK_RAS_sendto:   msg length 116 from 192.168.1.6:1719 to 192.168.144.20: 2288
Mar  1 01:21:34.745:       RASLib::RASSendRCF: RCF (seq# 14207) sent to 192.168.144.20
Mar  1 01:21:34.745:  IPSOCK_RAS_sendto:   msg length 29 from 192.168.1.6:1719 to 192.168.144.20: 2288
Mar  1 01:21:34.745:       RASLib::RASSendIRQ: IRQ (seq# 68) sent to 192.168.144.20
Mar  1 01:21:34.865:  RecvUDP_IPSockData  successfully rcvd message of length 135 from 192.168.144.20:2288
Mar  1 01:21:34.865: IRR (seq# 68) rcvd
Mar  1 01:21:34.865: gk_rassrv_irr: irrp=0x82E3F744, from 192.168.144.20:2288
Mar  1 01:21:38.039: gk_process: got a TIMER event
Mar  1 01:21:38.039: gk_handle_timers
Mar  1 01:21:38.039: gk_handle_timers: managed timer expired 0x832E6DC8
Mar  1 01:21:41.893:  RecvUDP_IPSockData  successfully rcvd message of length 148 from 192.168.144.20:2288
Mar  1 01:21:41.893: ARQ (seq# 14208) rcvd
Mar  1 01:21:41.893: gk_rassrv_arq: arqp=0x82E3FD5C, crv=0x166D, answerCall=0
Mar  1 01:21:41.893: rassrv_get_addrinfo: (8172008) Matched tech-prefix 817
Mar  1 01:21:41.893: rassrv_get_addrinfo: (8172008) unresolved zone prefix, using source zone THORCOM
Mar  1 01:21:41.897:  IPSOCK_RAS_sendto:   msg length 82 from 192.168.1.6:1719 to 192.168.144.20: 2288
Mar  1 01:21:41.897:       RASLib::RASSendACF: ACF (seq# 14208) sent to 192.168.144.20
Mar  1 01:21:41.945:  RecvUDP_IPSockData  successfully rcvd message of length 306 from 192.168.1.7:1518
Mar  1 01:21:41.945: ARQ (seq# 6442) rcvd
Mar  1 01:21:41.949: gk_rassrv_arq: arqp=0x82E4FCC8, crv=0x166D, answerCall=1
Mar  1 01:21:41.953:  IPSOCK_RAS_sendto:   msg length 31 from 192.168.1.6:1719 to 192.168.1.7: 1518
Mar  1 01:21:41.953:       RASLib::RASSendACF: ACF (seq# 6442) sent to 192.168.1.7
Mar  1 01:21:41.953:  RecvUDP_IPSockData  successfully rcvd message of length 202 from 192.168.144.20:2288
Mar  1 01:21:41.957: IRR (seq# 14209) rcvd
Mar  1 01:21:41.957: gk_rassrv_irr: irrp=0x83A7F858, from 192.168.144.20:2288
Mar  1 01:21:41.993:  RecvUDP_IPSockData  successfully rcvd message of length 297 from 192.168.1.7:1518
Mar  1 01:21:41.993: IRR (seq# 6443) rcvd
Mar  1 01:21:41.997: gk_rassrv_irr: irrp=0x82E4FCC8, from 192.168.1.7:1518
cisco-gk#



What do I need to do in the Dial() command and/or the ooh323.conf to get Asterisk to place a H.323 call via the Gatekeeper and on to the 817xxxx gateway? i.e. work like the soft-phone does?



Mike

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070228/2697e724/attachment-0001.htm


More information about the asterisk-users mailing list