[Asterisk-Dev] Problem with H.323

Sergio Serrano Revuelto sergio.serrano at avanzada7.com
Wed Apr 23 11:03:53 MST 2003


Hi all,
	System that I use is the following one,

	IP phone(alias 1) <-connected to-> gnugk
	asterisk(chan_h323) <-connected to-> gnugk
	IP phone(alias 2) <-connected to-> gnugk

In extensions.conf section h323 is the following one,

	exten => 701,1,Wait(1)
	exten => 701,2,Dial(H323/1|20|t|T)

	exten => 702,1,Wait(1)
	exten => 702,2,Dial(H323/2|20|t|T)

First case)

When I call from IP phone(alias 1) to IP phone(alias 2) through gnugk
only, everything works fine. If I hungup IP phone(alias 1) before I
pickup IP phone(alias 2), everything finishes correctly.

Second case)

When I call from IP phone(alias 1) to IP phone(alias 2) through
asterisk(chan_h323) and I pickup IP phone(alias 2), connection is
established and everything finishes ok. But if I hungup IP phone(alias
1) before I pickup IP phone(alias 2), IP phone(alias 2) crashes.


I attach H.323 trace of asterisk in second case.

Could somebody help me?

Thanks in advance
srsergio
-------------- next part --------------
 0:44.013          H323 Listener:80fbcb8   transports.cxx(1431)  H323TCP Started connection:  host=192.168.0.204:1123, if=192.168.0.204:1720, handle=36
        == New H.323 Connection created.
        -- Received SETUP message...
        == Setting up Call
           -- Calling party name:  Sergio
           -- Calling party number:  5
           -- Called  party name:  704
           -- Called  party number:  704
    -- Executing Wait("H323/ip$192.168.0.204:1123/5007", "1") in new stack
  0:44.033          H225 Answer:80fa838         h323.cxx(4167)  H323    CreateLogicalChannel - unknown data type
  0:44.036          H225 Answer:80fa838         h323.cxx(4167)  H323    CreateLogicalChannel - unknown data type
        =*= In CreateRealTimeLogicalChannel
                -- externalIpAddress: 192.168.0.204
                -- externalPort: 35462
                -- Direction: IsReceiver
        =*= In CreateRealTimeLogicalChannel
                -- externalIpAddress: 192.168.0.204
                -- externalPort: 35462
                -- Direction: IsTransmitter
  0:44.044          H225 Answer:80fa838         h323.cxx(2439)  H323    Answering call: AnswerCallAlertWithMedia
  0:44.045          H225 Answer:80fa838         h323.cxx(3933)  H245    Default OnSelectLogicalChannels, FastStartResponse
         -- Started logical channel: sending G.711-ALaw-64k{sw}
                -- channelsOpen = 1
                -- remoteIpAddress: 192.168.0.155
                -- remotePort: 9000
                -- ExternalIpAddress: 192.168.0.204
                -- ExternalPort: 35462
         -- Started logical channel: receiving G.711-ALaw-64k{sw}
                -- channelsOpen = 2
                -- remoteIpAddress: 192.168.0.155
                -- remotePort: 9000
                -- ExternalIpAddress: 192.168.0.204
                -- ExternalPort: 35462
  0:44.056          H225 Answer:80fa838         h323.cxx(1567)  H225    Reading PDUs: callRef=5007
    -- Executing Dial("H323/ip$192.168.0.204:1123/5007", "H323/4|20|t|T") in new stack
