求助: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]
...全文
1992 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
来次够cpp 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后输出的

1,394

社区成员

发帖
与我相关
我的任务
社区描述
VOIP相关技术探讨专区
社区管理员
  • VOIP技术探讨社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