文件名称:Python
介绍说明--下载内容均来自于网络,请自行研究使用
用pjsip的库编写web网络电话,说明:
1.先安装pjsip的库。
2.你需要两个sip账号,分别填入第114行和116行。
第一个参数是SIP服务器,第二是用户名,第三是密码。
3.被叫号在第49行,你可以修改成从文件读或者其他。
4.第131行,从E盘根目录获取“电话号码.call”文件。获取之后就把该文件删掉。并呼叫该号码。
5.第44行,等待音文件,必须是标准的wav文件,可以用windows自带的录音机自己录制,转码出来的有可能不被支持,会报异常,此处未作处理
6.本程序是拿来做网页免费电话(web800)用的,当用户在web上填入一个号码,就可以自动回拨他,播放等待音,并接通第49行设定的客服号码。
7.web部分考虑到各人服务器不一样,未给出,只需按格式写入一个空文件到131行设定的路径就可以-Written in the pjsip the library web network telephone, stating:
1 to install the pjsip the library.
You need two sip accounts, respectively, to fill 114 lines and 116 lines.
The first parameter is the SIP server, the second is the user name and password.
3 called in line 49, you can modify the file read or other.
Four. Line 131, obtained from the root directory of E telephone number call "file. Fetch and then put the file is deleted. And call the number.
5 line 44, waiting for the sound file must be a standard wav file, you can use windows built-in recorder to record your own out of transcoding may not be supported, exception will be reported here is not dealt with
This procedure is used as the web pages Toll-free (web800) used when the user fill in a number on the web, you can automatically call back him, the player waiting tone, and connected to the line 49 to set the customer service number.
7.web part of each one taking into account the server is not the same, is not given
1.先安装pjsip的库。
2.你需要两个sip账号,分别填入第114行和116行。
第一个参数是SIP服务器,第二是用户名,第三是密码。
3.被叫号在第49行,你可以修改成从文件读或者其他。
4.第131行,从E盘根目录获取“电话号码.call”文件。获取之后就把该文件删掉。并呼叫该号码。
5.第44行,等待音文件,必须是标准的wav文件,可以用windows自带的录音机自己录制,转码出来的有可能不被支持,会报异常,此处未作处理
6.本程序是拿来做网页免费电话(web800)用的,当用户在web上填入一个号码,就可以自动回拨他,播放等待音,并接通第49行设定的客服号码。
7.web部分考虑到各人服务器不一样,未给出,只需按格式写入一个空文件到131行设定的路径就可以-Written in the pjsip the library web network telephone, stating:
1 to install the pjsip the library.
You need two sip accounts, respectively, to fill 114 lines and 116 lines.
The first parameter is the SIP server, the second is the user name and password.
3 called in line 49, you can modify the file read or other.
Four. Line 131, obtained from the root directory of E telephone number call "file. Fetch and then put the file is deleted. And call the number.
5 line 44, waiting for the sound file must be a standard wav file, you can use windows built-in recorder to record your own out of transcoding may not be supported, exception will be reported here is not dealt with
This procedure is used as the web pages Toll-free (web800) used when the user fill in a number on the web, you can automatically call back him, the player waiting tone, and connected to the line 49 to set the customer service number.
7.web part of each one taking into account the server is not the same, is not given
(系统自动生成,下载前可以参看下载内容)
下载文件列表
pjsua-1.1-Py25.win32.exe
使用说明.txt
chengcall.py
使用说明.txt
chengcall.py