dest: 4
 -- Making call to 4 using gatekeeper.
  0:45.016      ThreadID=0x00005817           h323ep.cxx(1289)  H323    Making call to: 4
        == New H.323 Connection created.
        -- nbx1 is calling host 4
        -- Call token is ip$localhost/9083
        -- Call reference is 9083
    -- Called 4
  0:45.029          H225 Caller:8110ae8   transports.cxx(1431)  H323TCP Started connection:  host=192.168.0.204:1721, if=192.168.0.204:1124, handle=47
  0:45.031          H225 Caller:8110ae8         h323.cxx(3933)  H245    Default OnSelectLogicalChannels, FastStartInitiate
        =*= In CreateRealTimeLogicalChannel
                -- externalIpAddress: 192.168.0.204
                -- externalPort: 3670
                -- Direction: IsReceiver
        =*= In CreateRealTimeLogicalChannel
                -- externalIpAddress: 192.168.0.204
                -- externalPort: 3670
                -- Direction: IsTransmitter
        -- Sending SETUP message
  0:45.037          H225 Caller:8110ae8         h323.cxx(3120)  H245    Started control channel
  0:45.044          H225 Caller:8110ae8         h323.cxx(1567)  H225    Reading PDUs: callRef=9083
  0:45.213          H225 Caller:8110ae8         h323.cxx(2071)  H225    Set remote party name: "192.168.0.204"
         -- Started logical channel: sending G.711-ALaw-64k{sw}
                -- channelsOpen = 3
                -- remoteIpAddress: 192.168.0.154
                -- remotePort: 9000
                -- ExternalIpAddress: 192.168.0.204
                -- ExternalPort: 3670
         -- Started logical channel: receiving G.711-ALaw-64k{sw}
                -- channelsOpen = 4
                -- remoteIpAddress: 192.168.0.154
                -- remotePort: 9000
                -- ExternalIpAddress: 192.168.0.204
                -- ExternalPort: 3670
  0:45.220          H225 Caller:8110ae8         h323.cxx(3003)  H225    Fast starting 2 channels
  0:45.579          H225 Caller:8110ae8         h323.cxx(2071)  H225    Set remote party name: "192.168.0.204"
        -- Ringing phone for "192.168.0.204"
  0:47.165          H225 Answer:80fa838         h323.cxx(1421)  H225    Sending release complete PDU: callRef=5007
                channelsOpen = 3
  0:47.171                 H323 Cleaner       h323ep.cxx(1908)  H323    Stopped receiving logical channel: G.711-ALaw-64k{sw} <1>
                channelsOpen = 2
  0:47.171                 H323 Cleaner       h323ep.cxx(1908)  H323    Stopped sending logical channel: G.711-ALaw-64k{sw} <1>
  0:47.173          H225 Answer:80fa838         h323.cxx(1610)  H225    Signal channel closed.
  0:47.190                 H323 Cleaner         h323.cxx(1518)  H323    Connection ip$192.168.0.204:1123/5007 terminated.
 -- Sergio has stopped calling
        == H.323 Connection deleted.
        -- ClearCall: Request to clear call with token ip$localhost/9083
  0:47.192      ClearCallT...d:08101198         h323.cxx(1421)  H225    Sending release complete PDU: callRef=9083
                channelsOpen = 1
  0:47.199                 H323 Cleaner       h323ep.cxx(1908)  H323    Stopped receiving logical channel: G.711-ALaw-64k{sw} <1>
                channelsOpen = 0
  0:47.199                 H323 Cleaner       h323ep.cxx(1908)  H323    Stopped sending logical channel: G.711-ALaw-64k{sw} <1>
  0:47.199          H225 Caller:8110ae8      h323pdu.cxx(1102)  H225    Read error (0): 
  0:47.201          H225 Caller:8110ae8         h323.cxx(1610)  H225    Signal channel closed.
  == Spawn extension (outgoing, 704, 2) exited non-zero on 'H323/ip$192.168.0.204:1123/5007'
  0:47.220                 H323 Cleaner         h323.cxx(1518)  H323    Connection ip$localhost/9083 terminated.
 -- Call with 192.168.0.204 completed
        == H.323 Connection deleted.
