Saturday, July 2, 2016

How to config webrtc with elastix 4.0



First let's define a few concepts to start, as a starting point we WebRTC which is a protocol originally created by Google which using standards like HTML5 and JavaScript can provide the web capabilities of VoIP communication among many other things , Moreover SIP is a signaling protocol that enables communication between users using a server and / or SIP client.
So that both communication systems while it is true are different, they have the same goal which is "communication" because it has built software that can integrate both, so that can be programmed pages that use WebRTC and communicate with SIP servers or SIP platforms supporting such as Asterisk
.
In the case of Elastix 4 features support for WebRTC because it uses Asterisk version 11, which implements the res_http_websocket module that has been created by Digium to allow developers to interact and communicate with WebRTC, also in this version have been added protocols signaling as ICE, STUN, TURN, SRTP because they are requirement WebRTC

While setting up a WebPhone would be just one of many applications that we could build, we will set up a basic using SIPml5 which is a SIP based client written in HTML5 and javascript recently released.
Considerations before starting
Before starting the configuration you need to run the update of the platform since upgrading can enable support for the transport protocol WSS necessary for WebRTC.
.
yum -y update
1.- Set the name of the machine
Set the name of the machine as "elx4" with the domain "mycompany.com" as follows..
vim /etc/hosts
Enter the end of file
192.168.10.48 elx4.mycompany.com elx4

Where is the IP address of the virtual machine and "elx4" is the name of the machine installed then test the configuration

hostname -f

The result MUST be: elx4.mycompany.com
2.- Create certificates for SRTP
Create Folder certificates
mkdir /etc/asterisk/keys
Create server certificates. During the process you prompted to enter a password..
/usr/share/doc/asterisk-11.21.0/contrib/scripts/ast_tls_cert -C pbx.mycompany.com -O “My Super Company” -d /etc/asterisk/keys
Create client certificates, you need to enter the same key used in the previous step.
/usr/share/doc/asterisk-11.21.0/contrib/scripts/ast_tls_cert -m client -c /etc/asterisk/keys/ca.crt -k /etc/asterisk/keys/ca.key -C phone1.mycompany.com -O “My Super Company” -d /etc/asterisk/keys -o malcolm

Configure permissions
chown -R asterisk.asterisk /etc/asterisk/keys
Configure SRTP support level Asterisk
vim /etc/asterisk/sip_general_custom.conf
Add at the end of the file.
tlsenable=yes
tlsbindaddr=0.0.0.0
tlscertfile=/etc/asterisk/keys/asterisk.pem
tlscafile=/etc/asterisk/keys/ca.crt
tlscipher=ALL
tlsclientmethod=tlsv1
3.- Configure Asterisk embedded HTTP server
Create certificates
openssl req -new -x509 -days 365 -nodes -out /etc/asterisk/keys/foo.pem -keyout /etc/asterisk/keys/foo.pem
During the process requests the following sample data.
Country Name (2 letter code) [XX]:PE
State or Province Name (full name) []:LIMA
Locality Name (eg, city) [Default City]:LIMA
Organization Name (eg, company) [Default Company Ltd]:SILCOM
Organizational Unit Name (eg, section) []:TI
Common Name (eg, your name or your server’s hostname) []:elx4
Email Address []:
Then to configure the service is necessary to enter from the web interface Security / Advanced Settings and enable the use of Freepbx as follows:
Then enter: https://192.168.10.48/admin/ and enter the "Settings / Advanced Settings" and change the settings in the "Asterisk Builtin mini-HTTP server" section as shown below:
Parameter
Value
Certificate file
/etc/asterisk/keys/foo.pem
Enabled HTTPS support for the mini-HTTP Server
True
HTTP Blind Address
0.0.0.0
HTTPS Bind Address/Port
0.0.0.0:8089
Private key file
/etc/asterisk/keys/foo.pem
The "http_additional.conf" file must reflect the following settings:
vim /etc/asterisk/http_additional.conf

