Uploaded image for project: 'FreeSWITCH'
  1. FreeSWITCH
  2. FS-2847

Using C#, Execute("playback",@"\\SERVER\file.wav"); causes the double \\ to be changed to \ which fails to find the file

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0.6
    • Fix Version/s: None
    • Component/s: freeswitch-core
    • Labels:
      None
    • Environment:
      Windows 2003, C#
    • CPU Architecture:
      x86
    • Kernel:
      Microsoft Windows
    • Userland:
      Microsoft Windows
    • Distribution:
      Microsoft Windows
    • Compiler:
      Microsoft Visual Studio
    • FreeSWITCH GIT Revision:
      no git
    • GIT Master Revision hash::
      not using
    • Target Version:

      Description

      I just started using FS and during testing
      Session.Execute("playback", @"\\TEST1\E_Drive\tele\A\222\201\4\0\2222014050.1.wav");
      the play would fail and, the file reported as the problem, showed only one backslash. I found that in switch_channel.c, switch_channel_expand_variables() line 2865:
      } else if (*(p + 1) == '
      ') {
      *c++ = *p; //<-fixed(removed +) BUG??*c+ = *p+; p+ here causes the dual slashes before server name to become one slash -line 2865
      len++;
      continue;
      }

      The for loop above it also increments p++ thus jumping over the second backslash. Unless designed to eliminate dual slashes, this is a bug. At least it should not eliminate the dual slashes before the server name

        Attachments

          Activity

            People

            • Assignee:
              anthm Anthony Minessale II
              Reporter:
              livecall Kris Dimitrov
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 10 minutes
                10m
                Remaining:
                Remaining Estimate - 10 minutes
                10m
                Logged:
                Time Spent - Not Specified
                Not Specified