Ticket #6 (closed Bug: fixed)

Opened 1 year ago

Last modified 4 months ago

h324m_gw: call hangs when caller hangs up and callee has not answered the call yet

Reported by: klaus Assigned to: sgarcia
Priority: major Component: app_h324m
Keywords: Cc:

Description

In h324m_gw, a pseudo channel is created and waited till the pseudo channel gets answered. During the waiting, the control frames of the incoming channel does not get read:

/* while not setup */

while (pseudo->_state!=AST_STATE_UP) {

/* Wait for data */ if (ast_waitfor(pseudo, 0)<0)

Thus, if the caller hangs up before the pseudo channel gets answered, the call keeps open in Asterisk.

I guess this can be fixed by changing ast_waitfor into ast_waitfor_n and reading from both channels.

Attachments

Change History

09/06/07 23:11:48 changed by sgarcia

  • status changed from new to assigned.

11/05/07 12:11:45 changed by sgarcia

  • status changed from assigned to closed.
  • resolution set to fixed.

03/26/08 06:34:23 changed by anonymous

04/11/08 05:13:12 changed by anonymous

04/26/08 13:21:10 changed by anonymous

04/28/08 15:57:20 changed by anonymous

05/09/08 09:41:09 changed by anonymous

05/22/08 03:48:36 changed by anonymous


Add/Change #6 (h324m_gw: call hangs when caller hangs up and callee has not answered the call yet)




Change Properties
Action

 
Copyright 2006 - Sergio García Murillo
Powered by Trac - Edgewall Software