H323 trunk with CCM V4.1

Hello,

We need to setup h323 trunk to CCM. My asterisk version 1.4.34. I have setup chan_h323 it somehow doesn’t works. I did a h323 debug and here is the log:

========================
Call from CCM to Asterisk

== New H.323 Connection created.
Received non-standard Cisco extension data 8 octets {
80 a4 00 04 00 01 01 00 …
}
H323_UU_NonStdInfo = {
callMgrParam = {
interclusterVersion = 1
enterpriseID = 0 octets {

}

}
}
–Received SETUP message
– Setting up Call
– Call token: [ip$10.200.214.10:59672/6]
– Calling party name: [Richard]
– Calling party number: [7367]
– Called party name: [7215]
– Called party number: [7215]
– Calling party IP: [10.200.214.10]
– Call Failed
– ClearCall: Request to clear call with token ip$10.200.214.10:59672/6, cause EndedByTransportFail
– Sending RELEASE COMPLETE
– Call with ended abnormally
== H.323 Connection deleted.

====================================
CALL from Asterisk to CCM

-- Executing [s@custom-ccm:2] Dial("SIP/7215-00000003", "H323/7367@10.200.214.10:1720") in new stack
-- Requested transfer capability: 0x00 - SPEECH

– Making call to 7367@10.200.214.10:1720 without gatekeeper.
Using 10.200.214.220 for outbound call
ippbx*CLI> core set verbose 9
Verbosity was 3 and is now 9
== New H.323 Connection created.
– asterisk is calling host 7367@10.200.214.10:1720
– Call token is ip$localhost/9070
– Call reference is 9070
– DTMF Payload is [pt=101]
– Called 7367@10.200.214.10:1720
Setting capabilities to 0x4 (ulaw)
Capabilities in preference order is (ulaw)
Allowed Codecs:
Table:
G.711-uLaw-64k <1>
UserInput/hookflash <2>
UserInput/RFC2833 <3>
UserInput/dtmf <4>
Set:
0:
0:
G.711-uLaw-64k <1>
1:
UserInput/hookflash <2>
2:
UserInput/RFC2833 <3>
UserInput/dtmf <4>

    -- Sending SETUP message
    -- Transmitting RFC2833 on payload 101
    -- Sending RELEASE COMPLETE
    -- ClearCall: Request to clear call with token ip$localhost/9070, cause EndedByRemoteUser

== Spawn extension (custom-ccm, s, 2) exited non-zero on 'SIP/7215-00000002’
ExternalRTPChannel Destroyed
ExternalRTPChannel Destroyed
Received non-standard Cisco extension data 8 octets {
80 a4 00 04 00 01 01 00 …
}
H323_UU_NonStdInfo = {
callMgrParam = {
interclusterVersion = 1
enterpriseID = 0 octets {

}

}
}

Can anyone help me out here?

now i managed to make IN/OUT calls using h323 but there’s still a problem. Calls from CCM to Asterisk is quite fine. The issue is Asterisk -> CCM. It appears that after 40 seconds only the call will go through. here is my h323.conf:

bindaddr=10.200.214.220

; ----------------------------------------------------------------------------------

port=1720
;tos=lowdelay
;amaflags=default
;accountcode=h323users

disallow=all
allow=g729
allow=gsm
allow=alaw
allow=ulaw

dtmfmode=rfc2833
;dtmfcodec=101

gatekeeper=ENABLE
AllowGKRouted=yes
AcceptAnonymous=yes
UserByAlias=yes
;context=from-sip-external
context=default

; 0 - don’t add PROGRESS information element (default);
; 1 - call is not end-end ISDN, further call progress information can
; possibly be available in-band;
; 3 - origination address is non-ISDN (Cisco accepts this value only);
; 8 - in-band information or an appropriate pattern is now available;
progress_setup=8

; 0 - don’t add PROGRESS IE (default);
; 8 - in-band information or an appropriate pattern is now available;
progress_alert=8

;progress_audio=yes

;progress_audio=yes

tunneling=none ;Totally disable tunneling (default)
;tunneling=cisco ;Enable Cisco-specific tunneling
;tunneling=qsig ;Enable tunneling via Q.SIG messages

;jbenable=yes
;jbforce=no
;jbmaxsize=200
;jbresyncthreshold=1000
;jbimpl=fixed
;jblog=no

I tried different combination of the above.

Here is log from the Asterisk -> CCM

-- Executing [s@macro-dialout-trunk:70] Dial("IAX2/7295-694", "H323/7367@10.200.214.10:1720|300|TW") in new stack
-- Requested transfer capability: 0x00 - SPEECH

– Making call to 7367@10.200.214.10:1720 without gatekeeper.
Using 10.200.214.220 for outbound call

[quote]======================================
Here it waits for 40 seconds and then the call goes to ccm
======================================[/quote]

