求助:pjsip客户端向服务器注册失败,麻烦了解的大虾帮忙看看,谢谢!

code_digger 2017-09-12 12:12:27
+=============================================================================+
| Call Commands: | Buddy, IM & Presence: | Account: |
| | | |
| m Make new call | +b Add new buddy .| +a Add new accnt |
| M Make multiple calls | -b Delete buddy | -a Delete accnt. |
| a Answer call | i Send IM | !a Modify accnt. |
| h Hangup call (ha=all) | s Subscribe presence | rr (Re-)register |
| H Hold call | u Unsubscribe presence | ru Unregister |
| v re-inVite (release hold) | t ToGgle Online status | > Cycle next ac.|
| U send UPDATE | T Set online status | < Cycle prev ac.|
| ],[ Select next/prev call +--------------------------+-------------------+
| x Xfer call | Media Commands: | Status & Config: |
| X Xfer with Replaces | | |
| # Send RFC 2833 DTMF | cl List ports | d Dump status |
| * Send DTMF with INFO | cc Connect port | dd Dump detailed |
| dq Dump curr. call quality | cd Disconnect port | dc Dump config |
| | V Adjust audio Volume | f Save config |
| S Send arbitrary REQUEST | Cp Codec priorities | |
+-----------------------------------------------------------------------------+
| q QUIT L ReLoad sleep MS echo [0|1|txt] n: detect NAT type |
+=============================================================================+
You have 0 active call
>>> +a
Your SIP URL: (empty to cancel): 1000@192.168.115.164:5060 //注:这里的IP为服务器的IP
URL of the registrar: (empty to cancel): 192.168.115.227 //这里的IP为本机的IP
Auth Realm: (empty to cancel): 192.168.115.164
Auth Username: (empty to cancel): 1000
Auth Password: (empty to cancel): 1000
11:34:16.636 pjsua_acc.c Adding account: id=1000@192.168.115.164:5060
11:34:16.636 pjsua_acc.c .Invalid local URI: Invalid URI (PJSIP_EINVALIDURI) [status=171039]
11:34:16.636 pjsua_acc.c .Error adding account: Invalid URI (PJSIP_EINVALIDURI) [status=171039]
11:34:16.636 pjsua_app_lega Error adding new account: Invalid URI (PJSIP_EINVALIDURI) [status=171039]
...全文
1646 1 收藏 2
写回复
2 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
muyunxm12 2019-04-15
你的sipurl格式和注册服务器的格式有错。 Your SIP URL: (empty to cancel): 1000@192.168.115.164:5060 //sipurl格式为:sip:username@server URL of the registrar: (empty to cancel): 192.168.115.227 //registar格式为:sip:server
回复
code_digger 2017-09-12
补充:上面的LOG是执行pjsua后输出的
回复
相关推荐
发帖
VoIP
创建于2008-10-22

1361

社区成员

VOIP相关技术探讨专区
申请成为版主
帖子事件
创建了帖子
2017-09-12 12:12
社区公告
暂无公告