<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">-r 0 <div class=""><br class=""></div><div class="">will keep the client registered until you press control D<div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 5 Jun 2019, at 12:18, Voipmanvn <<a href="mailto:voipmanvn@gmail.com" class="">voipmanvn@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=us-ascii" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hello,<div class=""><br class=""></div><div class="">I was tried to run sip-register with -h option. And seem that I have to press Ctr+D to unregistered. But I did not, and the script auto unregistered.</div><div class=""><br class=""></div><div class="">That is content from command line.</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(244, 244, 244); background-color: rgba(0, 0, 0, 0.85098);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">sip-register -h</span></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(244, 244, 244); background-color: rgba(0, 0, 0, 0.85098);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Usage: sip-register [options]</span></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(244, 244, 244); background-color: rgba(0, 0, 0, 0.85098); min-height: 14px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""></span><br class=""></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(244, 244, 244); background-color: rgba(0, 0, 0, 0.85098);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">This script registers the contact address of the given SIP account to the SIP</span></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(244, 244, 244); background-color: rgba(0, 0, 0, 0.85098);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">registrar and refresh it while the program is running. When Ctrl+D is pressed</span></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(244, 244, 244); background-color: rgba(0, 0, 0, 0.85098);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">it will unregister.</span></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(244, 244, 244); background-color: rgba(0, 0, 0, 0.85098); min-height: 14px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""></span><br class=""></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(244, 244, 244); background-color: rgba(0, 0, 0, 0.85098);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Options:</span></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(244, 244, 244); background-color: rgba(0, 0, 0, 0.85098);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  -h, --help            show this help message and exit</span></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(244, 244, 244); background-color: rgba(0, 0, 0, 0.85098);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  -a NAME, --account=NAME</span></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(244, 244, 244); background-color: rgba(0, 0, 0, 0.85098);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">                        The name of the account to use. If not supplied, the</span></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(244, 244, 244); background-color: rgba(0, 0, 0, 0.85098);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">                        default account will be used.</span></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(244, 244, 244); background-color: rgba(0, 0, 0, 0.85098);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  -c CONFIG_DIRECTORY, --config-directory=CONFIG_DIRECTORY</span></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(244, 244, 244); background-color: rgba(0, 0, 0, 0.85098);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">                        The configuration directory to use. This overrides the</span></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(244, 244, 244); background-color: rgba(0, 0, 0, 0.85098);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">                        default location.</span></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(244, 244, 244); background-color: rgba(0, 0, 0, 0.85098);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  -s, --trace-sip       Dump the raw contents of incoming and outgoing SIP</span></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(244, 244, 244); background-color: rgba(0, 0, 0, 0.85098);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">                        messages (disabled by default).</span></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(244, 244, 244); background-color: rgba(0, 0, 0, 0.85098);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  -j, --trace-pjsip     Print PJSIP logging output (disabled by default).</span></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(244, 244, 244); background-color: rgba(0, 0, 0, 0.85098);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  -n, --trace-notifications</span></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(244, 244, 244); background-color: rgba(0, 0, 0, 0.85098);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">                        Print all notifications (disabled by default).</span></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(244, 244, 244); background-color: rgba(0, 0, 0, 0.85098);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  -r MAX_REGISTERS, --max-registers=MAX_REGISTERS</span></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(244, 244, 244); background-color: rgba(0, 0, 0, 0.85098);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">                        Max number of REGISTERs sent (default 1, set to 0 for</span></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(244, 244, 244); background-color: rgba(0, 0, 0, 0.85098);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">                        infinite).</span></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(244, 244, 244); background-color: rgba(0, 0, 0, 0.85098);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  -b, --batch           Run the program in batch mode: reading input from the</span></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(244, 244, 244); background-color: rgba(0, 0, 0, 0.85098);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">                        console is disabled. This is particularly useful when</span></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(244, 244, 244); background-color: rgba(0, 0, 0, 0.85098);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">                        running this script in a non-interactive environment.</span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div>
<div class=""><br class=""></div><div class="">Please help.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""><blockquote type="cite" class=""><div class="">On Jun 5, 2019, at 17:00, <a href="mailto:sipbeyondvoip-request@lists.ag-projects.com" class="">sipbeyondvoip-request@lists.ag-projects.com</a> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Send SIPBeyondVoIP mailing list submissions to<br class=""><span class="Apple-tab-span" style="white-space:pre">   </span><a href="mailto:sipbeyondvoip@lists.ag-projects.com" class="">sipbeyondvoip@lists.ag-projects.com</a><br class=""><br class="">To subscribe or unsubscribe via the World Wide Web, visit<br class=""><span class="Apple-tab-span" style="white-space:pre">       </span><a href="https://lists.ag-projects.com/mailman/listinfo/sipbeyondvoip" class="">https://lists.ag-projects.com/mailman/listinfo/sipbeyondvoip</a><br class="">or, via email, send a message with subject or body 'help' to<br class=""><span class="Apple-tab-span" style="white-space:pre">      </span>sipbeyondvoip-request@lists.ag-projects.com<br class=""><br class="">You can reach the person managing the list at<br class=""><span class="Apple-tab-span" style="white-space:pre">     </span>sipbeyondvoip-owner@lists.ag-projects.com<br class=""><br class="">When replying, please edit your Subject line so it is more specific<br class="">than "Re: Contents of SIPBeyondVoIP digest..."<br class=""><br class=""><br class="">Today's Topics:<br class=""><br class="">   1. python-sipsimple sip-register auto unregistered (Voipmanvn)<br class=""><br class=""><br class="">----------------------------------------------------------------------<br class=""><br class="">Message: 1<br class="">Date: Wed, 5 Jun 2019 11:03:32 +0700<br class="">From: Voipmanvn <voipmanvn@gmail.com><br class="">To: sipbeyondvoip@lists.ag-projects.com<br class="">Subject: [SIP Beyond VoIP] python-sipsimple sip-register auto<br class=""><span class="Apple-tab-span" style="white-space:pre"> </span>unregistered<br class="">Message-ID: <2B46476C-C55B-4BC7-8104-F9171138D330@gmail.com><br class="">Content-Type: text/plain; charset="us-ascii"<br class=""><br class="">Hello, <br class=""><br class="">I am very new in this lib and trying to make some test. I hope i can get some idea, information from our team. thank you in advance.<br class=""><br class="">I add some account with:<br class=""><br class="">sip-settings -a add 1002@x.x.x.x <mailto:1002@x.x.x.x> xxxxxx<br class="">sip-settings -a default 1002@x.x.x.x <mailto:1002@x.x.x.x><br class=""><br class="">Then, i run sip-register<br class=""><br class="">and it return me something like<br class=""><br class=""><br class="">root@sipsimple:~# sip-register<br class="">Using account 1002@x.x.x <mailto:1002@x.x.x>.x<br class="">2019-06-05 03:48:57 Registered contact "sip:92745381@x.x.x.x:34532" for sip:1002@x.x.x <sip:1002@x.x.x>.x at x.x.x.x:5060;transport=udp (expires in 3600 seconds).<br class="">2019-06-05 03:48:58 Registration ended.<br class=""><br class="">then, i see log registered and unregistered in  my asterisk box.<br class=""><br class="">this is some information about lib:<br class=""><br class="">python-sipsimple is already the newest version (3.4.2bionic).<br class="">sipclients is already the newest version (3.4.0bionic).<br class=""><br class="">Please help.<br class=""><br class="">Thanks,<br class="">Thanh Truong<br class="">TDVSS- https://www.tdvss.com<br class="">71/76 Str 6, Ward 15, GV, HCM, VN<br class="">tel: + 84984480646<br class="">skype: voipmanvn<br class=""><br class=""><br class=""><br class=""><br class=""><br class=""><br class=""><br class=""><br class=""><br class=""><br class=""><br class="">-------------- next part --------------<br class="">An HTML attachment was scrubbed...<br class="">URL: <http://lists.ag-projects.com/pipermail/sipbeyondvoip/attachments/20190605/84521fc0/attachment-0001.html><br class=""><br class="">------------------------------<br class=""><br class="">_______________________________________________<br class="">SIPBeyondVoIP mailing list<br class="">SIPBeyondVoIP@lists.ag-projects.com<br class="">https://lists.ag-projects.com/mailman/listinfo/sipbeyondvoip<br class=""><br class=""><br class="">End of SIPBeyondVoIP Digest, Vol 107, Issue 1<br class="">*********************************************<br class=""></div></div></blockquote></div><br class=""></div></div>_______________________________________________<br class="">SIPBeyondVoIP mailing list<br class=""><a href="mailto:SIPBeyondVoIP@lists.ag-projects.com" class="">SIPBeyondVoIP@lists.ag-projects.com</a><br class="">https://lists.ag-projects.com/mailman/listinfo/sipbeyondvoip<br class=""></div></blockquote></div><br class=""></div></div></body></html>