Re: [Sipp-users] Can sipp call rate and call parameter be controlled by external script/program
You can tell SIPp to change its rate using the control socket. Can I tell sipp, not to make next call, until I am ready again? You can set the rate to zero. You can probably change the call parameters using extended 3PCC. If you establish a socket to a 3PCC element and setup various parameters (look at the replace and insert actions so that you can update the in-memory representation of the CSV file); you can then pass those parameters to another instance of SIPp that will generate the calls (or you might even be able to generate the calls from that instance). I will study 3PCC in more details, but can I pass the parameter from my external script to 3PCC? Only if your external script speaks 3PCC. It is relatively simple. You open a TCP connection to the 3PCC port, and send messages terminated by \27 (i.e. the character 27. The messages can contain anything you want. The messages are SIP-like, and are something like the following: Call-ID: Foo From: class Any-Random-Header: Value Body text\27 Where Foo is the call ID you select, From is the names in slave.cfg, and Any-Random-Header and Body text are the infomration you want to put in. SIPp internally adds the \27, but if you need an external script you'll need to do it yourself. If you do modify the injection file, I would suggest using something like a MySQL database as a backing store and querying the database. I believe this is alternative to my socket based approach. However if 3PCC approach works, I may not need to need this. In any case, could you please point me to the files, that I should start looking at? message.cpp defines the keywords (the SendingMessage class parses the XML into a structure); call.cpp (create_sending_message) interprets the structure created by message.cpp; and infile.cpp handles the file keywords. Charles -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ Sipp-users mailing list Sipp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sipp-users
Re: [Sipp-users] Can sipp call rate and call parameter be controlled by external script/program
You can tell SIPp to change its rate using the control socket. You can probably change the call parameters using extended 3PCC. If you establish a socket to a 3PCC element and setup various parameters (look at the replace and insert actions so that you can update the in-memory representation of the CSV file); you can then pass those parameters to another instance of SIPp that will generate the calls (or you might even be able to generate the calls from that instance). If you do modify the injection file, I would suggest using something like a MySQL database as a backing store and querying the database. You really really want to avoid anything that will block in SIPp code (because it is single threading blocking in one place will delay all traffic processing). Charles Manish Sapariya man...@gslab.com 01/22/2009 11:05 PM To sipp-users@lists.sourceforge.net cc Subject [Sipp-users] Can sipp call rate and call parameter be controlled by external script/program Hi All, Little background: == We have openser/asterisk/openfire based collabration system. XMPP is used extensively as control channel amongst the client. For establishing the calls, the clients first register using XMPP and then request SIP parameters using XMPP control message. The sip stack then uses these extra headers that are returned in XMPP response to establish sip/audio calls. What I need: I have XMPP client script, which can register as multiple users and get the extra SIP header information. My question is, can I ask sipp to initiate call whenever my xmpp user is ready with extra sip params, and make sipp call using these params and at the rate at which xmpp script is asking sipp to make call? Any hints would be appreciated. If not possible in in stock sipp, any hints regarding what area of code might need changes. One area of sipp (though I have not looked at code in great details), is the part where CSV based parameter handling is done. What I think should be possible is to replace CSV reading part of code with socket based reading. If I can open a socket for reading the next call parameters and block until these parameters are not receivede, my external script should be able to send call params by sending data to this socket. Does this sound workable? Any other alternative? Thanks and Regards, Manish -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ Sipp-users mailing list Sipp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sipp-users -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ Sipp-users mailing list Sipp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sipp-users
Re: [Sipp-users] Can sipp call rate and call parameter be controlled by external script/program
Hi Charles, Thanks for the reply. I have few more queries to get my understanding right. Please find them inline. Charles P Wright wrote: You can tell SIPp to change its rate using the control socket. Can I tell sipp, not to make next call, until I am ready again? You can probably change the call parameters using extended 3PCC. If you establish a socket to a 3PCC element and setup various parameters (look at the replace and insert actions so that you can update the in-memory representation of the CSV file); you can then pass those parameters to another instance of SIPp that will generate the calls (or you might even be able to generate the calls from that instance). I will study 3PCC in more details, but can I pass the parameter from my external script to 3PCC? If you do modify the injection file, I would suggest using something like a MySQL database as a backing store and querying the database. I believe this is alternative to my socket based approach. However if 3PCC approach works, I may not need to need this. In any case, could you please point me to the files, that I should start looking at? You really really want to avoid anything that will block in SIPp code (because it is single threading blocking in one place will delay all traffic processing). I see. Thanks for making me aware of this fact. Thanks and Regards, Manish -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ Sipp-users mailing list Sipp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sipp-users
[Sipp-users] Can sipp call rate and call parameter be controlled by external script/program
Hi All, Little background: == We have openser/asterisk/openfire based collabration system. XMPP is used extensively as control channel amongst the client. For establishing the calls, the clients first register using XMPP and then request SIP parameters using XMPP control message. The sip stack then uses these extra headers that are returned in XMPP response to establish sip/audio calls. What I need: I have XMPP client script, which can register as multiple users and get the extra SIP header information. My question is, can I ask sipp to initiate call whenever my xmpp user is ready with extra sip params, and make sipp call using these params and at the rate at which xmpp script is asking sipp to make call? Any hints would be appreciated. If not possible in in stock sipp, any hints regarding what area of code might need changes. One area of sipp (though I have not looked at code in great details), is the part where CSV based parameter handling is done. What I think should be possible is to replace CSV reading part of code with socket based reading. If I can open a socket for reading the next call parameters and block until these parameters are not receivede, my external script should be able to send call params by sending data to this socket. Does this sound workable? Any other alternative? Thanks and Regards, Manish -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ Sipp-users mailing list Sipp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sipp-users
[Sipp-users] Can sipp call rate and call parameter be controlled by external script/program
Hi All, Little background: == We have openser/asterisk/openfire based collabration system. XMPP is used extensively as control channel amongst the client. For establishing the calls, the clients first register using XMPP and then request SIP parameters using XMPP control message. The sip stack then uses these extra headers that are returned in XMPP response to establish sip/audio calls. What I need: I have XMPP client script, which can register as multiple users and get the extra SIP header information. My question is, can I ask sipp to initiate call whenever my xmpp user is ready with extra sip params, and make sipp call using these params and at the rate at which xmpp script is asking sipp to make call? Any hints would be appreciated. If not possible in in stock sipp, any hints regarding what area of code might need changes. One area of sipp (though I have not looked at code in great details), is the part where CSV based parameter handling is done. What I think should be possible is to replace CSV reading part of code with socket based reading. If I can open a socket for reading the next call parameters and block until these parameters are not receivede, my external script should be able to send call params by sending data to this socket. Does this sound workable? Any other alternative? Thanks and Regards, Manish -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ Sipp-users mailing list Sipp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sipp-users