{"id":2134,"date":"2012-06-05T02:15:36","date_gmt":"2012-06-04T17:15:36","guid":{"rendered":"http:\/\/blog.isnext.net\/issy\/?p=2134"},"modified":"2012-06-06T00:41:02","modified_gmt":"2012-06-05T15:41:02","slug":"pcap2sipp%e3%81%a7sipp%e3%82%b7%e3%83%8a%e3%83%aa%e3%82%aaxml%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e3%83%a1%e3%83%a2","status":"publish","type":"post","link":"https:\/\/blog.isnext.net\/issy\/archives\/2134","title":{"rendered":"pcap2sipp\u3067sipp\u30b7\u30ca\u30ea\u30aaxml\u3092\u4f5c\u6210\u3059\u308b\u30e1\u30e2"},"content":{"rendered":"<p><strong>\u25a0pcap2sipp\u3067sipp\u30b7\u30ca\u30ea\u30aaxml\u3092\u4f5c\u6210\u3059\u308b\u30e1\u30e2<\/strong><br \/>\n\u3000SIP\u306e\u30c6\u30b9\u30c8\u306e\u305f\u3081\u3001\u5b9f\u969b\u306e\u901a\u4fe1\u3092\u30d1\u30b1\u30c3\u30c8\u30ad\u30e3\u30d7\u30c1\u30e3\u3057\u3066\u3001\u305d\u3053\u304b\u3089sipp\u30b7\u30ca\u30ea\u30aa\u306exml\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306e\u30e1\u30e2\u3002\u4f7f\u7528\u3059\u308b\u30c4\u30fc\u30eb\u306fpcap2sipp\u3002\u540c\u540d\u306eperl script\u3082\u5b58\u5728\u3059\u308b\u3088\u3046\u3060\u304c\u3001\u3053\u3053\u3067\u306fLinux\u4e0a\u3067make\u3059\u308b\u30bf\u30a4\u30d7\u306e\u3082\u306e\u3092\u5229\u7528\u3057\u305f\u3002<\/p>\n<p><strong>\u25a0pcap2sipp\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/strong><br \/>\n\u3000\u5148\u306bsourceforge.net\u304b\u3089<a href=\"http:\/\/sourceforge.net\/projects\/pcap2sipp\/\">pcap2sipp.tar.gz\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/a>\u3057\u3066\u304a\u304f\u3002<br \/>\n[code]# yum install libpcap libpcap-devel tcpdump<br \/>\n# tar zxvf pcap2sipp.tar.gz<br \/>\n# cd pcap2sipp<br \/>\n# make all[\/code]<\/p>\n<p><strong>\u25a0pcap2sipp\u306e\u4f7f\u3044\u65b9<\/strong><br \/>\n\u3000\u4e8b\u524d\u306b\u901a\u4fe1\u306e\u30ad\u30e3\u30d7\u30c1\u30e3\u30d5\u30a1\u30a4\u30eb\u3092\u7528\u610f\u3057\u3066\u304a\u304f\u3002\uff08ex: call.pcap\uff09<\/p>\n<p>\u6700\u521d\u306b\u901a\u4fe1\u3057\u3066\u3044\u308bIP\u3092\u30ea\u30b9\u30c8\u3059\u308b<br \/>\n[code]# .\/pcap2sipp -o listips -f call.pcap<br \/>\n******************* Available IP addresses **********************<br \/>\n10.0.2.10<br \/>\n192.168.0.10<br \/>\n******************************************************************[\/code]<\/p>\n<p>\u6b21\u306b\u4f7f\u7528\u3055\u308c\u3066\u3044\u308bcallID\u3092\u30ea\u30b9\u30c8\u3059\u308b<br \/>\n[code]# .\/pcap2sipp -o listcallids -f call.pcap<br \/>\n********************** Available Call IDs ************************<br \/>\n8Mv2R1rB.mcu7tO21ZFCMDjjvE7DJx8V<br \/>\nYfqoDfWpaiWxS1Zi0rep3EfStwl3AkX2<br \/>\n-we1v2OCObQGp-S.2pcQMIVsPs8a5k2P<br \/>\nqODuwM0uFomvET.j3xbEjqCVTnl4VCDf<br \/>\n******************************************************************[\/code]<\/p>\n<p>192,168.0.10\u3092\u30ed\u30fc\u30ab\u30eb\u5074\u300110.0.2.10\u3092\u76f8\u624b\u5074\u3068\u3057\u3066\u3001<br \/>\nCallID qODuwM0uFomvET.j3xbEjqCVTnl4VCDf \u3092\u5bfe\u8c61\u306b<br \/>\nxml\u3092\u4f5c\u6210\u3057\u3066\u307f\u308b<br \/>\n[code]# .\/pcap2sipp -o simulate -f call,pcap -c qODuwM0uFomvET.j3xbEjqCVTnl4VCDf -i 192.168.0.10 -a 10.0.2.10 -b 192.168.0.10<br \/>\n********************** Generating simulation files *************************<br \/>\nThe RTP file was generated. Path: \/tmp\/rtp.pcap<br \/>\nAll necessary data was succesfully generated. You can now run sipp with command:<br \/>\nrm -f \/tmp\/*.log; .\/sipp -sf \/tmp\/sipp_scenario.xml -inf \/tmp\/sipp_injection.csv -i 192.168.0.10 -p 5060  10.0.2.10:5060 -m 1 -trace_msg -d 3000[\/code]<\/p>\n<p>\u3053\u308c\u3067\u5b9f\u969b\u306b\u30c6\u30b9\u30c8\u53ef\u80fd\u306a\u30c7\u30fc\u30bf\u304c\/tmp\u306b\u4f5c\u6210\u3055\u308c\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u25a0pcap2sipp\u3067sipp\u30b7\u30ca\u30ea\u30aaxml\u3092\u4f5c\u6210\u3059\u308b\u30e1\u30e2 \u3000SIP\u306e\u30c6\u30b9\u30c8\u306e\u305f\u3081\u3001\u5b9f\u969b\u306e\u901a\u4fe1\u3092\u30d1\u30b1\u30c3\u30c8\u30ad\u30e3\u30d7\u30c1\u30e3\u3057\u3066\u3001\u305d\u3053\u304b\u3089sipp\u30b7\u30ca\u30ea\u30aa\u306exml\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306e\u30e1\u30e2\u3002\u4f7f\u7528\u3059\u308b\u30c4\u30fc\u30eb\u306fpcap2sipp\u3002\u540c &hellip; <a href=\"https:\/\/blog.isnext.net\/issy\/archives\/2134\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;pcap2sipp\u3067sipp\u30b7\u30ca\u30ea\u30aaxml\u3092\u4f5c\u6210\u3059\u308b\u30e1\u30e2&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[20,66,167,64,67],"class_list":["post-2134","post","type-post","status-publish","format-standard","hentry","category-linux","tag-centos","tag-sip","tag-sipp","tag-tips","tag-voip"],"_links":{"self":[{"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/posts\/2134","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/comments?post=2134"}],"version-history":[{"count":4,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/posts\/2134\/revisions"}],"predecessor-version":[{"id":2140,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/posts\/2134\/revisions\/2140"}],"wp:attachment":[{"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/media?parent=2134"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/categories?post=2134"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/tags?post=2134"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}