Detailed installation instructions for Projects AG msrprelay (open source MSRP Relay) CentOS

Source: Internet
Author: User
Tags auth centos python script




Focus on the integration of the three Network access Network/core network technology, audio and video signaling and media transmission related agreement

experts predecessor settled in, laughing and hongru, exchanges without tyro, common learning IMS/IPPBX related technology

Welcome to join Ims/ippbx/voip/sip QQ Exchange Group: 255404741 (Jab direct Gathen) 






AG Projects Msrprelay is a powerful Python script implemented MSRP relay open source Server, the official description, brother is not here to nonsense:



This is project implements an MSRP Relay (RFC 4976). Its main, to help NAT traversal of MSRP based Instant messaging and File Transfer sessions between SIP end-points L ocated behind NAT.






Download Installation Dependencies



The Msrprelay-dependent packages are as follows:



Python-gnutls-1.2.5.tar.gz



Python-application-1.4.0.tar.gz



twisted-14.0.0.tar.bz2



Zope.interface-4.1.1.tar.gz



Sqlobject-1.6.0.tar.gz



mysql-python-1.2.5






In the search in Https://pypi.python.org/pypi, enter the above installation package name separately, download the corresponding installation package,



After entering the directory, execute Python setup.py install to install the appropriate software






Download Installation MSRP





The software can is downloaded as a tar archive from:



http://download.ag-projects.com/MSRP/



Python-msrplib-0.14.2.tar.gz



Msrprelay-1.0.8.tar.gz



Installation Method ditto






Run Msrprelay



Note in the INSTALL documentation:



Start the Msrprelay, either by executing:



./msrprelay--no-fork



Or as a daemon, which is the default behaviour.



This can also is done using the INIT.D script:



/etc/init.d/msrprelay start






There is no/etc/init.d/msrprelay, run directly from the source root path



This operation is not daemon (./msrprelay start can be run daemon)



[Root@localhost msrprelay-1.0.8]# pwd



/opt/msrprelay-1.0.8



[Root@localhost msrprelay-1.0.8]#./msrprelay--no-fork



Starting MSRP Relay 1.0.8



Relayfactory starting on 2855






Open another console to view the port, using the standard 2855 port by default



[Root@localhost msrprelay-1.0.8]# NETSTAT-TULNP | grep python



TCP 0 0 0.0.0.0:2855 0.0.0.0:* LISTEN 6544/python



[Root@localhost msrprelay-1.0.8]#






Transfer file Test



Specific detailed description reference Test/readme.



Follow the instructions to test the following steps:



1. Create a file for transfer



[Root@localhost test]# pwd



/opt/msrprelay-1.0.8



[Root@localhost msrprelay-1.0.8]# Echo xxxxxxxxxxx >todo.txt
[Root@localhost msrprelay-1.0.8]# Echo yyyyyyyyyyy >>todo.txt



[Root@localhost msrprelay-1.0.8]#






2. Start both clients in two console



Console I of sender:



[Root@localhost test]#./msrp_send_file.py. /todo.txt alice@172.16.0.55 172.16.0.55



Password:



Sending initial AUTH



Got Challenge, sending response AUTH



Path to send in SDP:



Msrps://172.16.0.55:2855/ebu5/m2eo1qltkup3foendezotkxntqwmdguotmwoje3mi4xni4wlju1;tcp msrps://localhost:12345// Nhzndamyuxkrl22;tcp



Destination path:






console II of Recevier:



[Root@localhost test]#



[Root@localhost test]#./msrp_receive_file.py alice@172.16.0.55 172.16.0.55



Password:



Sending initial AUTH



Got Challenge, sending response AUTH



Path to send in SDP:



Msrps://172.16.0.55:2855/y82mpnt4zlvbypd9imct0zezotkxntqwmjuumtc2oje3mi4xni4wlju1;tcp msrps://localhost:12345/ Biglf+5r9diwtlth;tcp



Destination path:






3. Mutual designation of each other's MSRP destination path



View the MSRP path shown in step 2, paste the msrp_send_file.py output MSRP path into msrp_receive_file.py's "Destination path:" Input prompts, and vice versa:



Console I of sender:



[Root@localhost test]#./msrp_send_file.py. /todo.txt alice@172.16.0.55 172.16.0.55



Password:



Sending initial AUTH



Got Challenge, sending response AUTH



Path to send in SDP:



Msrps://172.16.0.55:2855/ebu5/m2eo1qltkup3foendezotkxntqwmdguotmwoje3mi4xni4wlju1;tcp msrps://localhost:12345// Nhzndamyuxkrl22;tcp



Destination Path:msrps://172.16.0.55:2855/y82mpnt4zlvbypd9imct0zezotkxntqwmjuumtc2oje3mi4xni4wlju1;tcp msrps:// Localhost:12345/biglf+5r9diwtlth;tcp



Starting transmission of "TODO.txt"



Sent 0 bytes



File transfer completed.



Connection lost!



Sent bytes in seconds, (0.00 kb/s)



Connection lost



Connection was closed cleanly.



[Root@localhost test]#






console II of Recevier:



[Root@localhost test]#



[Root@localhost test]#./msrp_receive_file.py alice@172.16.0.55 172.16.0.55



Password:



Sending initial AUTH



Got Challenge, sending response AUTH



Path to send in SDP:



Msrps://172.16.0.55:2855/y82mpnt4zlvbypd9imct0zezotkxntqwmjuumtc2oje3mi4xni4wlju1;tcp msrps://localhost:12345/ Biglf+5r9diwtlth;tcp



Destination Path:msrps://172.16.0.55:2855/ebu5/m2eo1qltkup3foendezotkxntqwmdguotmwoje3mi4xni4wlju1;tcp msrps:// Localhost:12345//nhzndamyuxkrl22;tcp



Receiving file "TODO.txt"



Received bytes



File transfer completed successfully.



Received bytes in 0 seconds, (12.98 kb/s)



Connection lost!



Connection lost



Connection was closed cleanly.



[Root@localhost test]#









4. View Results



The test file was transferred from/opt/msrprelay-1.0.8/todo.txt to/opt/msrprelay-1.0.8/test/todo.txt.



[Root@localhost test]# ls



msrp_receive_file.py msrp_send_file.py README TODO.txt



[Root@localhost test]# Cat TODO.txt



Xxxxxxxxxxx



Yyyyyyyyyyy



[Root@localhost test]# Cat. /todo.txt



Xxxxxxxxxxx



Yyyyyyyyyyy



[Root@localhost test]#






More information reference source install and Readme description






Reference documents



Http://www.msrprelay.org/projects/msrprelay/wiki/InstallationGuide






Reprint please indicate the source http://blog.csdn.net/xuyunzhang/article/details/29354391 thank you.


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.