Skip to content
Snippets Groups Projects
  1. Nov 29, 2022
    • Naveen Albert's avatar
      chan_dahdi: Allow FXO channels to start immediately. · 5ede4e21
      Naveen Albert authored
      Currently, chan_dahdi will wait for at least one
      ring before an incoming call can enter the dialplan.
      This is generally necessary in order to receive
      the Caller ID spill and/or distinctive ringing
      detection.
      
      However, if neither of these is required, then there
      is nothing gained by waiting for one ring and this
      unnecessarily delays call setup. Users can now
      use immediate=yes to make FXO channels (FXS signaled)
      begin processing dialplan as soon as Asterisk receives
      the call.
      
      ASTERISK-30305 #close
      
      Change-Id: I20818b370b2e4892c7f40c8a8753fa06a81750b5
      5ede4e21
  2. May 02, 2022
    • Naveen Albert's avatar
      chan_dahdi: Don't append cadences on dahdi restart. · 19c84195
      Naveen Albert authored
      Currently, if any custom ring cadences are specified, they are
      appended to the array of cadences from wherever we left off
      last time. This works properly the first time, but on subsequent
      dahdi restarts, it means that the existing cadences are left
      alone and (most likely) the same cadences are then re-added
      afterwards. In short order, the cadence array gets maxed out
      and the user begins seeing warnings that the array is full
      and no more cadences may be added.
      
      This buggy behavior persists until Asterisk is completely
      restarted; however, if and when dahdi restart is run again,
      then the same problem is reintroduced.
      
      This fixes this behavior so that cadence parsing is more
      idempotent, that is so running dahdi restart multiple times
      starts adding cadences from the beginning, rather than from
      wherever the last cadence was added.
      
      As before, it is still not possible to revert to the default
      cadences by simply removing all cadences in this manner, nor
      is it possible to delete existing cadences. However, this
      does make it possible to update existing cadences, which
      was not possible before, and also ensures that the cadences
      remain unchanged if the config remains unchanged.
      
      ASTERISK-29990 #close
      
      Change-Id: Ie32ea3e8a243b766756b1afce684d4a31ee7421d
      19c84195
  3. Nov 16, 2021
    • Josh Soref's avatar
      configs: Spelling fixes · b9e88841
      Josh Soref authored
      Correct typos of the following word families:
      
      password
      excludes
      undesirable
      checksums
      through
      screening
      interpreting
      database
      causes
      initiation
      member
      busydetect
      defined
      severely
      throughput
      recognized
      counter
      require
      indefinitely
      accounts
      
      ASTERISK-29714
      
      Change-Id: Ie8f2a7b274a162dd627ee6a2165f5e8a3876527e
      b9e88841
  4. Aug 20, 2021
    • Sarah Autumn's avatar
      sig_analog: Changes to improve electromechanical signalling compatibility · 466eb4a5
      Sarah Autumn authored
      This changeset is intended to address compatibility issues encountered
      when interfacing Asterisk to electromechanical telephone switches that
      implement ANI-B, ANI-C, or ANI-D.
      
      In particular the behaviours that this impacts include:
      
       - FGC-CAMA did not work at all when using MF signaling. Modified the
         switch case block to send calls to the correct part of the
         signaling-handling state machine.
      
       - For FGC-CAMA operation, the delay between called number ST and
         second wink for ANI spill has been made configurable; previously
         all calls were made to wait for one full second.
      
       - After the ANI spill, previous behavior was to require a 'ST' tone
         to advance the call.  This has been changed to allow 'STP' 'ST2P'
         or 'ST3P' as well, for compatibility with ANI-D.
      
       - Store ANI2 (ANI INFO) digits in the CALLERID(ANI2) channel variable.
      
       - For calls with an ANI failure, No. 1 Crossbar switches will send
         forward a single-digit failure code, with no calling number digits
         and no ST pulse to terminate the spill.  I've made the ANI timeout
         configurable so to reduce dead air time on calls with ANI fail.
      
       - ANI info digits configurable.  Modern digital switches will send 2
         digits, but ANI-B sends only a single info digit.  This caused the
         ANI reported by Asterisk to be misaligned.
      
       - Changed a confusing log message to be more informative.
      
      ASTERISK-29518
      
      Change-Id: Ib7e27d987aee4ed9bc3663c57ef413e21b404256
      466eb4a5
  5. May 03, 2018
    • Tzafrir Cohen's avatar
      chan_dahdi: Configurable dialed digit timeouts · 63015314
      Tzafrir Cohen authored
      Analog phones dial overlap dialing and it is chan_dahdi's job to read the
      numbers.  It has three timeout constants that this commit converts to
      channel-level configuration options:
      
      * firstdigit_timeout: Default time (ms) to detect first digit
      
      * interdigit_timeout: Default time (ms) to detect following digits
      
      * matchdigit_timeout: Default time (ms) to wait in case of ambiguous
      match.  This happens when the dialed digits match a number in the current
      context but are also the prefix of another number.
      
      Change-Id: Ib728fa900a4f6ae56d1ed810aba61b6593fb7213
      63015314
  6. Dec 22, 2017
  7. Oct 27, 2016
    • Tzafrir Cohen's avatar
      chan_dahdi: remove by_name support · 0646b48e
      Tzafrir Cohen authored
      Support for referring to DAHDI channels by logical names was added in
      (FIXME: when? Asterisk 11? 1.8?) and was intended to be part of support
      of refering to channels by name.
      
      While technically usable, it has never been properly supported in
      dahdi-tools, as using it would require many changes at the Asterisk
      level. Instead logical mapping was added at the kernel level.
      
      Thus it seems that refering to DAHDI channels by name is not really used
      by anyone, and therefore should probably be removed.
      
      Change-Id: I7d50bbfd9d957586f5cd06570244ef87bd54b485
      0646b48e
  8. Sep 02, 2016
  9. Jul 19, 2016
    • Richard Mudgett's avatar
      chan_dahdi: Add faxdetect_timeout option. · 0d1744e1
      Richard Mudgett authored
      The new option allows the channel driver's faxdetect option to timeout on
      a call after the specified number of seconds into a call.  The new feature
      is disabled if the timeout is set to zero.  The option is disabled by
      default.
      
      * Don't clear dsp_features after passing them to the dsp code in
      my_pri_ss7_open_media().  We should still remember them especially for the
      new faxdetect_timeout option.
      
      ASTERISK-26214
      Reported by: Richard Mudgett
      
      Change-Id: Ieffd3fe788788d56282844774365546dce8ac810
      0d1744e1
  10. May 06, 2015
  11. Apr 30, 2015
    • Richard Mudgett's avatar
      chan_dahdi: Add the chan_dahdi.conf force_restart_unavailable_chans option. · 03c51cf5
      Richard Mudgett authored
      Some telco switches occasionally ignore ISDN RESTART requests.  The fix
      for ASTERISK-19608 added an escape clause for B channels in the restarting
      state if the telco ignores a RESTART request.  If the telco fails to
      acknowledge the RESTART then Asterisk will assume the telco acknowledged
      the RESTART on the second call attempt requesting the B channel by the
      telco.  The escape clause is good for dealing with RESTART requests in
      general but it does cause the next call for the restarting B channel to be
      rejected if the telco insists the call must go on that B channel.
      
      chan_dahdi doesn't really need to issue a RESTART request in response to
      receiving a cause 44 (Requested channel not available) code.  Sending the
      RESTART in such a situation is not required (nor prohibited) by the
      standards.  I think chan_dahdi does this for historical reasons to deal
      with buggy peers to get channels unstuck in a similar fashion as the
      chan_dahdi.conf resetinterval option.
      
      * Add the chan_dahdi.conf force_restart_unavailable_chans compatability
      option that when disabled will prevent chan_dahdi from trying to RESTART
      the channel in response to a cause 44 code.
      
      ASTERISK-25034 #close
      Reported by: Richard Mudgett
      
      Change-Id: Ib8b17a438799920f4a2038826ff99a1884042f65
      03c51cf5
  12. Jul 17, 2014
  13. Jul 03, 2014
    • Richard Mudgett's avatar
      chan_dahdi: Add inband_on_setup_ack compatibility option. · 3bd495a6
      Richard Mudgett authored
      The new inband_on_setup_ack option causes Asterisk to assume inband audio
      may be present when a SETUP_ACKNOWLEDGE message is received.
      
      Q.931 Section 5.1.3 says that in scenarios with overlap dialing, when a
      dialtone is sent from the network side, progress indicator 8 "Inband info
      now available" MAY be sent to the CPE if no digits were received with the
      SETUP.  It is thus implied that the ie is mandatory if digits came with
      the SETUP and dialtone is needed.  This option should be enabled, when the
      network sends dialtone and you want to hear it, but the network doesn't
      send the progress indicator when needed.
      
      NOTE: For Q.SIG setups this option should be enabled when outgoing overlap
      dialing is also enabled because Q.SIG does not send the progress indicator
      with the SETUP ACK.
      
      The commit -r413714 (AST-1338) which causes this issue was dealing with a
      SIP-to-ISDN interoperability issue.
      
      This commit is a merge of the two patches indicated below.
      
      ASTERISK-23897 #close
      Reported by: Pavel Troller
      Patches:
            pri-4.diff (license #6302) patch uploaded by Pavel Troller
            jira_asterisk_23897_v11.patch (license #5621) patch uploaded by rmudgett
      
      Review: https://reviewboard.asterisk.org/r/3633/
      ........
      
      Merged revisions 417956 from http://svn.asterisk.org/svn/asterisk/branches/1.8
      ........
      
      Merged revisions 417957 from http://svn.asterisk.org/svn/asterisk/branches/11
      ........
      
      Merged revisions 417958 from http://svn.asterisk.org/svn/asterisk/branches/12
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@417976 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      3bd495a6
  14. Jun 16, 2014
    • Richard Mudgett's avatar
      chan_dahdi: Adds support for major update to libss7. · 0c896d8b
      Richard Mudgett authored
      * SS7 support now requires libss7 v2.0 or later.  The new libss7 is not
      backwards compatible.
      
      * Added SS7 support for connected line and redirecting.
      
      * Most SS7 CLI commands are reworked as well as new SS7 commands added.
      See online CLI help.
      
      * Added several SS7 config option parameters described in
      chan_dahdi.conf.sample.
      
      * ISUP timer support reworked and now requires explicit configuration.
      See ss7.timers.sample.
      
      Special thanks to Kaloyan Kovachev for his support and persistence in
      getting the original patch by adomjan updated and ready for release.
      
      SS7-27 #close
      Reported by: adomjan
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@416416 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      0c896d8b
  15. Dec 23, 2013
  16. Dec 19, 2013
    • Richard Mudgett's avatar
      Voicemail: Remove mailbox identifier format (box@context) assumptions in the system. · e4803bbd
      Richard Mudgett authored
      This change is in preparation for external MWI support.
      
      Removed code from the system for normal mailbox handling that appends
      @default to the mailbox identifier if it does not have a context.  The
      only exception is the legacy hasvoicemail users.conf option.  The legacy
      option will only work for app_voicemail mailboxes.  The system cannot make
      any assumptions about the format of the mailbox identifer used by
      app_voicemail.
      
      chan_sip and chan_dahdi/sig_pri had the most changes because they both
      tried to interpret the mailbox identifier.  chan_sip just stored and
      compared the two components.  chan_dahdi actually used the box
      information.
      
      The ISDN MWI support configuration options had to be reworked because
      chan_dahdi was parsing the box@context format to get the box number.  As a
      result the mwi_vm_boxes chan_dahdi.conf option was added and is documented
      in the chan_dahdi.conf.sample file.
      
      Review: https://reviewboard.asterisk.org/r/3072/
      ........
      
      Merged revisions 404348 from http://svn.asterisk.org/svn/asterisk/branches/12
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@404350 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      e4803bbd
  17. Oct 14, 2013
  18. Sep 11, 2013
  19. Jun 06, 2013
    • Richard Mudgett's avatar
      Reimplement bridging and DTMF features related channel variables in the bridging core. · bad8caa8
      Richard Mudgett authored
      * The channel variable ATTENDED_TRANSFER_COMPLETE_SOUND is no longer
      channel driver specific.  If the channel variable is set on the
      transferrer channel, the sound will be played to the target of an attended
      transfer.
      
      * The channel variable BRIDGEPEER becomes a comma separated list of peers
      in a multi-party bridge.  The BRIDGEPEER value can have a maximum of 10
      peers listed.  Any more peers in the bridge will not be included in the
      list.  BRIDGEPEER is not valid in holding bridges like parking since those
      channels do not talk to each other even though they are in a bridge.
      
      * The channel variable BRIDGEPVTCALLID is only valid for two party bridges
      and will contain a value if the BRIDGEPEER's channel driver supports it.
      
      * The channel variable DYNAMIC_PEERNAME is redundant with BRIDGEPEER and
      is removed.  The more useful DYNAMIC_WHO_ACTIVATED gives the channel name
      that activated the dynamic feature.
      
      * The channel variables DYNAMIC_FEATURENAME and DYNAMIC_WHO_ACTIVATED are
      set only on the channel executing the dynamic feature.  Executing a
      dynamic feature on the bridge peer in a multi-party bridge will execute it
      on all peers of the activating channel.
      
      (closes issue ASTERISK-21555)
      Reported by: Matt Jordan
      
      Review: https://reviewboard.asterisk.org/r/2582/
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@390771 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      bad8caa8
  20. Apr 03, 2013
  21. Oct 08, 2012
  22. Aug 07, 2012
    • Matthew Jordan's avatar
      Add named callgroups/pickupgroups · 5c4578f4
      Matthew Jordan authored
      This patch adds named calledgroups/pickupgroups to Asterisk.  Named groups are
      implemented in parallel to the existing numbered callgroup/pickupgroup
      implementation.  However, unlike the existing implementation, which is limited
      to a maximum of 64 defined groups, the number of defined groups allowed for
      named callgroups/pickupgroups is effectively unlimited.
      
      Named groups are configured with the keywords "namedcallgroup" and
      "namedpickupgroup".  This corresponds to the numbered group definitions of
      "callgroup" and "pickupgroup".  Note that as the implementation of named groups
      coexists with the existing numbered implementation, a defined named group of
      "4" does not equate to numbered group 4.
      
      Support for the named groups has been added to the SIP, DAHDI, and mISDN channel
      drivers.
      
      Review: https://reviewboard.asterisk.org/r/2043
      
      Uploaded by:
      	Guenther Kelleter(license #6372)
      
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@370831 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      5c4578f4
  23. Apr 18, 2012
  24. Mar 13, 2012
  25. Mar 06, 2012
    • Richard Mudgett's avatar
      Add dialtone_detect option for analog incoming calls. · a0f88217
      Richard Mudgett authored
      For analog lines, enables Asterisk to use dialtone detection per channel
      if an incoming call was hung up before it was answered.  If dialtone is
      detected, the call is hung up.
      no:       Disabled. (Default)
      yes:      Look for dialtone for 10000 ms after answer.
      <number>: Look for dialtone for the specified number of ms after answer.
      always:   Look for dialtone for the entire call.  Dialtone may return
                if the far end hangs up first.
      
      dialtone_detect=yes
      dialtone_detect=5000
      dialtone_detect=always
      
      (closes issue ASTERISK-19316)
      Reported by: Jeremy Pepper
      Patch by: Jeremy Pepper
      Tested by: rmudgett,Jeremy Pepper
      
      Review: https://reviewboard.asterisk.org/r/1737/
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@358344 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      a0f88217
  26. Dec 12, 2011
  27. Aug 17, 2011
    • Richard Mudgett's avatar
      Merged revisions 332265 via svnmerge from · 265102fa
      Richard Mudgett authored
      https://origsvn.digium.com/svn/asterisk/branches/10
      
      ................
        r332265 | rmudgett | 2011-08-17 11:01:29 -0500 (Wed, 17 Aug 2011) | 33 lines
        
        Merged revisions 332264 via svnmerge from 
        https://origsvn.digium.com/svn/asterisk/branches/1.8
        
        ........
          r332264 | rmudgett | 2011-08-17 10:51:08 -0500 (Wed, 17 Aug 2011) | 26 lines
          
          Outgoing BRI calls fail when using Asterisk 1.8 with HA8, HB8, and B410P cards.
          
          France Telecom brings layer 2 and layer 1 down on BRI lines when the line
          is idle.  When layer 1 goes down Asterisk cannot make outgoing calls and
          the HA8 and HB8 cards also get IRQ misses.
          
          The inability to make outgoing calls is because the line is in red alarm
          and Asterisk will not make calls over a line it considers unavailable.
          The IRQ misses for the HA8 and HB8 card are because the hardware is
          switching clock sources from the line which just brought layer 1 down to
          internal timing.
          
          There is a DAHDI option for the B410P card to not tell Asterisk that layer
          1 went down so Asterisk will allow outgoing calls: "modprobe wcb4xxp
          teignored=1".  There is a similar DAHDI option for the HA8 and HB8 cards:
          "modprobe wctdm24xxp bri_teignored=1".  Unfortunately that will not clear
          up the IRQ misses when the telco brings layer 1 down.
          
          * Add layer 2 persistence option to customize the layer 2 behavior on BRI
          PTMP lines.  The new option has three settings: 1) Use libpri default
          layer 2 setting.  2) Keep layer 2 up.  Bring layer 2 back up when the peer
          brings it down.  3) Leave layer 2 down when the peer brings it down.
          Layer 2 will be brought up as needed for outgoing calls.
          
          JIRA AST-598
        ........
      ................
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@332270 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      265102fa
  28. Jul 21, 2011
  29. May 17, 2011
    • Richard Mudgett's avatar
      Option needed for Q931_IE_TIME_DATE to be optional in CONNECT message. · 5257a915
      Richard Mudgett authored
      The NEC SV8300 rejects the Q931_IE_TIME_DATE for Q.SIG.
      
      Add option to specify if and how much of the current time is put in
      Q931_IE_TIME_DATE.
      * Send date/time ie never.
      * Send date/time ie date only.
      * Send date/time ie date and hour.
      * Send date/time ie date, hour, and minute.
      * Send date/time ie date, hour, minute, and second.
      * Send date/time ie default: Libpri will send date and hhmm only when in
      NT PTMP mode to support ISDN phones.
      
      (closes issue #19221)
      Reported by: kenner
      
      JIRA SWP-3396
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@319427 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      5257a915
  30. Apr 18, 2011
    • Richard Mudgett's avatar
      Problems with ISDN MWI to phones. · 37274c73
      Richard Mudgett authored
      The "controlling user number" is always the number of the voice mail box
      which is identical with the subscriber number itself.  This number which
      is listed in the ISDN phone MWI menu cannot be called back to contact the
      voice mail box.  The controlling user number should be made configurable.
      
      JIRA ABE-2738
      JIRA SWP-2846
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@314116 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      37274c73
  31. Apr 13, 2011
  32. Feb 08, 2011
  33. Feb 07, 2011
  34. Feb 04, 2011
    • Richard Mudgett's avatar
      Add ISDN display ie text handling options to chan_dahdi.conf. · a8aeb04a
      Richard Mudgett authored
      The display ie handling can be controlled independently in the send and
      receive directions with the following options:
      
      * Block display text data.
      
      * Use display text in SETUP/CONNECT messages for name.
      
      * Use display text for COLP name updates (FACILITY/NOTIFY as appropriate).
      
      * Pass arbitrary display text during a call.  Sent in INFORMATION
      messages.  Received from any message that the display text was not used as
      a name.
      
      If the display options are not set then the options default to legacy
      behavior.
      
      The arbitrary display text is exchanged between bridged channels using the
      AST_FRAME_TEXT frame type.
      
      To send display text from the dialplan use the SendText() application when
      the arbitrary display text option is enabled.
      
      JIRA SWP-2688
      JIRA ABE-2693
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@306396 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      a8aeb04a
  35. Feb 02, 2011
  36. Jan 27, 2011
  37. Jan 04, 2011
  38. Nov 22, 2010
  39. Sep 13, 2010
Loading