Skip to content
Snippets Groups Projects
  1. Jul 16, 2007
  2. Jul 13, 2007
    • Russell Bryant's avatar
      Merged revisions 75108 via svnmerge from · 472dde9a
      Russell Bryant authored
      https://origsvn.digium.com/svn/asterisk/branches/1.4
      
      ................
      r75108 | russell | 2007-07-13 15:36:16 -0500 (Fri, 13 Jul 2007) | 11 lines
      
      Merged revisions 75107 via svnmerge from 
      https://origsvn.digium.com/svn/asterisk/branches/1.2
      
      ........
      r75107 | russell | 2007-07-13 15:35:22 -0500 (Fri, 13 Jul 2007) | 3 lines
      
      Fix a couple potential minor memory leaks.  load_moh_classes() could return
      without destroying the loaded configuration.
      
      ........
      
      ................
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@75109 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      472dde9a
    • Mark Michelson's avatar
      Merged revisions 75078 via svnmerge from · cb8170e8
      Mark Michelson authored
      https://origsvn.digium.com/svn/asterisk/branches/1.4
      
      ................
      r75078 | mmichelson | 2007-07-13 15:15:30 -0500 (Fri, 13 Jul 2007) | 13 lines
      
      Merged revisions 75066 via svnmerge from 
      https://origsvn.digium.com/svn/asterisk/branches/1.2
      
      ........
      r75066 | mmichelson | 2007-07-13 15:10:39 -0500 (Fri, 13 Jul 2007) | 5 lines
      
      Fixed an issue where chanspy flags were uninitialized if no options were passed.
      What triggered this investigation was an IRC chat where some people's quiet flags were
      set while others' weren't even though none of them had specified the q option.
      
      
      ........
      
      ................
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@75082 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      cb8170e8
    • Russell Bryant's avatar
      resolve a compiler warning · c2603c1a
      Russell Bryant authored
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@75077 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      c2603c1a
    • Russell Bryant's avatar
      Merged revisions 75067 via svnmerge from · fcd3f8db
      Russell Bryant authored
      https://origsvn.digium.com/svn/asterisk/branches/1.4
      
      ................
      r75067 | russell | 2007-07-13 15:10:40 -0500 (Fri, 13 Jul 2007) | 14 lines
      
      Merged revisions 75059 via svnmerge from 
      https://origsvn.digium.com/svn/asterisk/branches/1.2
      
      ........
      r75059 | russell | 2007-07-13 15:07:21 -0500 (Fri, 13 Jul 2007) | 6 lines
      
      Ensure that adding a user to the list of users of a specific music on hold
      class is not done at the same time as any of the other operations on this list
      to prevent list corruption.  Using the global moh_data lock for this is not
      ideal, but it is what is used to protect these lists everywhere else in the
      module, and I am only changing what is necessary to fix the bug.
      
      ........
      
      ................
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@75075 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      fcd3f8db
    • Russell Bryant's avatar
      Merged revisions 75053 via svnmerge from · 432a087e
      Russell Bryant authored
      https://origsvn.digium.com/svn/asterisk/branches/1.4
      
      ................
      r75053 | russell | 2007-07-13 14:11:26 -0500 (Fri, 13 Jul 2007) | 20 lines
      
      Merged revisions 75052 via svnmerge from 
      https://origsvn.digium.com/svn/asterisk/branches/1.2
      
      ........
      r75052 | russell | 2007-07-13 14:10:00 -0500 (Fri, 13 Jul 2007) | 12 lines
      
      (closes issue #9660)
      Reported by: mmacvicar
      Patches submitted by: bbryant, russell
      Tested by: mmacvicar, marco, arcivanov, jmhunter, explidous
      
      When using a TDM400P (and probably other analog cards) there was a chance that
      you could hang up and pick the phone back up where it has been long enough to
      be not considered a flash hook, but too soon such that the device reports that
      it is busy and the person on the phone will only hear silence.  This patch
      makes chan_zap more tolerant of this and gives the device a couple of seconds 
      to succeed so the person on the phone happily gets their dialtone.
      
      ........
      
      ................
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@75054 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      432a087e
    • Luigi Rizzo's avatar
      Small improvement to the STUN support so it can be used by · e950538b
      Luigi Rizzo authored
      sockets other than RTP ones.
      
      The main change is a new API function in main/rtp.c (see there
      for a description)
      
          int ast_stun_request(int s, struct sockaddr_in *dst,
              const char *username, struct sockaddr_in *answer)
      
      which can be used to send an STUN request on a socket, and
      optionally wait for a reply and store the STUN_MAPPED_ADDRESS
      into the 'answer' argument (obviously, the version that
      waits for a reply is blocking, but this is no different
      from DNS resolutions).
      
      Internally there are minor modifications to let stun_handle_packet()
      be somewhat configurable on how to parse the body of responses.
      
      At the moment i am not committing any change to the clients,
      but adding STUN client support is extremely simple, e.g. chan_sip.c
      could do something like this:
      
          + add a variable to store the stun server address;
      
      	static struct sockaddr_in stunaddr = { 0, };   /*!< stun server address */
      
          + add code to parse a config file of the form "stunaddr=my.stun.server.org:3478"
            (not shown for brevity);
      
          + right after binding the main sip socket, talk to the stun server to
            determine the externally visible address
      
      	    if (stunaddr.sin_addr.s_addr != 0)
      		ast_stun_request(sipsock, &stunaddr, NULL, &externip);
      
            so now 'externip' is set with the externally visible address.
      
      so it is really trivial.
      
      Similarly ast_stun_request could be called when creating the RTP
      socket (possibly adding a struct sockaddr_in field in the struct
      ast_rtp to store the externalip).
      
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@75034 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      e950538b
  3. Jul 12, 2007
  4. Jul 11, 2007
Loading