[Asterisk-Users] H323 dropping connections

James Bean james at hdcs.com.au
Tue Sep 28 05:45:34 MST 2004


FC2 Asterisk 1.0

When I dial a H323 dialup to an existing OKI Voip Router (BV1250), I get
an EndedByRefusal yet the OKI Gateway is setup with the corrent reply ip
addresses etc etc, unfortunately its an existing multiple voip router
setup with g723.1 and g729a, so changing the codec on the router maybe
an issue.

I have compile in the h323 as per the channels/h323 setup with the
listed libraries.

Anyone got an idea?

-----------------------------------------------

H323.conf

[general]
port = 1720
bindaddr = 192.168.69.1 
allow=all               ; turns on all installed codecs

Extensions.conf

[pstn]

exten => s,1,NoOp(Comment Only: Call from ${CALLERIDNUM}) ; Just put a
comment in the CLI for info.
exten => s,2,Dial(Zap/g1,45,t)  ;Dial the group=1 zap card mod above
exten => s,3,Hangup

[internal]

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

exten => 099,1,Echo     ;simple echo test when you dial 099 on your
phone

include => outgoing
include => voip

[outgoing]

exten => _9X.,1,Dial(Zap/g2/${EXTEN:1})
exten => _9X.,2,Congestion()
exten => _9X.,3,Hangup

[voip]

exten => _1XX,1,Dial(H323/${EXTEN}@192.168.254.250/${CALLERIDNUM})     ;
1xx extension to Salisbury
exten => _2XX,1,Dial(H323/${EXTEN}@192.168.20.250/${CALLERIDNUM})      ;
2xx extension to Marcoola
exten => 610,1,Dial(H323/${EXTEN}@192.168.30.250/${CALLERIDNUM})  ; 610
to Jindalee
exten => 620,1,Dial(H323/${EXTEN}@192.168.40.250/${CALLERIDNUM})  ; 620
to Batteryhill

The Dump I get from h.323 trace 3 is

H.323 trace set to level 3
    -- Starting simple switch on 'Zap/1-1'
    -- Executing Dial("Zap/1-1", "H323/123 at 192.168.254.250/690") in new
stack
  0:16.928      ThreadID=0xf3bfebb0         h323caps.cxx(1650)  H323
Added capability: G.711-uLaw-64k{sw} <1>
  0:16.929      ThreadID=0xf3bfebb0         h323caps.cxx(1713)  H323
Found capability: G.711-uLaw-64k{sw} <1>
  0:16.930      ThreadID=0xf3bfebb0         h323caps.cxx(1650)  H323
Added capability: G.711-uLaw-64k{sw} <1>
  0:16.931      ThreadID=0xf3bfebb0         h323caps.cxx(1713)  H323
Found capability: G.711-uLaw-64k{sw} <1>
  0:16.931      ThreadID=0xf3bfebb0         h323caps.cxx(1734)  H323
Found capability: G.711-uLaw-64k{sw} <1>
  0:16.932      ThreadID=0xf3bfebb0         h323caps.cxx(1660)  H323
Removing capability: G.711-uLaw-64k{sw} <1>
  0:16.933      ThreadID=0xf3bfebb0         h323caps.cxx(1640)  H323
Added capability: G.711-uLaw-64k{sw} <1>
  0:16.934      ThreadID=0xf3bfebb0           h323ep.cxx(1323)  H323
Making call to: 123 at 192.168.254.250
  0:16.935      ThreadID=0xf3bfebb0         h323caps.cxx(1650)  H323
Added capability: G.711-uLaw-64k{sw} <1>
  0:16.936      ThreadID=0xf3bfebb0         h323caps.cxx(1713)  H323
Found capability: G.711-uLaw-64k{sw} <1>
  0:16.937      ThreadID=0xf3bfebb0          rfc2833.cxx(81)    RFC2833
Handler created
  0:16.937      ThreadID=0xf3bfebb0           h323ep.cxx(1393)  H323
Created new connection: ip$localhost/29016
    -- Called 123 at 192.168.254.250
16.938      H225 Caller:9fdc730       h323ep.cxx(712)   H225    Started
call thread
  0:16.984          H225 Caller:9fdc730   transports.cxx(1485)  H323TCP
Started connection:  host=192.168.254.250:1720, if=192.168.69.1:32831,
handle=34
  0:16.985          H225 Caller:9fdc730         h323.cxx(2760)  H225
Sending Setup PDU
  0:16.986          H225 Caller:9fdc730         h323.cxx(2775)  H225
Check for Fast start by local endpoint
  0:16.987          H225 Caller:9fdc730         h323.cxx(3956)  H245
Default OnSelectLogicalChannels, FastStartDisabled
  0:16.988          H225 Caller:9fdc730         h323.cxx(3144)  H245
Started control channel
  0:16.988          H225 Caller:9fdc730      h323neg.cxx(549)   H245
Sending TerminalCapabilitySet: outSeq=1
  0:16.991          H225 Caller:9fdc730      h323pdu.cxx(494)   H245
Sending PDU: request terminalCapabilitySet
  0:16.992          H225 Caller:9fdc730      h323neg.cxx(317)   H245
Sending MasterSlaveDetermination
  0:16.993          H225 Caller:9fdc730      h323pdu.cxx(494)   H245
Sending PDU: request masterSlaveDetermination
  0:16.995          H225 Caller:9fdc730      h323pdu.cxx(494)   H225
Sending PDU: setup
  0:16.996          H225 Caller:9fdc730         h323.cxx(1591)  H225
