|
From: Olivier J. <oja...@gm...> - 2006-02-28 15:41:38
|
Luca, you are right, nop is (was) only available when SIPp was compiled with pcapplay. I checked-in a change: http://sipp.sourceforge.net/snapshots/sipp.cumulus.2006-02-28.tar.gz Thanks for reporting it. Olivier. On 2/27/06, Luca Colantonio <tec...@gm...> wrote: > > hi, > as I read from the reference documentation: > > The nop command doesn't do anything at SIP level. It is only there to > specify an action to execute. > > but if i write after the receipt of a SIP message: > > <recv response "200 OK PRACK"/> > > *<nop>* > =09*<action>* > =09=09*<exec* command=3D"echo Something! >> ciao.txt"*/>* > =09*</action>**</nop>* > > it tells me: Unknown element 'nop' in xml scenario file > so I tried with: > > *<recv* response=3D"200 OK PRACK"*>* > *<nop>* > =09*<action>* > =09=09*<exec* command=3D"echo Something! >> ciao.txt"*/>* > =09*</action>**</nop>**</recv* > > but it doesn't do anything. is it right? > i looked a bit at the code and I found that it only looks for nop keyword > just if PCAPPLAY is defined...right? > i found it in scenario.cpp: > > #ifdef PCAPPLAY > *else* *if*(!strcmp(elem, "nop")) { > */* Does nothing at SIP level, only meant to handle actions */* > scenario[scenario_len]->M_type =3D MSG_TYPE_NOP; > getActionForThisMessage(); > } > > so it's not possible to execute an action between two SIP message? or > maybe I didn't understand how to use nop? > thank you very much > Luca > > Ps. it works if I write > > *<recv* response=3D"200 OK PRACK"*>* > *<action>* > =09*<exec* command=3D"echo Something! >> ciao.txt > "*/>**</action>**</recv> > * > > > -- http://www.hp.com/go/opencall/ |