Skip to content
Snippets Groups Projects
  1. Jun 24, 2013
  2. Jun 23, 2013
  3. Jun 22, 2013
    • Matthew Jordan's avatar
      Properly extract channel variables for the SendFAX/ReceiveFAX Stasis messages · 175b9831
      Matthew Jordan authored
      By the time something extracts the pointers from ast_json_pack, the channels
      will already be disposed of. This patch properly pulls the information out of
      the variables and packs them into the JSON blob.
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@392607 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      175b9831
    • Joshua Colp's avatar
      Make sorcery details opaque and add extended fields. · a330d086
      Joshua Colp authored
      Sorcery specific object information is now opaque and allocated with the object.
      This means that modules do not need to be recompiled if the sorcery specific part
      is changed. It also means that sorcery can store additional information on objects
      and ensure it is freed or the reference count decreased when the object goes away.
      
      To facilitate the above a generic sorcery allocator function has been added which
      also ensures that allocated objects do not have a lock.
      
      Extended fields have been added thanks to all of the above which allows specific fields
      to be marked as extended, and thus simply stored as-is within the object. Type safety
      is *NOT* enforced on these fields. A consumer of them has to query and ultimately perform
      their own safety check. What does this mean? Extra modules can extend already defined
      structures without having to modify them.
      
      Tests have also been included to verify extended field functionality.
      
      Review: https://reviewboard.asterisk.org/r/2585/
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@392586 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      a330d086
    • Joshua Colp's avatar
      Merge in current pimp_my_sip work, including: · 77002bc3
      Joshua Colp authored
      1. Security events
      2. Websocket support
      3. Diversion header + redirecting support
      4. An anonymous endpoint identifier
      5. Inbound extension state subscription support
      6. PIDF notify generation
      7. One touch recording support (special thanks Sean Bright!)
      8. Blind and attended transfer support
      9. Automatic inbound registration expiration
      10. SRTP support
      11. Media offer control dialplan function
      12. Connected line support
      13. SendText() support
      14. Qualify support
      15. Inband DTMF detection
      16. Call and pickup groups
      17. Messaging support
      
      Thanks everyone!
      
      Side note: I'm reminded of the song "How Far We've Come" by Matchbox Twenty.
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@392565 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      77002bc3
    • Matthew Jordan's avatar
      Fix a deadlock and possible crash in res_fax · ea03516c
      Matthew Jordan authored
      This patch fixes two bugs.
      (1) It unlocks the channel in the framehook handlers before attempting to grab
          the peer from the bridge. The locking order for the bridging framework is
          bridge first, then channel - having the channel locked while attempting to
          obtain the bridge lock causes a locking inversion and a deadlock. This
          patch bumps the channel ref count prior to releasing the lock in the
          framehook to avoid lifetime issues.
      
          Note that this does expose a subtle problem in framehooks; that is,
          something could modify the framehook list while we are executing, causing
          issues in the framehook list traversal that the callback executes in.
          Fixing this is a much larger problem that is beyond the scope of this
          patch - (a) we already unlock the channel in this particular framehook
          and we haven't run into a problem yet (as modifying the framehook list
          when a channel is about to perform a fax gateway would be a very odd
          operation) and (b) migrating to an ao2 container of framehooks would be
          more invasive at this point. See the referenced ASTERISK issue for more
          information.
      (2) Directly packing channel variables into a JSON object turned out to be
          unsafe. A condition existed where the strings in the JSON blob were no
          longer safe to be accessed if the channel object itself was disposed of.
      
      (issue ASTERISK-21951)
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@392564 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      ea03516c
    • Joshua Colp's avatar
      Migrate PeerStatus events to stasis, add stasis endpoints, and add chan_pjsip device state. · 94ec2678
      Joshua Colp authored
      (closes issue ASTERISK-21489)
      (closes issue ASTERISK-21503)
      
      Review: https://reviewboard.asterisk.org/r/2601/
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@392538 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      94ec2678
  4. Jun 21, 2013
  5. Jun 20, 2013
  6. Jun 19, 2013
    • David M. Lee's avatar
      Fix build problem on OS X Mountain Lion (10.8) · 6e665251
      David M. Lee authored
      For about forever, our build flags for OS X have been slightly off, but
      good enough to build and run. Apparently they aren't good enough any more.
      
      Previously, we would compile with macosx-version-min unset and link with
      it set. This combination, using GCC 4.8, on Mountain Lion, would create a
      bad executable ("Illegal Instruction: 4", or something like that)
      
      This patch consistently sets macosx-version-min for both compiling and
      linking, which makes everything happy enough to build and run.
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@392279 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      6e665251
    • Kinsey Moore's avatar
      Pull CEL linkedid manipulation into cel.c · 954166ed
      Kinsey Moore authored
      This finishes moving all CEL linkedid tracking entirely within cel.c
      since that is now possible with channel snapshots.
      
      This also removes another CEL linkedid manipulation function from cel.h
      that has already been internalized and is neither called nor available
      to link against.
      
      Review: https://reviewboard.asterisk.org/r/2632/
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@392241 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      954166ed
    • Matthew Jordan's avatar
      Handle variable substitution in dummy variables · 68103abb
      Matthew Jordan authored
      When func_cdr is used for variable substitution, there is no channel name
      and hence no run-time information available for CDR variable substitution.
      In that case, the correct thing to do is to use the CDR object on the channel
      passed to the function. This patch checks to see if the channel passed in
      has a name - if not, it uses ast_cdr_format_var instead of ast_cdr_get_var.
      
      This allows CDR backends to continue to use variable substitution in order to
      resolve ast_cdr object properties.
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@392214 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      68103abb
  7. Jun 18, 2013
  8. Jun 17, 2013
  9. Jun 14, 2013
    • Mark Michelson's avatar
      Fix regression in MWI stasis handling. · 67e35c7b
      Mark Michelson authored
      In revision 389733, mwi state allocation was placed into its
      own function instead of performing the allocation in-line when
      required. The issue was that in ast_publish_mwi_state_full(),
      the local variable "uniqueid" was no longer being set, but it was
      still being used as the topic for MWI. This meant that all MWI
      publications ended up being published to the "" (empty string)
      mailbox topic. Thus MWI subscriptions for specific mailboxes were
      never notified of mailbox state changes.
      
      This change fixes the issue by removing the local uniqueid variable
      from ast_publish_mwi_state_full() and instead referencing the
      mwi_state->uniqueid field since it has been properly set.
      
      (closes issue ASTERISK-21913)
      Reported by Malcolm Davenport
      
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@391921 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      67e35c7b
    • Joshua Colp's avatar
      Ensure that the number of added contacts never goes below 0. · 671d7e62
      Joshua Colp authored
      This can happen when a REGISTER request is removing a contact.
      
      (closes issue ASTERISK-21911)
      Reported by: mdavenport
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@391902 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      671d7e62
Loading