<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><div>Hi Brian,</div><div><br class=""></div><div>I would check how these command line scripts work for inspiration, they handle both incoming and outgoing requests:</div><div><br class=""></div><div><a href="https://sipsimpleclient.org/testing/" class="">https://sipsimpleclient.org/testing/</a></div><div><br class=""></div><div>Regards,</div><div>Adrian</div><div><br class=""></div><div><br class=""></div><div><br class=""><blockquote type="cite" class=""><div class="">On 5 Sep 2021, at 09:41, Brian Chapman <<a href="mailto:brian.briliz@gmail.com" class="">brian.briliz@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi,<div class="">I'm looking at using SIP SIMPLE to build a test harness but I have an issue that is puzzling me.</div><div class=""><br class=""></div><div class="">I'm new to SIP SIMPLE but am going through the documentation and experimenting with the code.</div><div class=""><br class=""></div><div class="">I want to inspect OPTIONS messages that are received. To do that I refer to the documentation on </div><h3 style="font-family:"Lucida Grande",verdana,arial,helvetica,sans-serif;font-size:13px;padding:2px 10px 1px 0px;margin:0px 0px 5px;border-bottom:0px;color:rgb(68,68,68)" class=""><span style="font-weight:normal" class="">IncomingRequest. </span></h3><div class=""><span style="font-weight:normal" class="">I add an observer with the NotificationCenter for the SIPIncomingRequestGotMessage. Then I add the following example code after the engine has been started.</span></div><div class=""><p style="color:rgb(72,72,72);font-family:"Lucida Grande",verdana,arial,helvetica,sans-serif;font-size:12px" class="">engine = Engine()</p><p style="color:rgb(72,72,72);font-family:"Lucida Grande",verdana,arial,helvetica,sans-serif;font-size:12px" class="">engine.add_incoming_request('OPTIONS')</p>I try this with my application and it just seems to be ignored. I even change 'OPTIONS' to 'INVITE" which is illegal...but still no error message or any SIPIncomingRequestGotMessage.</div><div class=""><br class=""></div><div class="">I'm using python3-sipsimple-5.2.2 under Ubuntu</div><div class=""><br class=""></div><div class="">When I trace notifications, I don't see any notifications at all..it seems to be an automatic response handled entirely within PJSIP but configured by sipsimple:</div><div class="">--</div><div class="">2021-09-05 22:18:11.591995: Notification name=SIPApplicationDidStart sender=<__main__.McpttHarness object at 0x7fcb0b23b730><br class="">{}<br class="">Listening on: <a href="http://sip:01398652@172.27.171.215:44675/" class="">sip:01398652@172.27.171.215:44675</a><br class="">Press Ctrl+D to stop the program.<br class="">(5) b'2021-09-05 22:19:25.015         sip_endpoint.c Processing incoming message: Request msg OPTIONS/cseq=1 (rdata0x7fcafc1834c8)'<br class="">2021-09-05 22:19:25.019479: RECEIVED: Packet 1, +0:00:00<br class=""><a href="http://172.27.171.215:5060/" class="">172.27.171.215:5060</a> -(SIP over UDP)-> <a href="http://172.27.171.215:44675/" class="">172.27.171.215:44675</a><br class="">OPTIONS <a href="mailto:sip%3Amcptt@172.27.171.215" class="">sip:mcptt@172.27.171.215</a> SIP/2.0<br class="">Via: SIP/2.0/UDP 172.27.171.215:5060;branch=z9hG4bK-32012-1-0<br class="">Max-Forwards: 70<br class="">To: <<a href="mailto:sip%3Aservice@172.27.171.215" class="">sip:service@172.27.171.215</a>><br class="">From: sipp <<a href="http://sip:sipp@172.27.171.215:5060/" class="">sip:sipp@172.27.171.215:5060</a>>;tag=1<br class="">Call-ID: <a href="mailto:1-32012@172.27.171.215" class="">1-32012@172.27.171.215</a><br class="">CSeq: 1 OPTIONS<br class="">Contact: <<a href="http://sip:service@172.27.171.215:5060/" class="">sip:service@172.27.171.215:5060</a>><br class="">Accept: application/sdp<br class="">Content-Length: 0<br class=""><br class=""><br class="">--<br class=""><br class="">(5) b'2021-09-05 22:19:25.015               endpoint .Response msg 200/OPTIONS/cseq=1 (tdta0x7fcafc1c6838) created'<br class="">(5) b"2021-09-05 22:19:25.015          sip_resolve.c .Target '<a href="http://172.27.171.215:5060/" class="">172.27.171.215:5060</a>' type=UDP resolved to '<a href="http://172.27.171.215:5060/" class="">172.27.171.215:5060</a>' type=UDP (UDP transport)"<br class="">2021-09-05 22:19:25.020904: SENDING: Packet 2, +0:00:00.001425<br class=""><a href="http://172.27.171.215:44675/" class="">172.27.171.215:44675</a> -(SIP over UDP)-> <a href="http://172.27.171.215:5060/" class="">172.27.171.215:5060</a><br class="">SIP/2.0 200 OK<br class="">Via: SIP/2.0/UDP 172.27.171.215:5060;received=172.27.171.215;branch=z9hG4bK-32012-1-0<br class="">Call-ID: <a href="mailto:1-32012@172.27.171.215" class="">1-32012@172.27.171.215</a><br class="">From: "sipp" <<a href="mailto:sip%3Asipp@172.27.171.215" class="">sip:sipp@172.27.171.215</a>>;tag=1<br class="">To: <<a href="mailto:sip%3Aservice@172.27.171.215" class="">sip:service@172.27.171.215</a>>;tag=z9hG4bK-32012-1-0<br class="">CSeq: 1 OPTIONS<br class="">Allow: SUBSCRIBE, NOTIFY, PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, MESSAGE, REFER<br class="">Accept: application/sdp, application/conference-info+xml, application/simple-message-summary, multipart/related, application/rlmi+xml, application/pidf+xml, application/watcherinfo+xml, multipart/related, application/rlmi+xml, application/dialog-info+xml, application/watcherinfo+xml, message/sipfrag;version=2.0, application/xcap-diff+xml<br class="">Supported: 100rel, replaces, norefersub, gruu<br class="">Server: sipsimple 5.2.2<br class="">Content-Length:  0<br class=""><br class=""><br class="">--<br class=""><br class="">(5) b'2021-09-05 22:19:25.015     tdta0x7fcafc1c6838 .Destroying txdata Response msg 200/OPTIONS/cseq=1 (tdta0x7fcafc1c6838)'<br class=""></div><div class=""><br class=""></div><div class="">Any clues appreciated.</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></body></html>