[general]
enabled=yes
enablestatic=no
bindaddr=0.0.0.0
bindport=8088
prefix=asterisk
tlsenable=yes
tlsbindaddr=0.0.0.0:8089
tlscertfile=/etc/asterisk/keys/foo.pem
tlsprivatekey=/etc/asterisk/keys/foo.pem
4.- Create extensions with support for WebRTC
Enter PBX -> PBX Configuration -> Extensions then create 02 extensions as follows:
Go to the bottom of the form and click the "submit" button then edit the extension created and set the following parameters.
Parameter
Value
Transport
All – WS Primary
avpf
Yes
icesupport
Yes
dtlsenable
Yes
dtlsverify
No
dtlssetup
Incoming and Outgoing
dtlscertfile
/etc/asterisk/keys/foo.pem
dtlsprivatekey
/etc/asterisk/keys/foo.pem
encryption
Yes (SRTP only)
5.- Install Webphone for WebRTC
Download from the Web Phone:
Then upload it to the / var / www / html / and set as follows:
cd /var/www/html
yum -y install unzip
unzip sipml5-master.zip
mv sipml5-master phone
6.- Configure the Webphone for WebRTC
As a first step it is necessary to enter:

Then accept the certificate as follows:

Then enter the customer WebRTC: http://192.168.10.48/phone/call.htm and show us the WebPhone
Next you need to enter the button "Expert Mode" as shown below:
 


Then set the preferences as shown below:
 
The WebSocket server must be: wss: //192.168.10.48: 8889 / asterisk / ws
Now registration set as follows Wephone
:
We will see that the WebPhone be recorded and from the Asterisk CLI will see the record as follows:
6.- Test calls from the Web Phone
We will try to validate call to voicemail (* 98), when dialing voicemail browser request permission to activate the micro and establish the call, as shown below.
Finally create a "normal" extension / annex and test calls to and from the WebPhone as shown below..


Liên hệ : http://tongdai1900.vn
 

Thursday, June 16, 2016

Mô hình O2O – Cơ hội hay Thách thức?

Đặt cược vào mô hình O2O – Online to Offline, một doanh nghiệp đang muốn xây dựng mạng lưới E-commerce cho các doanh nghiệp vừa và nhỏ tại Việt Nam.