-------------- next part --------------
 2:25.858          H323 Listener:80fbcb8   transports.cxx(1431)  H323TCP Started connection:  host=192.168.0.204:1126, if=192.168.0.204:1720, handle=38
        == New H.323 Connection created.
        -- Received SETUP message...
        == Setting up Call
           -- Calling party name:  Sergio
           -- Calling party number:  5
           -- Called  party name:  704
           -- Called  party number:  704
  2:25.881          H225 Answer:80fa838         h323.cxx(4167)  H323    CreateLogicalChannel - unknown data type
  2:25.883          H225 Answer:80fa838         h323.cxx(4167)  H323    CreateLogicalChannel - unknown data type
        =*= In CreateRealTimeLogicalChannel
                -- externalIpAddress: 192.168.0.204
                -- externalPort: 54848
                -- Direction: IsReceiver
        =*= In CreateRealTimeLogicalChannel
                -- externalIpAddress: 192.168.0.204
                -- externalPort: 54848
                -- Direction: IsTransmitter
  2:25.889          H225 Answer:80fa838         h323.cxx(2439)  H323    Answering call: AnswerCallAlertWithMedia
  2:25.890          H225 Answer:80fa838         h323.cxx(3933)  H245    Default OnSelectLogicalChannels, FastStartResponse
         -- Started logical channel: sending G.711-ALaw-64k{sw}
                -- channelsOpen = 1
                -- remoteIpAddress: 192.168.0.155
                -- remotePort: 9000
                -- ExternalIpAddress: 192.168.0.204
                -- ExternalPort: 54848
         -- Started logical channel: receiving G.711-ALaw-64k{sw}
                -- channelsOpen = 2
                -- remoteIpAddress: 192.168.0.155
                -- remotePort: 9000
                -- ExternalIpAddress: 192.168.0.204
                -- ExternalPort: 54848
  2:25.901          H225 Answer:80fa838         h323.cxx(1567)  H225    Reading PDUs: callRef=15291
    -- Executing Wait("H323/ip$192.168.0.204:1126/15291", "1") in new stack
    -- Executing Dial("H323/ip$192.168.0.204:1126/15291", "H323/4|20|t|T") in new stack
