Using JsSIP for audio and video calls in Vue

JsSIP official website address: https://jssip.net/download/ Download the JsSIP plug-in: npm install jssip; Introduced into the project: import JsSIP from “jssip”; Initialize SIP let currentSession; let userAgent; let peer; var msg_log = null; sip_init () {<!– –> let _this = this; msg_log = {<!– –> el: document.querySelector(“.message”), log(msg) {<!– –> console.log(“msg”, msg); this.titleText = msg; this.el.innerHTML […]

Four signs produce gossip! Teach you step by step how to tell fortunes with Python

Background Traditionally, Chinese divination has been performed manually by fortune tellers, and the procedures are cumbersome (often requiring bathing, calculating the time of day, meditation, etc.). The preparation work is complicated (usually copper coins and other props are required), and the calculation method is complicated. It requires manual calculation of binary numbers and conversion into […]

The browser web page uses sipml5 (jssip, sipjs) to make calls (mod_cti is based on FreeSWITCH)-webrtc

Article directory Preface 1. Introduction to related terms (1) SSL certificate (2), JSSIP (3), SIP.js 2. Operation steps Summarize Foreword This text mainly introduces how to register a SIP account on the web side to make and receive calls. There is no need to install additional SIP softphone software and physical telephones, making it easier […]

Basic process of registering GB28181 protocol to SIP service (Changlian Cloud)

1. Basic introduction to GB/T 28181-2016 protocol: In recent years, domestic video surveillance applications have developed rapidly, and the scale of system access has continued to expand. A large number of platform providers have emerged. The platform providers have different access protocols. Terminal manufacturers need to provide various platform maintenance for each terminal. software version, […]

Solve ModuleNotFoundError: No module named PyQt5.sip

Table of Contents Solving ModuleNotFoundError: No module named ‘PyQt5.sip’ Problem Description problem causes Solution Method 1: Install the sip module of PyQt5 Method 2: Uninstall and reinstall PyQt5 Method 3: Check the Python environment and path Method 4: Update PyQt5 version Method 5: Check dependent libraries in conclusion Solution to ModuleNotFoundError: No module named ‘PyQt5.sip’ […]

Hisiphp code audit background getshell

Vulnerable CMS Version: V 2.0.11 https://gitee.com/hisi/hisiph Vulnerability description: At the background upload plug-in, obtain the permissions of the server by uploading the constructed malicious zip package file. Vulnerability path Vulnerability address:/admin.php/system/plugins/import.html Vulnerable code path: hisiphp/application/system/admin/Plugins.php public function import() {<!– –> if ($this->request->isPost()) {<!– –> $file = $this->request->file(‘file’); if (empty($file)) {<!– –> return $this->error(‘Please upload the […]

Cloud Dissipation Effect Based on SDF

1. Front SDF, that is, Signed Distance Function (signed distance function). SDF is a mathematical representation, usually used to represent the shape of two-dimensional or three-dimensional geometric figures. I also found a lot of reference materials on this aspect, all of which are two-dimensional. (I haven’t started researching the three-dimensional one) Signed Distance Field and […]

SipServer&&pyVoIP open source project practice

Thisisthecontentofthemodernexchangetechnologycourseexperimentinthesecondsemesterofthejunioryear~ SipServer&&pyVoIPOpenSourceProjectOperation Cloneproject Firstclone(download)thesourcecodefilesofthetwoprojectstothelocal,twoopensourceprojectsonGithub: HolddownCtrltomovethemousetothelinkandclicktheleftbuttontoenter. https://github.com/BarGabriel/SipServer https://github.com/tayler6000/pyVoIP BarGabriel/SipServer: tayler6000/pyVoIP: Afterdownloadingisthecompressedpackage,onefilenameisSipServer-master.zip,andtheotherispyVoIP-master.zip. Rememberthedecompressionlocation,therequirementisanEnglishpath,andstrangecharacterssuchasspacesarenotallowedinthepath. DownloadVisualStudioCommunity2022: https://visualstudio.microsoft.com/zh-hans/leftunderwindows,rightundermac InstallVisualStudioCommunity2022 AtleastchooseC++fordesktopdevelopment,othersareoptional. ClickToolsinthemenubar,clickCommandLine,clickDeveloperPowerShell,andrunPowerShell Theinterfaceisasfollows FindtheSipServerfiledirectoryyoujustdownloaded. Takemeasanexample:thisisthefilepathIextracted, Leftclickonthepathparttochangetopathformat,Ctrl+Ctocopy. Buildenvironment SipServer BackinPowerShell,Itypedinthecommandline: cd-d”E:\SipServer\SipServer-master”meanstoswitchthecurrentdirectorytotheplacewhereIdownloadedSipServer. Youjustentercd-d”thepathyoucopiedjustnow”,payattentiontoEnglishdoublequotationmarks!Enteraftertyping Enterafterinput Result Usethedircommandtoviewthefilesinthecurrentdirectory: Accordingtothecodeprovidedbytheauthoroftheopensourceproject,buildtheSipServerenvironment: Enterinthecommandline:mkdirbuildandpressEnter,theresult: Thenenter:cdbuildmeanstochangethecurrentdirectorytothebuildfiledirectory,theresult: Thenenter:cmake..Notethatthereisaspaceinthemiddle ThenentermsbuildSipServer.sln,andthenabunchofloadingprocessespopup Next,enteripconfigtoviewtheIPaddresstable;ifyouareconnectedtoawirelesscampusnetwork,thenfindthiswirelessLANadapterWLAN CopyyourIPv4address,inmycase10.139.9.24,andentercddebug ThenItyped.\sipserver–ip=10.139.9.24–port=5060 Youenter.\sipserver–ip=yourIPv4address–port=5060 Ifyouareconnectedtoawirednetwork,thenIdidn’tsayit,itisnotanIPv4addressinWLANanyway. Hitenter,theresultisServerhasbeenstarted.Listening… [Externallinkpicturetransferfailed,thesourcesitemayhaveananti-theftlinkmechanism,itisrecommendedtosavethepictureanduploaditdirectly(img-FlZOHpzk-1691238527054)(https://luck1y7.oss-cn-nanjing.aliyuncs.com/图库/202308052006134.png)] Noproblem,theSipServerinthewindowsenvironmentissetup,anditisalreadyinthelisteningstate,listeningtocallsonyourIPv4address. pyVoIP FindthepyVoIPfiledirectoryyoujustdownloaded.Inthesameway,firstcopythefolderpath,takemeasanexample: PressWin+R,entercmd,andpressEntertoenterthecommandpromptwindow. Inthecommandlinewindow,Ientercd/d”E:\pyVoIP\pyVoIP”toswitchthecurrentdirectorytothepyVoIPfolderdirectory;youentercd/d\”YourpyVoIPfolderdirectory”PayattentiontouseEnglishdoublequotationmarks.Enter: GobacktothepyVoIPfolderdirectory,right-clicktheblankspacetocreateanewtextdocumentnamedtest.py Notethatthesuffixhasbeenchangedhere.Itusedtobe.txt,butnowitischangedto.py. Rightclickonthetest.pyfile ClickEditwithIDLE->EditwithIDLE3.9(64-bit) Accordingtothesamplecodeprovidedbytheauthor: Afterremovingsomeunnecessarycode,hereisthecodeused: frompyVoIP.VoIPimportVoIPPhone,InvalidStateError defanswer(call):#Thiswillbeyourcallbackfunctionforwhenyoureceiveaphonecall. try: call.answer() […]