]> git.ipfire.org Git - thirdparty/freeswitch.git/commit
ftmod_libpri: Rework handling of peer-initiated hangup events
authorMatteo Brancaleoni <mbrancaleoni@voismart.it>
Thu, 8 Nov 2012 11:59:22 +0000 (12:59 +0100)
committerStefan Knoblich <stkn@openisdn.net>
Mon, 12 Nov 2012 21:54:27 +0000 (22:54 +0100)
commit8c58a109994bd7e80af045653a19a8c54bbbe922
treee2a30d1b9895fefd0f8317925bd695f07a9e8a26
parent443a8db1a5bc3126ea84e62dd44ec45a193eee44
ftmod_libpri: Rework handling of peer-initiated hangup events

Use peerhangup flag variable to track whether a hangup has been
initiated by the peer or libpri itself (e.g. Layer 2 timeouts).

These changes fix a couple of problems with hangup events not being
handled properly in some situations:

  - Call abort caused by incoming RESTART on a channel in use
  - T309 timeout after L2 loss
  - Improved hangup handling in libpri-side on_hangup() event handler
    and state_advance() (FreeTDM side)

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
libs/freetdm/src/ftmod/ftmod_libpri/ftmod_libpri.c
libs/freetdm/src/ftmod/ftmod_libpri/ftmod_libpri.h
libs/freetdm/src/ftmod/ftmod_libpri/lpwrap_pri.c