<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Jacob,<div><br></div><div>I added your useful requirements to our TODO.<div><br></div><div>Thanks</div><div>Adrian</div><div><br><div><div>On Jan 28, 2009, at 12:54 PM, Jacob Svensson wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hello<br><br>I have some questions, or wishes, related to the possibility to use<br>sipclient in an automated test environment.<br>Its mainly the sip_im_message testcase I am interested in.<br><br>1. Would it be possible to have a commandline parameter to auto accept<br>incoming requests. I think this one should be easy. I started working<br>on a patch, but i have to admit that I don't really understand the<br>parse_options part. (Dont know python). I include the needed parts for<br>sip_im_message.py<br><br>diff build/scripts-2.5/sip_im_session /usr/bin/sip_im_session<br>211c211<br><     def __init__(self, acceptor, console, session_factory, ringer=None):<br>---<br><blockquote type="cite">    def __init__(self, acceptor, console, session_factory, ringer=None, auto_accept=False):<br></blockquote>213a214<br><blockquote type="cite">        self.auto_accept = auto_accept<br></blockquote>234a236,237<br><blockquote type="cite">        if self.auto_accept:<br></blockquote><blockquote type="cite">            return True<br></blockquote>324c327<br><                  auto_accept_files=False, route=None, relay=None,<br>msrp_tls=True):<br>---<br><blockquote type="cite">                 auto_accept_files=False, auto_accept_chat_requests=False, route=None, relay=None, msrp_tls=True):<br></blockquote>331a335<br><blockquote type="cite">        self.auto_accept_chat_requests = auto_accept_chat_requests<br></blockquote>458c462<br><         chat = IncomingChatHandler(get_acceptor, self.console,<br>new_chat_session, inbound_ringer)<br>---<br><blockquote type="cite">        chat = IncomingChatHandler(get_acceptor, self.console, new_chat_session, inbound_ringer, auto_accept=self.auto_accept_chat_requests)<br></blockquote>522a527<br><blockquote type="cite">                                  options.auto_accept_chat_requests,<br></blockquote><br><br>When looking in config.py, there is an outcommented line that looks<br>like something like this has been considered.<br> #parser.add_option("-y", '--auto-accept-all', action='store_true',<br>default=False, help=SUPPRESS_HELP)<br><br><br>2. A command line parameter that makes the server just echo the<br>messages from the client.<br><br><br>Then a simple question about the functionality. How do you do to send<br>files in the sip_im_message testcase? The --auto-accept-files flag<br>suggest that it should be possible, but i cant find any examples.<br><br>Thanks for your great work!<br><br>Best Regards<br>Jacob Svensson<br><br>_______________________________________________<br>SIPclient mailing list<br><a href="mailto:SIPclient@lists.ag-projects.com">SIPclient@lists.ag-projects.com</a><br><a href="http://lists.ag-projects.com/mailman/listinfo/sipclient">http://lists.ag-projects.com/mailman/listinfo/sipclient</a><br></div></blockquote></div><br></div></div></body></html>