1. 18 4月, 2012 18 次提交
  2. 17 4月, 2012 12 次提交
  3. 16 4月, 2012 8 次提交
  4. 13 4月, 2012 2 次提交
    • Stefan Knoblich's avatar
      ftmod_libpri: Check for required features in configure and remove old-style log callbacks · 997550c5
      由 Stefan Knoblich 提交于
      Non-PRI_NEW_SET_API logging callbacks were only available in libpri-1.0 and older,
      which also lacks PRI_IO_FUNCS (required) and wouldn't work anyway.
      
      Explicitly check for both PRI_* feature defines at configure time and reject libpri
      versions that lack them.
      
      Remove the non-PRI_NEW_SET_API logging callbacks in ftmod_libpri.c.
      Signed-off-by: 's avatarStefan Knoblich <stkn@openisdn.net>
      997550c5
    • Stefan Knoblich's avatar
      ftmod_libpri: Improve libpri message logging. · 020724e1
      由 Stefan Knoblich 提交于
      Use the PRI_NEW_SET_API define provided by >=libpri-1.2 to distinguish
      between old style and new style pri_set_error() and pri_set_message()
      callback functions.
      
      Improve message logging by using ftdm_log_chan() if per-span
      data with a valid (d-)channel object is available.
      NOTE: pri_get_userdata() returns NULL if pri is NULL.
      
      This will reduce the horizontal space for libpri output a bit, but allows
      us to see which span the message/error came from.
      Signed-off-by: 's avatarStefan Knoblich <stkn@openisdn.net>
      020724e1