It took two days to read SIPP documents, including SIPP reference document and stslabs user manual.
Quite a bit of manual control feeling, everything is ready, began to use SIPP testing resiprocate proxy practices, I did not expect quite bad, so with this blog, record personal experience, for future reference.
Follow the instructions at the beginning
Run SIPP with Embedded Server (UAs) scenario :. /SIPP-Sn UAs-P 5064 on the same host, run SIPP with embedded client (UAC) scenario. /SIPP-Sn UAC 127.0.0.1-P 5062 error last error: unable to send UDP message: Bad address. in the SIP group, I asked if there was a problem with IP settings, or port conflict. Port conflict has been taken into consideration at the beginning, and the port number is specified to avoid conflict. I have specified an IP address and added the following parameter (localip refers to the local IP address. Here we assume that your local IP address is 192.168.1.66)-I localip does not have this error, I used the netstat-An command line parameter to compare the similarities and differences and found that the cause of the error is that the IP address segment of the port is different. OK ~ Next, configure resiprocate with SIPP testing on the basis of resiprocate compilation, installation, configuration, running, and testing proxy in my previous blog post. Because the UAC and UAS of SIPP are not registered, we need to add the UAC and UAS backdoor accounts in resiprocate. In the inmemoryregistrationdatabase regdata of the main function, add the following Code <textarea cols="50" rows="15" name="code" class="cpp">//! SLD! Assume that your localip is 192.168.1.66contactinstancerecord REC; Rec. mcontact = nameaddr (Uri ("SIP: service@192.168.1.66: 5064"); Rec. mregexpires =-1; regdata. updatecontact (Uri ("SIP: service@192.168.1.66: 5060"), REC); Rec. mcontact = nameaddr (Uri ("SIP: sipp@192.168.1.66: 5062"); regdata. updatecontact (Uri ("SIP: sipp@192.168.1.66: 5060"), REC );</textarea> The second thing is that we need to configure the running parameters of the proxy. <textarea cols="50" rows="15" name="code" class="cpp">Char * recordrouteuri = "SIP: 192.168.1.66: 5060"; char * interfaces = "SIP: 192.168.1.66: 5060; timer-c = 2; Transport = UDP ";</textarea> The first parameter above sets the Record Route so that after uac uas establishes a connection, the packet is still forwarded through the proxy. The following parameter enables the proxy to listen to the UDP port of the localip segment 5060.
Next, everything is OK ~ Have fun !!!