fitwxc2011-02-22 20:28:53

办公室的电脑一般不让你自行安装任何软件,而大多数软电话都需要安装。

PJSUA是一个简单的命令行软电话,不需要任何安装。别看非常简单,功能却非常强大,也非常高效好用。我主要用它来做VOIP自动化,比如收到邮件时自动拨打我的手机,响铃后挂掉,达到即时提醒的目的。不管我在世界上那个地方,不需要短信和Internet,只要有个手机就行,而且不花钱(电话不需要接通)。

到这里下载编译好的PJSUA,很小的一个文件:

http://www.damianberesford.com/2009/09/21/windows-build-of-pjsua/

把exe文件改名为pj.exe,放到U盘里。同目录下新建一个pj.txt文件,内容如下:

--id sip:+15558887777@sip.voipdiscount.com
--registrar sip:sip.voipdiscount.com
--realm *
--username john
--password smith

注意以上参数不能在命令行提供,必须用这个设置文件。

然后运行:

pj.exe --config-file pj.txt

最常用的几个键:

m - 拨打电话

a - 接听来电

h - 挂掉电话

q - 退出

注意电话号码要用SIP URL格式,比如拨美国的1-555-777-8888或中国的021-666-888-7777,键入m后输入:

sip:0015557778888@sip.voipdiscount.com

sip:+15557778888@sip.voipdiscount.com

sip:0086216668887777@sip.voipdiscount.com

sip:+86216668887777@sip.voipdiscount.com

为方便起见,建立一个pj.bat文件,内容如下,以后每次使用只要键入pj.bat就行了:

pj.exe --config-file pj.txt

更多了解请去这里,源码可以编译到Linux和Mac等:

http://www.pjsip.org/pjsua.htm

豪客来20102011-02-23 03:57:17
去开个公司卖软件吧,顺便把不少费用抵税
fitwxc2011-02-23 05:09:12
别人好心写的开源软件,你拿去卖钱?
豪客来20102011-02-23 18:08:15
没啥问题吧, 打包起来卖服务啊。指导别人怎么用嘛。没几个人懂编程的。
Flyboat2011-02-23 19:22:26
你小時候是不是很窮?
Guoluke22011-02-23 21:04:27
Help! I got error "pjsua_app.c Invalid SIP URI discount.com".
GuoLuke22011-02-23 21:46:18
Could this be a proxy issue?
豪客来20102011-02-23 22:20:38
是。你呢?
fitwxc2011-02-24 07:45:53
No auodio device? or something wrong in the config file
Guoluke22011-02-24 15:41:16
Probably because of no audio device
Flyboat2011-02-24 19:24:55
no, I come from middle class
豪客来20102011-02-24 19:46:25
大陆吗?那也很穷啊。不过穷没关系, 就怕傻呀
arening2011-02-25 02:16:42
fitwxc 请问pj能用在sipgate上吗?
alex1386712011-02-26 21:57:17
我也遇到同样问题,winXP
alex1386712011-02-26 22:19:42
问题解决,答案见内
fitwxc2011-02-27 06:15:32
任何SIP供应商都可以。
GuoLuke22011-02-28 14:37:36
多谢多谢。
GuoLuke22011-02-28 14:50:35
I think it's an firewall issue
arening2011-03-01 04:42:39
能否提供sipgate的样本?
手机新手2011-03-01 22:14:11
能否介绍您的高级技巧自动化怎样实现的?
Guoluke22011-03-03 18:15:59
You need to write some VBA code
fitwxc2011-03-07 04:37:55
Communigate + AutoHotKey + PJSUA