Skip to content
Snippets Groups Projects
  1. Jul 22, 2014
  2. Jul 21, 2014
  3. Jul 20, 2014
  4. Jul 07, 2014
    • Kinsey Moore's avatar
      CEL: Fix incorrect/missing extra field information · edcaa540
      Kinsey Moore authored
      This corrects two issues with the extra field information in Asterisk
      12+ in channel event logs.
      
      It is possible to inject custom values into the dialstatus provided by
      ast_channel_dial_type() Stasis messages that fall outside the
      enumeration allowed for the DIALSTATUS channel variable. CEL now
      filters for the allowed values and ignores other values.
      
      The "hangupsource" extra field key is always blank if the far end
      channel is a chan_pjsip channel. This is because the hangupsource is
      never set for the pjsip channel driver. This change sets the
      hangupsource whenever a hangup is queued for chan_pjsip channels.
      
      This corrects an issue with the pjsip channel driver where the
      hangupcause information was not being set properly.
      
      Review: https://reviewboard.asterisk.org/r/3690/
      ........
      
      Merged revisions 418071 from http://svn.asterisk.org/svn/asterisk/branches/12
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@418084 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      edcaa540
  5. Jun 27, 2014
  6. Jun 26, 2014
  7. Jun 20, 2014
  8. Jun 16, 2014
    • Kevin Harwell's avatar
      res_http_websocket: read/write string fixup · bd0aa4fb
      Kevin Harwell authored
      There was a problem when reading a string from the websocket. It assumed the
      received data had a null terminator and tried to write the data to an ast_str.
      This of course could/would read past the end of the given buffer while
      writing the data to the internal buffer of ast_str. Modified the the code to
      correctly place a null terminator on the result string.
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@416394 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      bd0aa4fb
  9. Jun 15, 2014
  10. Jun 06, 2014
  11. Jun 05, 2014
    • Kevin Harwell's avatar
      res_http_websocket: Create a websocket client · e763d704
      Kevin Harwell authored
      Added a websocket server client in Asterisk. Asterisk has a websocket server,
      but not a client. The ability to have Asterisk be able to connect to a websocket
      server can potentially be useful for future work (for instance this could allow
      ARI to connect back to some external system, although more work would be needed
      in order to incorporate that).
      
      Also a couple of things to note - proxy connection support has not been
      implemented and there is limited http response code handling (basically, it is
      connect or not).
      
      Also added an initial new URI handling mechanism to core.  Internet type URI's
      are parsed into a data structure that contains pointers to the various parts of
      the URI.
      
      (closes issue ASTERISK-23742)
      Reported by: Kevin Harwell
      Review: https://reviewboard.asterisk.org/r/3541/
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@415223 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      e763d704
  12. May 23, 2014
  13. Apr 11, 2014
  14. Apr 02, 2014
  15. Mar 17, 2014
  16. Mar 14, 2014
  17. Mar 07, 2014
  18. Mar 06, 2014
    • George Joseph's avatar
      sorcery: Create AST_SORCERY dialplan function. · a4906e9f
      George Joseph authored
      This patch creates the AST_SORCERY dialplan function which allows someone to
      retrieve any value from a sorcery-based config file.  It's similar to 
      AST_CONFIG.
      
      The creation of the function itself was fairly straightforward but it required
      changes to the underlying sorcery infrastructure that rippled into individual
      sorcery objects.  The changes stemmed from inconsistencies in how sorcery
      created ast_variable objectsets from sorcery objects and the inconsistency
      in how individual objects used that feature especially when it came to
      parameters that can be specified multiple times like contact in aor and match
      in identify.  You can read more here...
      http://lists.digium.com/pipermail/asterisk-dev/2014-February/065202.html
      
      So, what this patch does, besides actually creating the AST_SORCERY function,
      is the following...
      
      * Creates ast_variable_list_append which is a helper to append one ast_variable
        list to another.
      * Modifies the ast_sorcery_object_field_register functions to accept the
        already-defined sorcery_fields_handler callback.
      * Modifies ast_sorcery_objectset_create to accept a parameter indicating return
        type preference...a single ast_variable with all values concatenated or an
        ast_variable list with multiple entries.  Also fixed a few bugs.
      * Modifies individual sorcery object implementations to use the new function
        definition of the ast_sorcery_object_field_register functions.
      * Modifies location.c and res_pjsip_endpoint_identifier_ip.c to implement
        sorcery_fields_handler handlers so they return multiple occurrences as an
        ast_variable_list.
      * Added a whole bunch of tests to test_sorcery.
      
      (closes issue ASTERISK-22537)
      Review: http://reviewboard.asterisk.org/r/3254/
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@410042 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      a4906e9f
  19. Feb 26, 2014
  20. Feb 20, 2014
    • George Joseph's avatar
      sorcery: Create sorcery instance registry. · a94c8562
      George Joseph authored
      In order to retrieve an arbitrary sorcery instance from a dialplan function
      (or any place else) there needs to be a registry of sorcery instances.
      
      ast_sorcery_init now creates a hashtab as a registry.
      
      ast_sorcery_open now checks the hashtab for an existing sorcery instance
      matching the caller's module name.  If it finds one, it bumps the 
      refcount and returns it.  If not, it creates a new sorcery instance,
      adds it to the hashtab, then returns it.
      
      ast_sorcery_retrieve_by_module_name is a new function that does a hashtab 
      lookup by module name.  It can be called by the future dialplan function.
      
      res_pjsip/config_system needed a small change to share the main res_pjsip 
      sorcery instance.
      
      tests/test_sorcery was updated to include a test for the registry.
      
      (closes issue ASTERISK-22537)
      Review: http://reviewboard.asterisk.org/r/3184/
      ........
      
      Merged revisions 408518 from http://svn.asterisk.org/svn/asterisk/branches/12
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@408519 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      a94c8562
  21. Jan 28, 2014
  22. Jan 12, 2014
  23. Jan 03, 2014
  24. Dec 20, 2013
  25. Dec 18, 2013
  26. Dec 17, 2013
  27. Dec 13, 2013
  28. Dec 05, 2013
  29. Dec 03, 2013
  30. Nov 27, 2013
    • David M. Lee's avatar
      ari:Add application/json parameter support · fccb427c
      David M. Lee authored
      The patch allows ARI to parse request parameters from an incoming JSON
      request body, instead of requiring the request to come in as query
      parameters (which is just weird for POST and DELETE) or form
      parameters (which is okay, but a bit asymmetric given that all of our
      responses are JSON).
      
      For any operation that does _not_ have a parameter defined of type
      body (i.e. "paramType": "body" in the API declaration), if a request
      provides a request body with a Content type of "application/json", the
      provided JSON document is parsed and searched for parameters.
      
      The expected fields in the provided JSON document should match the
      query parameters defined for the operation. If the parameter has
      'allowMultiple' set, then the field in the JSON document may
      optionally be an array of values.
      
      (closes issue ASTERISK-22685)
      Review: https://reviewboard.asterisk.org/r/2994/
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@403177 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      fccb427c
  31. Nov 22, 2013
  32. Oct 25, 2013
Loading