-- Got SIP response 405 "Method Not Allowed" back from 10.200.10.28
    == New H.323 Connection created.
    -- asterisk is calling host 7367@10.200.214.10:1720
    -- Call token is ip$localhost/1349
    -- Call reference is 1349
    -- DTMF Payload is [pt=101]
-- Called 7367@10.200.214.10:1720

Setting capabilities to 0x4 (ulaw)
Capabilities in preference order is (ulaw)
Allowed Codecs:
Table:
G.711-uLaw-64k <1>
UserInput/hookflash <2>
UserInput/RFC2833 <3>
UserInput/dtmf <4>
Set:
0:
0:
G.711-uLaw-64k <1>
1:
UserInput/hookflash <2>
2:
UserInput/RFC2833 <3>
UserInput/dtmf <4>

    -- Sending SETUP message
    -- Transmitting RFC2833 on payload 101

Received non-standard Cisco extension data 8 octets {
80 a4 00 04 00 01 01 00 …
}
H323_UU_NonStdInfo = {
callMgrParam = {
interclusterVersion = 1
enterpriseID = 0 octets {

}

}
}
Received non-standard Cisco extension data 8 octets {
80 a4 00 04 00 01 01 00 …
}
H323_UU_NonStdInfo = {
callMgrParam = {
interclusterVersion = 1
enterpriseID = 0 octets {

}

}
}
=-= In OnAlerting for call 1349: sessionId=0
– Ringing phone for “7367”
- Progress Indicator: 0
– H323/10.200.214.10:1720-2 is ringing
– H323/10.200.214.10:1720-2 is ringing
Received non-standard Cisco extension data 8 octets {
80 a4 00 04 00 01 01 00 …
}
H323_UU_NonStdInfo = {
callMgrParam = {
interclusterVersion = 1
enterpriseID = 0 octets {

}

}
}
– Started logical channel: sending G.711-uLaw-64k
– channelsOpen = 1
External RTP Session Starting
RTP channel id 1 parameters:
– remoteIpAddress: 10.200.11.116
– remotePort: 30590
– ExternalIpAddress: 10.200.214.220
– ExternalPort: 9156
– H323/10.200.214.10:1720-2 is making progress passing it to IAX2/7295-694
– Started logical channel: receiving G.711-uLaw-64k
– channelsOpen = 2
External RTP Session Starting
RTP channel id 1 parameters:
– remoteIpAddress: 10.200.11.116
– remotePort: 30590
– ExternalIpAddress: 10.200.214.220
– ExternalPort: 9156
– H323/10.200.214.10:1720-2 is making progress passing it to IAX2/7295-694
Using 10.200.214.220 for outbound H.245 transport
=-= In OnConnectionEstablished for call 1349
– Connection Established with “7367”
– H323/10.200.214.10:1720-2 answered IAX2/7295-694
Peer capability is G.711-uLaw-64k <1>
Found peer capability G.711-uLaw-64k <1>, Asterisk code is 4, frame size (in ms) is 20
Peer capability is UserInput/hookflash <44>
Peer capability is UserInput/basicString <45>
Peer capability is UserInput/dtmf <46>
Peer capabilities = 0x4 (ulaw), ordered list is (ulaw)
channelsOpen = 1
ExternalRTPChannel Destroyed
– ClearCall: Request to clear call with token ip$localhost/1349, cause EndedByRemoteUser
– Sending RELEASE COMPLETE
channelsOpen = 0
ExternalRTPChannel Destroyed
– ClearCall: Request to clear call with token ip$localhost/1349, cause EndedByTransportFail
– 7367 has cleared the call
== H.323 Connection deleted.
– Executing [h@macro-dialout-trunk:1] Macro(“IAX2/7295-694”, “hangupcall|”) in new stack
– Executing [s@macro-hangupcall:1] ResetCDR(“IAX2/7295-694”, “w”) in new stack
– Executing [s@macro-hangupcall:2] NoCDR(“IAX2/7295-694”, “”) in new stack
– Executing [s@macro-hangupcall:3] GotoIf(“IAX2/7295-694”, “1?skiprg”) in new stack
– Goto (macro-hangupcall,s,6)
– Executing [s@macro-hangupcall:6] GotoIf(“IAX2/7295-694”, “1?skipblkvm”) in new stack
– Goto (macro-hangupcall,s,9)
– Executing [s@macro-hangupcall:9] GotoIf(“IAX2/7295-694”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,11)
– Executing [s@macro-hangupcall:11] Hangup(“IAX2/7295-694”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on ‘IAX2/7295-694’ in macro ‘hangupcall’
== Spawn h extension (macro-dialout-trunk, h, 1) exited non-zero on ‘IAX2/7295-694’
== Spawn extension (macro-dialout-trunk, s, 70) exited non-zero on ‘IAX2/7295-694’ in macro ‘dialout-trunk’
== Spawn extension (from-internal, 87367, 4) exited non-zero on ‘IAX2/7295-694’
– Hungup ‘IAX2/7295-694’

I am still having 40 sec delay before making call to CCM using h323 (chan_h323.so)

Any help is highly appreciated