dest: 4
 -- Making call to 4 using gatekeeper.
  2:26.906      ThreadID=0x00006817           h323ep.cxx(1289)  H323    Making call to: 4
        == New H.323 Connection created.
        -- nbx1 is calling host 4
        -- Call token is ip$localhost/9084
        -- Call reference is 9084
    -- Called 4
  2:26.925          H225 Caller:81090a0   transports.cxx(1431)  H323TCP Started connection:  host=192.168.0.204:1721, if=192.168.0.204:1127, handle=49
  2:26.927          H225 Caller:81090a0         h323.cxx(3933)  H245    Default OnSelectLogicalChannels, FastStartInitiate
        =*= In CreateRealTimeLogicalChannel
                -- externalIpAddress: 192.168.0.204
                -- externalPort: 13084
                -- Direction: IsReceiver
        =*= In CreateRealTimeLogicalChannel
                -- externalIpAddress: 192.168.0.204
                -- externalPort: 13084
                -- Direction: IsTransmitter
        -- Sending SETUP message
  2:26.933          H225 Caller:81090a0         h323.cxx(3120)  H245    Started control channel
  2:26.941          H225 Caller:81090a0         h323.cxx(1567)  H225    Reading PDUs: callRef=9084
  2:27.157          H225 Caller:81090a0         h323.cxx(2071)  H225    Set remote party name: "192.168.0.204"
         -- Started logical channel: sending G.711-ALaw-64k{sw}
                -- channelsOpen = 3
                -- remoteIpAddress: 192.168.0.154
                -- remotePort: 9000
                -- ExternalIpAddress: 192.168.0.204
                -- ExternalPort: 13084
         -- Started logical channel: receiving G.711-ALaw-64k{sw}
                -- channelsOpen = 4
                -- remoteIpAddress: 192.168.0.154
                -- remotePort: 9000
                -- ExternalIpAddress: 192.168.0.204
                -- ExternalPort: 13084
  2:27.164          H225 Caller:81090a0         h323.cxx(3003)  H225    Fast starting 2 channels
  2:27.518          H225 Caller:81090a0         h323.cxx(2071)  H225    Set remote party name: "192.168.0.204"
        -- Ringing phone for "192.168.0.204"
  2:28.538          H225 Caller:81090a0         h323.cxx(2071)  H225    Set remote party name: "192.168.0.204"
  2:28.540          H225 Caller:81090a0         h323.cxx(2874)  H225    Received connect PDU.
  2:28.544          H225 Caller:81090a0   transports.cxx(1431)  H323TCP Started connection:  host=192.168.0.154:1025, if=192.168.0.204:1129, handle=50
  2:28.547          H225 Caller:81090a0         h323.cxx(3120)  H245    Started control channel
  2:28.548                 H245:811dd98         h323.cxx(3120)  H245    Started control channel
        -- Connection Established with "192.168.0.204"
  2:28.564          H225 Caller:81090a0      h323neg.cxx(379)   H245    MasterSlaveDetermination: local is master
    -- H323/4 answered H323/ip$192.168.0.204:1126/15291
  2:28.570      ThreadID=0x00006817             h323.cxx(2439)  H323    Answering call: AnswerCallNow
  2:28.571      ThreadID=0x00006817             h323.cxx(3120)  H245    Started control channel
  2:28.616          H225 Answer:80fa838         h323.cxx(3766)  H323    User Input RFC2833 payload type set to [pt=96]
  2:28.623          H225 Answer:80fa838      h323neg.cxx(379)   H245    MasterSlaveDetermination: local is master
  2:28.630          H225 Answer:80fa838      h323neg.cxx(630)   H245    TerminalCapabilitySet Sent.
        -- Connection Established with "Sergio (5, 5) [192.168.0.204]"
  2:28.636                 H245:811dd98      h323neg.cxx(630)   H245    TerminalCapabilitySet Sent.
  2:35.149          H225 Answer:80fa838         h323.cxx(1421)  H225    Sending release complete PDU: callRef=15291
                channelsOpen = 3
  2:35.154                 H323 Cleaner       h323ep.cxx(1908)  H323    Stopped receiving logical channel: G.711-ALaw-64k{sw} <1>
                channelsOpen = 2
  2:35.155                 H323 Cleaner       h323ep.cxx(1908)  H323    Stopped sending logical channel: G.711-ALaw-64k{sw} <1>
  2:35.156          H225 Answer:80fa838         h323.cxx(1610)  H225    Signal channel closed.
  2:35.170                 H323 Cleaner         h323.cxx(1518)  H323    Connection ip$192.168.0.204:1126/15291 terminated.
 -- Sergio has cleared the call
        == H.323 Connection deleted.
        -- ClearCall: Request to clear call with token ip$localhost/9084
  2:35.172      ClearCallT...d:080ff6e0         h323.cxx(1421)  H225    Sending release complete PDU: callRef=9084
                channelsOpen = 1
  2:35.178                 H323 Cleaner       h323ep.cxx(1908)  H323    Stopped receiving logical channel: G.711-ALaw-64k{sw} <1>
                channelsOpen = 0
  2:35.179                 H323 Cleaner       h323ep.cxx(1908)  H323    Stopped sending logical channel: G.711-ALaw-64k{sw} <1>
  2:35.179          H225 Caller:81090a0      h323pdu.cxx(1102)  H225    Read error (0): 
  2:35.181          H225 Caller:81090a0         h323.cxx(1610)  H225    Signal channel closed.
  == Spawn extension (outgoing, 704, 2) exited non-zero on 'H323/ip$192.168.0.204:1126/15291'
  2:35.228                 H245:811dd98         h323.cxx(3183)  H245    Control channel closed.
  2:35.442                 H323 Cleaner         h323.cxx(1518)  H323    Connection ip$localhost/9084 terminated.
 -- Call with 192.168.0.204 completed
        == H.323 Connection deleted.


More information about the asterisk-dev mailing list