Mô hình O2O hoạt động như thế nào?
Dealtoday.vn được khai trương vào tháng 1/2016 tại Việt Nam với mô hình thương mại điện tử O2O cung cấp giải pháp E-promotion và E-loyalty cho các doanh nghiệp SMEs Việt Nam. Với mô hình này, các doanh nghiệp SMEs sẽ đưa các sản phẩm, dịch vụ lên hệ thống Dealtoday.vn bao gồm Website, Wapsite, Mobile app và có thể chủ động tạo các chương trình xúc tiến như giảm giá, chiết khấu, tặng điểm linh hoạt theo thời gian, địa điểm, đối tượng khách hàng mục tiêu.
Khách hàng dễ dàng tìm được sản phẩm dịch vụ phong phú
Khách hàng dễ dàng tìm được sản phẩm dịch vụ phong phú
Khách hàng có nhu cầu mua sản phẩm, dịch vụ từ du lịch, nhà hàng, giải trí, học tập, đào tạo, thể thao, làm đẹp, chăm sóc sức khoẻ, y tế, vận tải hay mua sắm tại các trung tâm thương mại dễ dàng tìm kiếm ưu đãi của hàng ngàn doanh nghiệp tham gia mạng lưới Dealtoday.vn mọi lúc, mọi nơi.
Sau khi tìm được dịch vụ, sản phẩm ưa thích từ các thương hiệu uy tín, khách hàng mua trực tuyến trên Dealtoday.vn và nhận về mã E-voucher, E-coupon điện tử qua E-mail, SMS hay ứng dụng điện thoại để sử dụng dịch vụ, sản phẩm tại các điểm offline. Tại các điểm bán (offline merchant) nhân viên thu ngân sẽ xác thực mã ưu đãi trên hệ thống Dealtoday.vn dành cho đối tác. Mọi giao dịch đều là giao dịch điện tử được thực hiện trên môi trường trực tuyến Internet tức thời, không hạn chế về không gian và thời gian.
Ưu thế của sàn thương mại điện tử O2O
Ưu thế lớn của O2O so với các mô hình thương mại điện tử B2C và B2B2C chính là về chi phí: Không phát sinh chi phí cho vận chuyển, kho bãi và không cạnh tranh trực tiếp với hệ thống bán lẻ truyền thống. Hơn nữa, mô hình O2O như Dealtoday.vn cung cấp dịch vụ thông qua các giao dịch điện tử như E-voucher, E-coupon, E-loyalty dễ dàng mở rộng thị trường, tăng qui mô mà không đòi hỏi đầu tư lớn về hạ tầng.
Giải pháp thương mại điện tử hiện đại
Giải pháp thương mại điện tử hiện đại
Việc kết nối với các đối tác và khách hàng hoàn toàn trên Internet, thông tin và nội dung dịch vụ, sản phẩm được tạo ra một lần và có thể sử dụng lâu dài nên tiết kiệm được chi phí sản xuất nội dung. So với các mô hình B2C và B2B2C tập trung vào sản phẩm điện tử, gia dụng, thời trang thì việc Dealtoday.vn tập trung vào dịch vụ sẽ đơn giản và tiết kiệm chi phí hơn cho phần sản xuất nội dung như viết bài, chụp hình, thiết kế.
Thị trường tiềm năng của O2O
Theo Techinasia, thị trường thương mại điện tử Việt Nam được ước tính đạt trên 1 tỷ đô la Mỹ năm 2015, tăng trưởng trên 25%/năm và có tiềm năng đạt 5-7 tỷ. Việt Nam hiện có trên 91 triệu dân với 130 triệu thuê bao điện thoại, trên 43 triệu người sử dụng internet là thị trường tiềm năng cho thương mại điện tử, đặc biệt chưa có thương hiệu nào thực sự lớn và dẫn đầu thị trường.
Thương mại điện tử Việt Nam năm 2015 và đầu năm 2016 chứng kiến nhiều biến động lớn, một số doanh nghiệp phải đóng cửa và từ bỏ thị trường như foodpanda, beyeu.vn, deca.vn, giare.vn, các vụ Mua bán và Sát nhập (M&A) lớn như Alibaba mua Lazada, tập đoàn Central Group Thái Lan mua Zalora Việt Nam, VNG công ty game số 1 Việt Nam đầu tư 17triệu US$ vào Tiki.vn hay ông lớn bất động sản Vingroup tấn công thị trường thương mại điện tử với Adayroi.com… Làn sóng M&A đã đốt nóng thị trường thương mại điện tử mô hình B2C (Business to Customer) và B2B2C (Business to Business to Customer) ở Việt Nam.
Tuy nhiên nếu nhìn vào mảng thị trường 020, ngoài các site thương mại điện tử theo mô hình groupon/ coupon như hotdeal.vn, muachung.vn hiện nay đã lấn sang mảng B2C với các ngành hàng sản phẩm như thời trang, gia dụng, điện tử thì Việt Nam hiện nay chưa có tên tuổi lớn nào.
Số lượng các doanh nghiệp vừa và nhỏ tại Việt Nam hiện đang ở khoảng 500.000 doanh nghiệp và tiếp tục tăng cùng với phong trào khởi nghiệp được Chính phủ quan tâm định hướng và hỗ trợ. Vì vậy mô hình kết nối khách hàng với các doanh nghiệp SMEs được đánh giá là đúng hướng và rất tiềm năng.
Nếu thành công, Dealtoday.vn nói riêng và mô hình O2O nói chung sẽ tạo nên bước tiến lớn cho thương mại điện tử vì nó tập trung vào các doanh nghiệp SMEs, đưa các doanh nghiệp SMEs lên môi trường E-commerce để tiếp cận khách hàng, mở rộng thị trường.
Đây cũng là vấn đề mà tự thân các doanh nghiệp SME không có đủ nguồn lực để thực hiện và nếu có thực hiện cũng khó hiệu quả do thiếu lợi thế về qui mô. Liệu Dealtoday.vn có tạo nên diện mạo mới cho bức tranh thương mại điện tử Việt nam nơi mà các ông lớn vẫn thể hiện sức mạnh về tài chính để tấn công thị trường theo mô hình B2C và B2B2C hay không? Thực tế sẽ cho chúng ta câu trả lời trong thời gian ngắn sắp tới.

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Powerade Coupons