最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Java ProcessBuilder execute SIPP command with success but RTP packets are not sent during call - Stack Overflow

programmeradmin3浏览0评论

As I mentionned in title, Java ProcessBuilder executes the following SIPP command with success but RTP packets are not sent during call.

ProcessBuilder processBuilder = new ProcessBuilder();
processBuilder.inheritIO();
Map<String, String> environment = processBuilder.environment();
environment.put("TERM", System.getProperty("user.dir") + File.separator + "sipp_windows" + File.separator + "xterm");
Process javap = processBuildermand("./sipp_windows/sipp", " -sf","./scenario/xml/myscenario.xml", "-p", "10002","-t", "u1","-trace_err", "-error_file","./scenario/logs/myLogReport.error.log","-m", "1", "10.10.183.132", "-s","5555", "-inf", "./scenario/myFied.csv","-i", "10.10.190.25","-d","10000").start();`
` int errorCode = javap.waitFor();
 PrintWriter fluxSortie = new PrintWriter("target/sippReport.txt"); 
InputStreamReader tempReader = new InputStreamReader(new BufferedInputStream(javap.getInputStream()));
BufferedReader reader = new BufferedReader(tempReader);`
        while (true) {
            String line = reader.readLine();
            if (line == null)
                break;
            System.out.println(line);
            fluxSortie.printf(line + "\n");
        }
        fluxSortie.close();
        reader.close()

Analysing a capture with Wireshark, I remarqued that the SIP session was correctly established, but no RTP packets were sent. Also I hope to mention that when I executed the same command in Cygwin prompt, RTP are successfully sent, the probleme happened only with Java ProcessBuilder. Are there any permession to activate in Java in order to let RTP pcap packets achieve their destination? Are there a specific port from which data must be sent (I am using media port number 6000 given randomly by SIPP)? Does anyone has the same issue as am I? `

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论