Skip to content
Snippets Groups Projects
  1. Feb 04, 2016
  2. Feb 03, 2016
  3. Feb 02, 2016
    • Mark Michelson's avatar
    • Mark Michelson's avatar
      res_sorcery_realtime: Fix regex regression. · 65223618
      Mark Michelson authored
      A regression was introduced where searching for realtime PJSIP objects
      by regex by starting the regex with a leading "^" would cause no items
      to be returned.
      
      This was due to a change which attempted to drop the requirement for a
      leading "^" to be present due to how some CLI commands formulate their
      regexes. However, the change, rather than simply eliminating the
      requirement, caused any regexes that did begin with "^" to end up not
      returning the expected results.
      
      This change fixes the problem by inspecting the regex and formulating
      the realtime query differently depending on if it begins with "^".
      
      ASTERISK-25702 #close
      Reported by Nic Colledge
      
      Patches:
          realtime_retrieve_regex.patch submitted by Alexei Gradinari License #5691
      
      Change-Id: I055df608a6e6a10732044fa737a9fe8dca602693
      65223618
    • Karsten Wemheuer's avatar
      res_xmpp: Does not connect in component mode · 2a6f18cd
      Karsten Wemheuer authored
      The module res_xmpp does not accept usernames in the form used in component
      mode (XEP-0114). In component mode there is no @something in the name.
      In component mode the connection is now not dropped anymore.
      
      If the xmpp server sends out a "stream" tag before handshake is finished,
      the connection gets dropped in res_xmpp. Now this tag will be ignored and
      the connection will be established.
      
      After connecting there will be an exchange of presence states. This does
      not work as expected in component mode. The responsible function
      "xmpp_pak_presence" is left before the states get sent out. Sending
      presence states in component mode is now moved to the top of the function.
      
      ASTERISK-25735 #close
      
      Change-Id: I70e036f931c3124ebb2ad1e56f93ed35cfdd9d5c
      2a6f18cd
    • Joshua Colp's avatar
      c9a5f98e
    • George Joseph's avatar
      build_system: Fix some warnings highlighted by clang · 40da6434
      George Joseph authored
      Fix some warnings found with clang.
      
      Change-Id: I5195b6189b148c2ee3ed4a19d015a6d4ef3e77bd
      40da6434
  4. Feb 01, 2016
  5. Jan 31, 2016
    • StefanEng86's avatar
      chan_sip.c: AMI & CLI notify methods get different values of asterisk's own ip. · 55a7367a
      StefanEng86 authored
      When I ask asterisk to send a SIP NOTIFY message to a sip peer using either a)
      AMI action: SIPnotify or b) cli command: sip notify <cmd> <peer>, I expect
      asterisk to include the same value for its own ip in both cases a) and b),
      but it seems a) produces a contact header like Contact:
      <sip:asterisk@192.168.1.227:8060> whereas b) produces a contact header like
      <sip:asterisk@127.0.0.1:8060>. 0.0.0.0:8060 is my udpbindaddr in sip.conf
      
      My guess is that manager_sipnotify should call
      ast_sip_ouraddrfor(&p->sa, &p->ourip, p) the same way sip_cli_notify does,
      because after applying this patch, both cases a) and b) produce
      the contact header that I expect: <sip:asterisk@192.168.1.227:8060>
      
      Reported by: Stefan Engström
      Tested by: Stefan Engström
      
      Change-Id: I86af5e209db64aab82c25417de6c768fb645f476
      55a7367a
  6. Jan 29, 2016
  7. Jan 28, 2016
  8. Jan 27, 2016
    • George Joseph's avatar
      res_pjsip: Add res_pjproject dependency to samples · f19bf7a3
      George Joseph authored
      Since res_pjsip now depends on res_pjproject, this has been added to
      basic-pbx modules.conf.
      
      Change-Id: I42826597d5e10f08e518208860c44c96e52f1b2d
      f19bf7a3
    • George Joseph's avatar
      build_system: Prevent goals needing makeopts from running when it's missing · c53903d4
      George Joseph authored
      The Makefile only optionally includes makeopts so when goals like uninstall that
      dont depend on anything else are run after a distclean, rules like
      'rm -f "$(DESTDIR)$(ASTMODDIR)/"*' get run as 'rm -f ""/*' which attempts
      to remove everything in the root directory.
      
      Although there's a rule defined for makeopts which prints a message and does
      an 'exit 1', since '-include makepopts' was specified (with the -), the exit
      was ignored letting the rest of the rules run.
      
      This patch makes makeopts required unless the goal has the string 'clean' in it.
      
      ASTERISK-25730 #close
      Reported-by: George Joseph
      
      Change-Id: I1bce59a7ea4f48e7a468e22b2abbb13c63417ac7
      c53903d4
  9. Jan 26, 2016
    • Joshua Colp's avatar
      config: Allow options to register when documentation is unavailable. · 1dfd104a
      Joshua Colp authored
      The config options framework is strict in that configuration options must
      be documented unless XML documentation support is not available. In
      practice this is useful as it ensures documentation exists however in
      off-nominal cases this can cause strange problems.
      
      If it is expected that a config option has a non-zero or non-empty
      default value but the config option documentation is unavailable
      this reasonable expectation will not be met. This can cause obscure
      crashes and weirdness depending on how the code handles it.
      
      This change tweaks the behavior to ensure that the config option
      is still allowed to register, apply default values, and be set when
      devmode is not enabled. If devmode is enabled then the option can
      NOT be set.
      
      This also does not remove the initial documentation error message that
      is output on load when registering the configuration option.
      
      ASTERISK-25725 #close
      
      Change-Id: Iec42fca6b35f31326c33fcdc25473f6fd7bc8af8
      1dfd104a
    • Mark Michelson's avatar
      Stasis: Use custom structure when setting variables. · a706ad44
      Mark Michelson authored
      A recent change to queue channel variable setting to the Stasis control
      queue caused a regression. When setting channel variables, it is
      possible to give a NULL channel variable value in order to unset the
      variable (i.e. remove it from the channel variable list). The change
      introduced a call to ast_variable_new(), which is not tolerant of NULL
      channel variable values.
      
      This new change switches from using ast_variable to using a custom
      channel variable struct that is lighter weight and NULL value-tolerant.
      
      Change-Id: I784d7beaaa3c036ea936d103e7caf0bb1562162d
      a706ad44
    • Matt Jordan's avatar
    • Matt Jordan's avatar
    • Rusty Newton's avatar
      sounds/Makefile: Incremented core and extra sounds versions to 1.5 · 289daca9
      Rusty Newton authored
      Core and extra sounds 1.5 was recently released! The tarballs contain
      change descriptions however I figure more people will see this one so
      I'll try to be a bit detailed. Approximately 60 sounds were moved from Extra
      to Core for en, en_GB, fr and added for languages that didn't already
      have Extra sound sets (it,ja,ru).
      
      In addition all of the English and Russian sounds have been completely
      re-recorded.
      
      Sounds moved and added:
      activated,added,all-circuits-busy-now,astcc-followed-by-pound
      at-tone-time-exactly,call-forwarding,call-fwd-no-ans,call-fwd-on-busy
      ,call-fwd-unconditional,calling,call-waiting,cancelled,
      cannot-complete-as-dialed,check-number-dial-again,conf-full,de-activated
      ,disabled,do-not-disturb,enabled,enter-num-blacklist,entr-num-rmv-blklist
      ,extension,feature-not-avail-line,for,from-unknown-caller,goodbye,hello
      ,if-correct-press,im-sorry,info-about-last-call,is,is-in-use,is-set-to
      ,location,number,number-not-answering,num-was-successfully,one-moment-please
      ,please-try-again,pls-hold-while-try,pls-try-call-later,pm-invalid-option
      ,privacy-to-blacklist-last-caller,removed,simul-call-limit-reached
      ,something-terribly-wrong,sorry,sorry-youre-having-problems,speed-dial
      ,speed-dial-empty,telephone-number,time,to-call-this-number,to-extension
      ,to-listen-to-it,to-rerecord-it,unidentified-no-callback,with,you-entered
      ,your
      
      There were also a few random fixes here and there to file names for a few
      of the languages.
      
      ASTERISK-25068 #close
      
      Change-Id: I2b594344ec585d7dfd922b40c1af43b1508828b3
      289daca9
  10. Jan 25, 2016
    • Mark Michelson's avatar
      res_pjsip_pubsub: Prevent crash from AMI command on freed subscription. · b073244c
      Mark Michelson authored
      A test recently uncovered that running an ill-timed AMI command to show
      inbound subscriptions could cause a crash since Asterisk will try to
      operate on a freed subscription.
      
      The fix for this is to remove the subscription tree from the list of
      subscriptions at the time that we are sending our final NOTIFY request
      out. This way, as the subscription is in the process of dying, it is
      inaccessible from AMI.
      
      Change-Id: Ic0239003d8d73e04c47c12dd2a7e23867e5b5b23
      b073244c
    • Corey Farrell's avatar
      chan_sip: Fix buffer overrun in sip_sipredirect. · 830f8933
      Corey Farrell authored
      sip_sipredirect uses sscanf to copy up to 256 characters to a stacked buffer
      of 256 characters.  This patch reduces the copy to 255 characters to leave
      room for the string null terminator.
      
      ASTERISK-25722 #close
      
      Change-Id: Id6c3a629a609e94153287512c59aa1923e8a03ab
      830f8933
    • Rodrigo Ramírez Norambuena's avatar
      app_queue: Add Lastpause field of queue member · f299dc0d
      Rodrigo Ramírez Norambuena authored
      Add time when started a the last pause for a queue member for
      QueueMemberStatus ami event.
      
      Also show accumulate time in seconds when started a pause for a queue
      member to CLI command 'queue show'.
      
      ASTERISK-16394 #close
      
      Change-Id: I4b12aa3b2efa8d02939db3e13712510b4879865c
      f299dc0d
  11. Jan 23, 2016
Loading