Reading PDUs: callRef=29016
  0:17.159          H225 Caller:9fdc730      h323pdu.cxx(494)   H225
Receiving PDU: callProceeding
  0:17.160          H225 Caller:9fdc730         h323.cxx(1644)  H225
Handling PDU: CallProceeding callRef=29016
  0:17.161          H225 Caller:9fdc730      h323neg.cxx(334)   H245
Stopping MasterSlaveDetermination: state=Outgoing
  0:17.161          H225 Caller:9fdc730      h323neg.cxx(561)   H245
Stopping TerminalCapabilitySet: state=InProgress
  0:17.162          H225 Caller:9fdc730         h323.cxx(1904)  H225
Set protocol version to 2 and implying H.245 version 3
  0:17.163          H225 Caller:9fdc730         h323.cxx(2095)  H225
Set remote party name: "192.168.254.250"
  0:17.164          H225 Caller:9fdc730         h323.cxx(2103)  H225
Set remote application name: "FF000000  110500  0/8448"
  0:17.223          H225 Caller:9fdc730   transports.cxx(1485)  H323TCP
Started connection:  host=192.168.254.250:1721, if=192.168.69.1:32832,
handle=37
  0:17.224          H225 Caller:9fdc730         h323.cxx(3899)  H323
InternalEstablishedConnectionCheck:
connectionState=AwaitingSignalConnect fastStartState=FastStartDisabled
  0:17.225                 H245:9fe49c0   transports.cxx(571)   H245
Started thread
  0:17.226                 H245:9fe49c0         h323.cxx(3144)  H245
Started control channel
  0:17.228                 H245:9fe49c0      h323neg.cxx(549)   H245
Sending TerminalCapabilitySet: outSeq=2
  0:17.230                 H245:9fe49c0      h323pdu.cxx(494)   H245
Sending PDU: request terminalCapabilitySet
  0:17.231                 H245:9fe49c0      h323neg.cxx(317)   H245
Sending MasterSlaveDetermination
  0:17.232                 H245:9fe49c0      h323pdu.cxx(494)   H245
Sending PDU: request masterSlaveDetermination
  0:17.326                 H245:9fe49c0      h323pdu.cxx(494)   H245
Receiving PDU: response terminalCapabilitySetAck
  0:17.327                 H245:9fe49c0      h323neg.cxx(620)   H245
Received TerminalCapabilitySetAck: state=InProgress pduSeq=2 outSeq=2
  0:17.328                 H245:9fe49c0      h323neg.cxx(630)   H245
TerminalCapabilitySet Sent.
  0:17.328                 H245:9fe49c0         h323.cxx(3899)  H323
InternalEstablishedConnectionCheck:
connectionState=AwaitingSignalConnect fastStartState=FastStartDisabled
  0:17.333                 H245:9fe49c0      h323pdu.cxx(494)   H245
Receiving PDU: command endSessionCommand
  0:17.333                 H245:9fe49c0       h323ep.cxx(1681)  H323
Clearing connection ip$localhost/29016 reason=EndedByRefusal
  0:17.334                 H245:9fe49c0         h323.cxx(1427)  H323
Call end reason for ip$localhost/29016 set to EndedByRefusal
  0:17.335                 H245:9fe49c0         h323.cxx(1445)  H225
Sending release complete PDU: callRef=29016
  0:17.337                 H245:9fe49c0      h323pdu.cxx(494)   H245
Sending PDU: command endSessionCommand
  0:17.338                 H245:9fe49c0      h323pdu.cxx(494)   H225
Sending PDU: releaseComplete
  0:17.339                 H323 Cleaner       h323ep.cxx(1738)  H323
Cleaning up connections
  0:17.340                 H245:9fe49c0         h323.cxx(3207)  H245
Control channel closed.
  0:17.341                 H323 Cleaner         h323.cxx(1482)  H323
Connection ip$localhost/29016 closing:
connectionState=AwaitingSignalConnect
  0:17.342                 H323 Cleaner   transports.cxx(1090)  H323
H323Transport::Close
  0:17.343                 H323 Cleaner   transports.cxx(1172)  H323
H323Transport::CleanUpOnTermination for H245:9fe49c0
  0:17.344                 H323 Cleaner   transports.cxx(1090)  H323
H323Transport::Close
  0:17.344          H225 Caller:9fdc730      h323pdu.cxx(1159)  H225
Read error (4): Interrupted system call
  0:17.345          H225 Caller:9fdc730       h323ep.cxx(1681)  H323
Clearing connection ip$localhost/29016 reason=EndedByTransportFail
  0:17.346          H225 Caller:9fdc730   transports.cxx(1090)  H323
H323Transport::Close
  0:17.347          H225 Caller:9fdc730         h323.cxx(1634)  H225
Signal channel closed.
  0:17.392                 H323 Cleaner   transports.cxx(1172)  H323
H323Transport::CleanUpOnTermination for H225 Caller:9fdc730
  0:17.393                 H323 Cleaner         h323.cxx(1542)  H323
Connection ip$localhost/29016 terminated.
  == No one is available to answer at this time
  0:17.395                 H323 Cleaner         h323.cxx(1377)  H323
Connection ip$localhost/29016 deleted.
  0:17.396                 H323 Cleaner       h323ep.cxx(1738)  H323
Cleaning up connections
    -- Hungup 'Zap/1-1'

---------------------------------------------

Sorry if that didn't wrap on your email properly.

James



More information about the asterisk-users mailing list