SIPp下令参数.docx
《SIPp下令参数.docx》由会员分享,可在线阅读,更多相关《SIPp下令参数.docx(17页珍藏版)》请在冰点文库上搜索。
![SIPp下令参数.docx](https://file1.bingdoc.com/fileroot1/2023-5/25/3822c22e-59b3-4d36-a70f-ecab4ca076c1/3822c22e-59b3-4d36-a70f-ecab4ca076c11.gif)
SIPp下令参数
SIPp下令参数
www.MyException.Cn 发布于:
2013-04-2019:
43:
01 浏览:
86次
0
SIPp命令参数
sippremote_host[:
remote_port][options]
Availableoptions:
-v :
Displayversionandcopyrightinformation. ;显示版本号与版权信息
-aa :
Enableautomatic200OKanswerforINFO,UPDATEand;对INFO,UPDATE,NOTIFY回复200OK
NOTIFYmessages.
-auth_uri :
ForcethevalueoftheURIforauthentication. ;验证URI
Bydefault,theURIiscomposedof ;默认情况下URI由
remote_ip:
remote_port. ;remote_ip:
remote_port组成
-base_cseq :
Startvalueof[cseq]foreachcall. ;互相送cseq起始值
-bg :
LaunchSIPpinbackgroundmode. ;运行sipp在后台模式
-bind_local :
BindsockettolocalIPaddress,i.e.thelocalIP ;绑定本地IP与端口,本地IP地址会使用
addressisusedasthesourceIPaddress. IfSIPpruns;源Ip地址。
如果sipp运行在UAS模式
inservermodeitwillonlylistenonthelocalIP ;它仅会监听本地端口
addressinsteadofallIPaddresses.
-buff_size :
Setthesendandreceivebuffersize. ;设定发送与接收的缓冲区大小
-calldebug_file :
Setthenameofthecalldebugfile. ;设定debug文件名
-calldebug_overwrite:
Overwritethecalldebugfile(defaulttrue). ;重写呼叫debug文件名,
-cid_str :
CallIDstring(default%u-%p@%s). %u=call_number, ;呼叫字符串(默认是%u-%p@%s)
%s=ip_address,%p=process_number,%%=%(inanyorder).;%u=call_number%s=ip_address%p=process_number%%=%(inanyorder)
-ci :
SetthelocalcontrolIPaddress ;设定本地管理IP地址
-cp :
Setthelocalcontrolportnumber.Defaultis8888. ;设定本地管理端口默认8888
-d :
Controlsthelengthofcalls.Moreprecisely,this ;控制呼叫时间
controlsthedurationof'pause'instructionsinthe ;两次呼叫的中间时间
scenario,iftheydonothavea'milliseconds'section. ;如果没有设定毫秒级的间隔
Defaultvalueis0anddefaultunitismilliseconds. ;默认值为0,单位是毫秒
-deadcall_wait :
HowlongtheCall-IDandfinalstatusofcallsshouldbe ;设定bug提醒之间延时
kepttoimprovemessageanderrorlogs(defaultunitis;单位为ms
ms).
-default_behaviors:
SetthedefaultbehaviorsthatSIPpwilluse. Possbile ;设定Sipp的默认行为:
valuesare:
-all Usealldefaultbehaviors ;使用默认行为
-none Usenodefaultbehaviors ;不使用默认行为
-bye Sendbyesforabortedcalls ;默认送bye
-abortunexp Abortcallsonunexpectedmessages;终止意外的呼叫
-pingreply Replytopingrequests ;回复Ping请求
Ifabehaviorisprefacedwitha-,thenitisturned ;添加一个-,则代表关闭此功能
off. Example:
all,-bye ;如,all,-bye
-error_file :
Setthenameoftheerrorlogfile. ;设定errorlog文件名
-error_overwrite:
Overwritetheerrorlogfile(defaulttrue). ;重写errorlog文件
-f :
Setthestatisticsreportfrequencyonscreen.Defaultis ;设定在屏幕上显示的统计报告
1anddefaultunitisseconds. ;默认是1,时间为秒
-fd :
Setthestatisticsdumplogreportfrequency.Defaultis ;设定转储日志的时间与单位
60anddefaultunitisseconds. ;默认是60s
-i :
SetthelocalIPaddressfor'Contact:
','Via:
',and ;设定本地IP地址,用在‘Contact:
’‘Via:
’‘From:
’
'From:
'headers.DefaultisprimaryhostIPaddress. ;头域,默认是主机Ip地址
-inf :
InjectvaluesfromanexternalCSVfileduringcallsinto ;载入CSV场景文件
thescenarios.
Firstlineofthisfilesaywhetherthedataistobe ;SEQUENTIAL
readinsequence(SEQUENTIAL),random(RANDOM),oruser;RANDOM
(USER)order. ;USER
Eachlinecorrespondstoonecallandhasoneormore
';'delimiteddatafields.Thosefieldscanbereferred
as[field0],[field1],...inthexmlscenariofile.
SeveralCSVfilescanbeusedsimultaneously(syntax:
-inff1.csv-inff2.csv...)
-infindex :
filefield ;创建索引的引用段
Createanindexoffileusingfield. Forexample-inf ;范例
users.csv-infindexusers.csv0createsanindexonthe ;
firstkey.
-ip_field :
SetwhichfieldfromtheinjectionfilecontainstheIP ;设定引用的文件中
addressfromwhichtheclientwillsenditsmessages. ;用来送出IP字段关键字
Ifthisoptionisomittedandthe'-tui'optionis ;如果这个设置被忽略并且‘-tui’设置
present,thenfield0isassumed. ;则假设字段为0
Usethisoptiontogetherwith'-tui' ;使用时一般会带有‘-tui’
-l :
Setthemaximumnumberofsimultaneouscalls.Oncethis;设定并发呼叫数
limitisreached,trafficisdecreaseduntilthenumber ;
ofopencallsgoesdown.Default:
;
(3*call_duration(s)*rate). ;默认:
(3*call_duration(s)*rate).
-log_file :
Setthenameofthelogactionslogfile.
-log_overwrite :
Overwritethelogactionslogfile(defaulttrue).
-lost :
Setthenumberofpacketstolosebydefault(scenario ;设定没有场景文件如何拨打号码
specificationsoverridethisvalue). ;场景文件会覆盖此设置
-rtcheck :
Selecttheretransmisisondetectionmethod:
full ;设定检查RTP语音流full/loose
(default)orloose. ;默认为full
-m :
Stopthetestandexitwhen'calls'callsareprocessed ;停止呼叫的次数
-mi :
SetthelocalmediaIPaddress(default:
localprimary ;设定本地mediaIPaddress
hostIPaddress)
-master :
3pccextendedmode:
indicatesthemasternumber
-max_recv_loops :
Setthemaximumnumberofmessagesreceivedreadper
cycle.Increasethisvalueforhightrafficlevel. The
defaultvalueis1000.
-max_sched_loops:
Setthemaximumnumberofcalslrunpereventloop.
Increasethisvalueforhightrafficlevel. Thedefault
valueis1000.
-max_reconnect :
Setthethemaximumnumberofreconnection.
-max_retrans :
MaximumnumberofUDPretransmissionsbeforecallendson
timeout. Defaultis5forINVITEtransactionsand7for
others.
-max_invite_retrans:
MaximumnumberofUDPretransmissionsforinvite
transactionsbeforecallendsontimeout.
-max_non_invite_retrans:
MaximumnumberofUDPretransmissionsfornon-invite
transactionsbeforecallendsontimeout.
-max_log_size :
Whatisthelimitforerrorandmessagelogfilesizes.
-max_socket :
Setthemaxnumberofsocketstoopensimultaneously.
Thisoptionissignificantifyouuseonesocketper
call.Oncethislimitisreached,trafficisdistributed
overthesocketsalreadyopened.Defaultvalueis50000
-mb :
SettheRTPechobuffersize(default:
2048).
-message_file :
Setthenameofthemessagelogfile.
-message_overwrite:
Overwritethemessagelogfile(defaulttrue).
-mp :
SetthelocalRTPechoportnumber.Defaultis6000. ;设定本地RTP端口,默认6000
-nd :
NoDefault.DisablealldefaultbehaviorofSIPpwhich ;使用没有默认行为的SIPp
arethefollowing:
-OnUDPretransmissiontimeout,abortthecallby ;RTP语音超时
sendingaBYEoraCANCEL ;自动发送BYEorCANCEL
-Onreceivetimeoutwithnoontimeoutattribute,abort ;接收超时无超时属性,
thecallbysendingaBYEoraCANCEL ;发送BYEorCANCEL
-OnunexpectedBYEsenda200OKandclosethecall ;回200OK给BYE消息
-OnunexpectedCANCELsenda200OKandclosethecall ;回200OK给CANCEL消息
-OnunexpectedPINGsenda200OKandcontinuethecall ;回200OK给PING消息并继续通话
-Onanyotherunexpectedmessage,abortthecallby ;其他的意外消息,发送BYEorCANCEL
sendingaBYEoraCANCEL ;回应并结束通话
-nr :
DisableretransmissioninUDPmode. ;禁止使用UDP重发模式
-nostdin :
Disablestdin. ;nostdin
-p :
Setthelocalportnumber. Defaultisarandomfreeport ;设定本地端口
chosenbythesystem. ;默认使用一个空闲的端口
-pause_msg_ign :
Ignorethemessagesreceivedduringapausedefinedin ;忽略在暂停时场景文件对
thescenario ;消息体的返回
-periodic_rtd :
Resetresponsetimepartitioncounterseachlogging ;重置每个分区响应计时器
interval. ;在每个日志记录间隔
-plugin :
Loadaplugin. ;加载插件。
。
插件?
-r :
Setthecallrate(incallsperseconds). Thisvaluecan ;设置默认的拨打时间(呼叫/秒)
bechangedduringtestbypressing'+','_','*'or'/'.
Defaultis10. ;默认是10
pressing'+'keytoincreasecallrateby1* ;+加快1个呼叫
rate_scale,
pressing'-'keytodecreasecallrateby1* ;-降低1个呼叫
rate_scale,
pressing'*'keyto