用办公室的电脑接、打网络电话

来源: fitwxc 2011-02-22 12:28:53 [] [博客] [旧帖] [给我悄悄话] 本文已被阅读: 次 (1443 bytes)
本文内容已被 [ fitwxc ] 在 2011-02-23 05:30:23 编辑过。如有问题,请报告版主或论坛管理删除.

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

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

所有跟帖: 

去开个公司卖软件吧,顺便把不少费用抵税 -豪客来2010- 给 豪客来2010 发送悄悄话 (0 bytes) () 02/22/2011 postreply 19:57:17

别人好心写的开源软件,你拿去卖钱? -fitwxc- 给 fitwxc 发送悄悄话 fitwxc 的博客首页 (0 bytes) () 02/22/2011 postreply 21:09:12

没啥问题吧, 打包起来卖服务啊。指导别人怎么用嘛。没几个人懂编程的。 -豪客来2010- 给 豪客来2010 发送悄悄话 (0 bytes) () 02/23/2011 postreply 10:08:15

你小時候是不是很窮? -Flyboat- 给 Flyboat 发送悄悄话 Flyboat 的博客首页 (0 bytes) () 02/23/2011 postreply 11:22:26

是。你呢? -豪客来2010- 给 豪客来2010 发送悄悄话 (0 bytes) () 02/23/2011 postreply 14:20:38

no, I come from middle class -Flyboat- 给 Flyboat 发送悄悄话 Flyboat 的博客首页 (0 bytes) () 02/24/2011 postreply 11:24:55

大陆吗?那也很穷啊。不过穷没关系, 就怕傻呀 -豪客来2010- 给 豪客来2010 发送悄悄话 (0 bytes) () 02/24/2011 postreply 11:46:25

Help! I got error "pjsua_app.c Invalid SIP URI discount.com". -Guoluke2- 给 Guoluke2 发送悄悄话 Guoluke2 的博客首页 (34 bytes) () 02/23/2011 postreply 13:04:27

Could this be a proxy issue? -GuoLuke2- 给 GuoLuke2 发送悄悄话 GuoLuke2 的博客首页 (0 bytes) () 02/23/2011 postreply 13:46:18

No auodio device? or something wrong in the config file -fitwxc- 给 fitwxc 发送悄悄话 fitwxc 的博客首页 (0 bytes) () 02/23/2011 postreply 23:45:53

Probably because of no audio device -Guoluke2- 给 Guoluke2 发送悄悄话 Guoluke2 的博客首页 (304 bytes) () 02/24/2011 postreply 07:41:16

我也遇到同样问题,winXP -alex138671- 给 alex138671 发送悄悄话 (0 bytes) () 02/26/2011 postreply 13:57:17

fitwxc 请问pj能用在sipgate上吗? -arening- 给 arening 发送悄悄话 (47 bytes) () 02/24/2011 postreply 18:16:42

任何SIP供应商都可以。 -fitwxc- 给 fitwxc 发送悄悄话 fitwxc 的博客首页 (0 bytes) () 02/26/2011 postreply 22:15:32

能否提供sipgate的样本? -arening- 给 arening 发送悄悄话 (0 bytes) () 02/28/2011 postreply 20:42:39

问题解决,答案见内 -alex138671- 给 alex138671 发送悄悄话 (86 bytes) () 02/26/2011 postreply 14:19:42

多谢多谢。 -GuoLuke2- 给 GuoLuke2 发送悄悄话 GuoLuke2 的博客首页 (154 bytes) () 02/28/2011 postreply 06:37:36

I think it's an firewall issue -GuoLuke2- 给 GuoLuke2 发送悄悄话 GuoLuke2 的博客首页 (88 bytes) () 02/28/2011 postreply 06:50:35

能否介绍您的高级技巧自动化怎样实现的? -手机新手- 给 手机新手 发送悄悄话 (0 bytes) () 03/01/2011 postreply 14:14:11

You need to write some VBA code -Guoluke2- 给 Guoluke2 发送悄悄话 Guoluke2 的博客首页 (355 bytes) () 03/03/2011 postreply 10:15:59

Communigate + AutoHotKey + PJSUA -fitwxc- 给 fitwxc 发送悄悄话 fitwxc 的博客首页 (0 bytes) () 03/06/2011 postreply 20:37:55

请您先登陆,再发跟帖!

发现Adblock插件

如要继续浏览
请支持本站 请务必在本站关闭/移除任何Adblock

关闭Adblock后 请点击

请参考如何关闭Adblock/Adblock plus

安装Adblock plus用户请点击浏览器图标
选择“Disable on www.wenxuecity.com”

安装Adblock用户请点击图标
选择“don't run on pages on this domain”