[asterisk-bugs] [JIRA] (ASTERISK-21036) Error in filename for jb log for DAHDI

Richard Kenner (JIRA) noreply at issues.asterisk.org
Mon Feb 4 20:39:58 CST 2013


Richard Kenner created ASTERISK-21036:
-----------------------------------------

             Summary: Error in filename for jb log for DAHDI
                 Key: ASTERISK-21036
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-21036
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
          Components: Core/Jitterbuffer
    Affects Versions: 10.7.1
            Reporter: Richard Kenner
            Severity: Minor


DAHDI channels have two slashes, so both must be changed to '#' when forming the filename for the jitterbuffer log.  Like so:

*** abstract_jb.c.orig  2013-02-04 21:32:40.000000000 -0500
--- abstract_jb.c       2013-02-04 21:33:01.000000000 -0500
***************
*** 444,448 ****
                int safe_fd;
                snprintf(name2, sizeof(name2), "%s", chan->name);
!               if ((tmp = strchr(name2, '/'))) {
                        *tmp = '#';
                }
--- 444,448 ----
                int safe_fd;
                snprintf(name2, sizeof(name2), "%s", chan->name);
!               while ((tmp = strchr(name2, '/'))) {
                        *tmp = '#';
                }
***************
*** 453,457 ****
  
                snprintf(name1, sizeof(name1), "%s", bridged->name);
!               if ((tmp = strchr(name1, '/'))) {
                        *tmp = '#';
                }
--- 453,457 ----
  
                snprintf(name1, sizeof(name1), "%s", bridged->name);
!               while ((tmp = strchr(name1, '/'))) {
                        *tmp = '#';
                }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list