Skip to content
Snippets Groups Projects
  1. Dec 08, 2015
  2. Dec 07, 2015
  3. Dec 06, 2015
    • Matt Jordan's avatar
      Revert "bridges/bridge_t38: Add a bridging module for managing T.38 state" · 75c800eb
      Matt Jordan authored
      This reverts commit f42d22d3.
      
      Unfortunately, using a bridge to manage T.38 state will cause severe deadlocks
      in core_unreal/chan_local. Local channels attempt to reach across both their
      peer and the peer's bridge to inspect T.38 state. Given the propensity of
      Local channel chains, managing the locking situation in such a scenario is
      practically infeasible.
      
      Change-Id: I932107387c13aad2c75a7a4c1e94197a9d6d8a51
      75c800eb
  4. Dec 04, 2015
    • George Joseph's avatar
      res_pjsip/contacts/statsd: Make contact lifecycle events more consistent · 4be231e8
      George Joseph authored
      It will never be perfect or even pretty, mostly because of the differences
      between static and dynamic contacts.
      
      Created:
      
      Can't use the contact or contact_status alloc functions
      because the objects come and go regardless of the actual state.
      
      Can't use the contact_apply_handler, ast_sip_location_add_contact or
      a sorcery created handler because they only get called for dynamic
      contacts.  Similarly, permanent_uri_handler only gets called for
      static contacts.
      
      So, Matt had it right. :)  ast_res_pjsip_find_or_create_contact_status is
      the only place it can go and not have duplicated code.  Both
      permanent_uri_handler and contact_apply_handler call find_or_create.
      
      Removed:
      
      Can't use the destructors for the same reason as above.  The only
      place to put this is in persistent_endpoint_contact_deleted_observer
      which I believe is the "correct" place but even that will handle only
      dynamic contacts.  This doesn't called on shutdown however.  There is
      no hook to use for static contacts that may be removed because of a
      config change while asterisk is in operation.
      
      I moved the cleanup of contact_status from ast_sip_location_delete_contact
      to the handler as well.
      
      Status Change and RTT:
      
      Although they worked fine where they were (in update_contact_status) I
      moved them to persistent_endpoint_contact_status_observer to make it
      more consistent with removed.  There was logic there already to detect
      a state change.
      
      Finally, fixed a nit in permanent_uri_handler rmudgett reported
      eralier.
      
      ASTERISK-25608 #close
      
      Change-Id: I4b56e7dfc3be3baaaf6f1eac5b2068a0b79e357d
      Reported-by: George Joseph
      Tested-by: George Joseph
      4be231e8
    • Matt Jordan's avatar
    • Matt Jordan's avatar
    • Alexander Traud's avatar
      res_format_attr_vp8: In SDP, forward max-fr and max-fs for video-codec VP8. · 63c6d39a
      Alexander Traud authored
      ASTERISK-25584 #close
      
      Change-Id: Iae00071b4ff1ae76f24995aeac4d00284fd14f91
      63c6d39a
    • Matt Jordan's avatar
    • Matt Jordan's avatar
      bridges/bridge_t38: Add a bridging module for managing T.38 state · f42d22d3
      Matt Jordan authored
      When 4875e5ac was merged, it fixed several issues with a direct media bridge
      transitioning to handling a T.38 fax. However, it uncovered a race condition
      caused by the bridging core. When a channel involved in a T.38 fax leaves a
      bridge, the frame queued by the channel driver that should inform the far side
      that it is no longer in a T.38 fax may not make it across the bridge. The
      bridging framework is *extremely* aggressive in tearing down the bridge, and
      control frames that are currently in flight *may* get dropped.
      
      This patch adds a new module to the bridging framework, bridge_t38. This module
      maintains some notion of the T.38 state for the two channels in a bridge. When
      the bridge detects that it is being torn down or when one of the two channels
      leaves, it informs the respective channel(s) that they should stop faxing. This
      ensures that channels switch back to audio if they survive and are ejected out
      of a bridge while faxing.
      
      ASTERISK-25582
      
      Change-Id: If5b0bb478eb01c4607c9f4a7fc17c7957d260ea0
      f42d22d3
    • Matt Jordan's avatar
      8d79446a
    • Alexander Traud's avatar
      res_format_attr_opus: Update to latest RFC 7587. · dcc01bc0
      Alexander Traud authored
      Beside that, the format-attribute module sends only non-default values in the
      line fmtp, now. This avoids unnecessary overhead in SDP messages. Furthermore,
      previously the parameter stereo was not parsed when being the first parameter.
      
      ASTERISK-25583 #close
      
      Change-Id: Iae85ba3e5960bfd5d51cf65bcffad00dd4875a73
      dcc01bc0
  5. Dec 03, 2015
  6. Dec 01, 2015
    • Jonathan Rose's avatar
      Unset BRIDGEPEER when leaving a bridge · b5281b74
      Jonathan Rose authored
      Currently if a channel is transferred out of a bridge, the BRIDGEPEER
      variable (also BRIDGEPVTCALLID) remain set even once the channel is
      out of the bridge. This patch removes these variables when leaving
      the bridge.
      
      ASTERISK-25600 #close
      Reported by: Mark Michelson
      
      Change-Id: I753ead2fffbfc65427ed4e9244c7066610e546da
      b5281b74
    • Richard Mudgett's avatar
      res_sorcery_memory_cache.c: Fix off nominal ref leak. · 59ba84e5
      Richard Mudgett authored
      Change-Id: If83d63cf11cbc6df9b15251848b01feb570ade49
      59ba84e5
    • Richard Mudgett's avatar
      sched.c: Make not return a sched id of 0. · ef77439e
      Richard Mudgett authored
      According to the API doxygen a sched ID of 0 is valid.  Unfortunately, 0
      was never returned historically and several users incorrectly coded usage
      of the returned sched ID assuming that 0 was invalid.
      
      ASTERISK-25476
      
      Change-Id: Ib19c7ebb44ec9fd393ef6646dea806d4f34e3a20
      ef77439e
    • Richard Mudgett's avatar
      Audit improper usage of scheduler exposed by 5c713fdf. (v13 additions) · 145d10a5
      Richard Mudgett authored
      chan_sip.c:
      * Initialize mwi subscription scheduler ids earlier because of ASTOBJ to
      ao2 conversion.
      
      * Initialize register scheduler ids earlier because of ASTOBJ to ao2
      conversion.
      
      chan_skinny.c:
      * Fix more scheduler usage for the valid 0 id value.
      
      ASTERISK-25476
      
      Change-Id: If9f0e5d99638b2f9d102d1ebc9c5a14b2d706e95
      145d10a5
    • Richard Mudgett's avatar
      Audit improper usage of scheduler exposed by 5c713fdf. · fa207290
      Richard Mudgett authored
      channels/chan_iax2.c:
      * Initialize struct chan_iax2_pvt scheduler ids earlier because of
      iax2_destroy_helper().
      
      channels/chan_sip.c:
      channels/sip/config_parser.c:
      * Fix initialization of scheduler id struct members.  Some off nominal
      paths had 0 as a scheduler id to be destroyed when it was never started.
      
      chan_skinny.c:
      * Fix some scheduler id comparisons that excluded the valid 0 id.
      
      channel.c:
      * Fix channel initialization of the video stream scheduler id.
      
      pbx_dundi.c:
      * Fix channel initialization of the packet retransmission scheduler id.
      
      ASTERISK-25476
      
      Change-Id: I07a3449f728f671d326a22fcbd071f150ba2e8c8
      fa207290
    • Alexander Traud's avatar
      codec_resample: Increase buffer for Opus Codec. · b24f2f4c
      Alexander Traud authored
      ASTERISK-25599 #close
      
      Change-Id: I1f88a88c59fb4e1e62bbdbb100c7152d48e73f10
      b24f2f4c
  7. Nov 30, 2015
    • George Joseph's avatar
      dns: Change lookup failures from LOG_ERROR to debug 1. · e5723d27
      George Joseph authored
      dns.c and dns_system_resolver.c were spitting out errors for lookup
      failures for things like not finding a SRV record even though
      there was an A record.  Those have been changed to debug messages.
      Logging not finding ANY record is left to the higher level caller.
      
      Also, dns_system_resolver was using Windows line endings so I
      converted them to Unix style.  The actual log changes are on lines
      156 and 159.
      
      Change-Id: I65be16ea15304b96f9dcb4d289dbd3e2286fc094
      e5723d27
    • Alexander Traud's avatar
      Build System: Support include-what-you-use. · 270f7be5
      Alexander Traud authored
      ASTERISK-25591 #close
      
      Change-Id: I8d3efa0826142ece9cbed2fd0d46f3b607fee6ae
      270f7be5
  8. Nov 28, 2015
  9. Nov 27, 2015
  10. Nov 26, 2015
  11. Nov 25, 2015
    • Kevin Harwell's avatar
      fastagi: record file closed after sending result · 9014f1f4
      Kevin Harwell authored
      The fastagi record-file testsuite test sometimes fails reporting an empty
      recorded file. This was happening because Asterisk was sending the agi result
      notification prior to actually closing the file and the data, being buffered,
      had not been written to the file yet when the test attempts to check the file
      size.
      
      This patch makes it so the record file stream is closed prior to sending the
      agi result notification.
      
      ASTERISK-25593 #close
      
      Change-Id: I6b2b3be3ae37f7c7b18e672c419a89b3b8513cde
      9014f1f4
    • Walter Doekes's avatar
      main: Slight refactor of main. Improve color situation. · 03759c55
      Walter Doekes authored
      Several issues are addressed here:
      - main() is large, and half of it is only used if we're not rasterisk;
        fixed by spliting up the daemon part into a separate function.
      - Call ast_term_init from rasterisk as well.
      - Remove duplicate code reading/writing asterisk history file.
      - Attempt to tackle background color issues and color changes that
        occur. Tested by starting asterisk -c until the colors stopped
        changing at odd locations.
      - Remove unused term_prep() and term_prompt() functions.
      
      ASTERISK-25585 #close
      
      Change-Id: Ib641a0964c59ef9fe6f59efa8ccb481a9580c52f
      03759c55
    • Matt Jordan's avatar
      Merge "Fixed some typos" · e4ba6469
      Matt Jordan authored
      e4ba6469
Loading