Skip to content
Snippets Groups Projects
  1. Apr 29, 2015
  2. Apr 28, 2015
  3. Apr 27, 2015
    • Corey Farrell's avatar
      Astobj2: Allow reference debugging to be enabled/disabled by config. · 5c1d07ba
      Corey Farrell authored
      * The REF_DEBUG compiler flag no longer has any effect on code that uses
        Astobj2.  It is used to determine if reference debugging is enabled by
        default.  Reference debugging can be enabled or disabled in asterisk.conf.
      * Caller information is provided in logger errors for ao2 bad magic numbers.
      * Optimizes AO2 by merging internal functions with the public counterpart.
        This was possible now that we no longer require a dual ABI.
      
      ASTERISK-24974 #close
      Reported by: Corey Farrell
      
      Change-Id: Icf3552721fe999365ba8a8cf00a965aa6b897cc1
      5c1d07ba
    • George Joseph's avatar
      res_pjsip: Fix SEGV on pending-qualify contacts · 356568dc
      George Joseph authored
      Permanent contacts that hadn't been qualified yet were missing
      their contact_status entries causing SEGVs when running CLI
      commands.
      
      This patch makes sure that contact_statuses are created for
      both dynamic and permanent contacts when they are created.
      It also adds checks in the CLI code to make sure there's a
      contact_status, just in case.
      
      ASTERISK-25018 #close
      Reported-by: Ivan Poddubny
      Tested-by: Ivan Poddubny
      Tested-by: George Joseph
      
      Change-Id: I3cc13e5cedcafb24c400368b515b02d7fb81e029
      356568dc
    • Rodrigo Ramírez Norambuena's avatar
      cdr/cdr_odbc.c: Added to record new columns add on CDR 1.8 Asterisk Version · 358080e8
      Rodrigo Ramírez Norambuena authored
      Add new column to INSERT new columns added in cdr 1.8 version. The columns are:
       * peeraccount
       * linkedid
       * sequence
      This feature is configurable in cdr_odbc.conf using a new configuration
      option, 'newcdrcolumns'.
      
      ASTERISK-24976 #close
      
      Change-Id: Ibe0c7540a88305c6012786f438a0813ad8b19127
      358080e8
  4. Apr 26, 2015
  5. Apr 24, 2015
  6. Apr 23, 2015
    • Mark Michelson's avatar
    • Mark Michelson's avatar
      res_pjsip_t38: Don't crash on authenticated reinvite after originated T.38 FAX. · 89a3fc05
      Mark Michelson authored
      When Asterisk originates a channel to an application, the channel is
      hung up once the application finishes executing. When the application
      in question is SendFax, the Asterisk PJSIP code will attempt to reinvite
      the T.38 session to audio after the FAX completes. The hangup of the
      channel happens in the midst of this reinvite transaction. In most
      circumstances, this works out okay because the BYE is delayed until the
      reinvite transaction can complete.
      
      However, if the reinvite that Asterisk sends receives a 401/407
      response, then Asterisk's attempt to re-send the reinvite with
      authentication will fail. This is because the session supplement in
      res_pjsip_t38 makes the assumption that the channel on the session will
      always be non-NULL. Since the channel has been hung up, though, the
      channel is now NULL. Attempting to operate on the channel causes a
      crash.
      
      This patch fixes the issue by ensuring that the channel on the session
      is not NULL before attempting to mess with the T.38 framehook.
      
      This patch also contains some corrections for comments that were
      incorrect and really confused me when I first started looking at the
      code.
      
      ASTERISK-25004 #close
      Reported by Mark Michelson
      
      Change-Id: Ic5a1230668369dda4bb13524098aed9306ab45a0
      89a3fc05
    • George Joseph's avatar
      res_pjsip: Validate that contact uris start with sip: or sips: · 75666ad7
      George Joseph authored
      Currently we use pjsip_parse_hdr to validate contact uris but it
      appears that it allows uris without a scheme if there's a port
      supplied.  I.E myexample.com will fail but myexample.com:5060 will
      pass even though it has no scheme.  This causes SEGVs later on
      whenever the uri is used.
      
      To prevent this, permanent_contact_validate has been updated to check
      that the scheme is either 'sip' or 'sips'.
      
      2 uses of possibly-null endpoint have also been fixed in
      create_out_of_dialog_request.
      
      ASTERISK-24999
      
      Change-Id: Ifc17d16a4923e1045d37fe51e43bbe29fa556ca2
      Reported-by: Brad Latus
      75666ad7
    • Diederik de Groot's avatar
      Clang: change previous tautological-compare fixes. · ca719316
      Diederik de Groot authored
      clang can warn about a so called tautological-compare, when it finds
      comparisons which are logically always true, and are therefor deemed
      unnecessary.
      
      Exanple:
      unsigned int x = 4;
      if (x > 0)    // x is always going to be bigger than 0
      
      Enum Case:
      Each enumeration is its own type. Enums are an integer type but they
      do not have to be *signed*. C leaves it up to the compiler as an
      implementation option what to consider the integer type of a particu-
      lar enumeration is. Gcc treats an enum without negative values as
      an int while clang treats this enum as an unsigned int.
      
      rmudgett & mmichelson: cast the enum to (unsigned int) in assert.
      The cast does have an effect. For gcc, which seems to treat all enums
      as int, the cast to unsigned int will eliminate the possibility of
      negative values being allowed. For clang, which seems to treat enums
      without any negative members as unsigned int, the cast will have no
      effect. If for some reason in the future a negative value is ever
      added to the enum the assert will still catch the negative value.
      
      ASTERISK-24917
      
      Change-Id: I0557ae0154a0b7de68883848a609309cdf0aee6a
      ca719316
    • Matt Jordan's avatar
Loading