分享

username mismatch, have <x>, digest has <y>

 我的工作记录 2013-04-13
编辑sip_custom.conf文件。放入下面的字节match_auth_username=yes。如果你不加这个。
ASTERISK会拒绝这个呼叫,是因为FXS和FXO的IP地址一样(迅时网关的FXO/S混合使用),ASTERISK会用FXS的用户名和密码去匹配FXO的用户名和密码。



Ok. Finally fixed.

I had to add the following option to get rid off the problem above.

  1. insecure = invite

So finally my config for mynetfone trunk_1 looks like:

[trunk_1]
allow = g729
context = DID_trunk_1
dialformat = ${EXTEN:1}
canreinvite = yes
hasexten = no
hasiax = no
hassip = yes
host = sip00.mynetfone.com.au
port = 5060
registeriax = no
registersip = yes
secret = password
trunkname = Custom – mynetfone
trunkstyle = customvoip
username = mynetfone_sip_username
dtmf = rfc2833
fromuser = mynetfone_sip_username
callerid = DID
type = friend
insecure = invite

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多