Asterisk 如何通过拨号至星号11.19集成cisco CME

Asterisk 如何通过拨号至星号11.19集成cisco CME,asterisk,cisco,Asterisk,Cisco,我的环境有一个PSTN>网关(CME)。所以我想知道如何设置星号来理解思科的拨号对等机。是谁干的 我确实尝试将sip.conf设置为 [4000] allowguest=yes defaultuser=4000 nsecure=port,invite bindport=5060 type=peer ; I did try change to "friend" as well, but the same problem. port=5060 host=172.16.101.25 context=P

我的环境有一个PSTN>网关(CME)。所以我想知道如何设置星号来理解思科的拨号对等机。是谁干的

我确实尝试将sip.conf设置为

[4000]
allowguest=yes
defaultuser=4000
nsecure=port,invite
bindport=5060
type=peer ; I did try change to "friend" as well, but the same problem.
port=5060
host=172.16.101.25
context=Plan1
insecure=yes
canreinvite=yes
qualify=yes
我确实收到了思科的回信

<--- SIP read from UDP:172.16.101.25:53054 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 172.16.101.43:5060;branch=z9hG4bK0bfec330
From: "asterisk" <sip:asterisk@172.16.101.43>;tag=as26306981
To: <sip:172.16.101.25>;tag=65E9F470-228A
Date: Thu, 22 Oct 2015 16:05:13 GMT
Call-ID: 100fe7696c5adbf3170c02ff799d7539@172.16.101.43:5060
Server: Cisco-SIPGateway/IOS-12.x
CSeq: 102 OPTIONS
Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTER
Allow-Events: telephone-event
Accept: application/sdp
Supported: 100rel,timer,resource-priority,replaces,sdp-anat
Content-Type: application/sdp
Content-Length: 170

v=0
o=CiscoSystemsSIP-GW-UserAgent 8815 8188 IN IP4 172.16.101.25
s=SIP Call
c=IN IP4 172.16.101.25
t=0 0
m=audio 0 RTP/AVP 18 0 8 9 4 2 15
c=IN IP4 172.16.101.25
<------------->
--- (14 headers 7 lines) ---
Really destroying SIP dialog '100fe7696c5adbf3170c02ff799d7539@172.16.101.43:5060' Method: OPTIONS

SIP/2.0 200正常
Via:SIP/2.0/UDP 172.16.101.43:5060;分支=z9hG4bK0bfec330
从:“星号”;标签=as26306981
致:;标签=65E9F470-228A
日期:2015年10月22日星期四格林尼治标准时间16:05:13
呼叫ID:100fe7696c5adbf3170c02ff799d7539@172.16.101.43:5060
服务器:Cisco SIPGateway/IOS-12.x
CSeq:102个选项
允许:邀请、选项、再见、取消、确认、恶作剧、更新、参考、订阅、通知、信息、注册
允许事件:电话事件
接受:应用程序/sdp
支持:100rel、定时器、资源优先级、替换、sdp anat
内容类型:应用程序/sdp
内容长度:170
v=0
o=IP4 172.16.101.25中的CiscoSystemsSIP GW用户代理8815 8188
s=SIP呼叫
c=在IP4 172.16.101.25中
t=0
m=音频0 RTP/AVP 18 0 8 9 4 2 15
c=在IP4 172.16.101.25中
---(14标题7行)---
真的在破坏SIP对话'100fe7696c5adbf3170c02ff799d7539@172.16.101.43:5060'方法:选项
Cisco网关发送寄存器,但星号未接收

没有防火墙或任何规则


对不起,我的英语很差。

我不确定问题是否在星号端,可能是cisco端缺少配置。 如果您希望从cisco网关向asterisk发送电话,请参阅cisco端的配置:

dial-peer voice 6000 voip
 destination-pattern 6...
 session protocol sipv2
 session target ipv4:172.16.101.43
这会将所有以6开头的4位数字发送到星号。应该足够让流量从cisco网关流向asterisk。更改
目的地模式
,使其与您希望发送到目的地的电话号码的星号拨号计划相匹配。点是一个单位数通配符,[]用于收集要匹配的数字

如果网关IOS版本为15或更高版本,则还需要将星号ip添加到ip地址受信任列表中

voice service voip
 ip address trusted list
  ipv4 172.16.101.43
如果您想/需要在cisco网关上将星号指定为sip ua,您可以在cisco网关配置的sip ua下执行此操作。在这里,您可以指定用于在星号上注册的凭据。这里列出了可能需要的命令

sip-ua
 credentials username <username> password <password> realm <sip domain>
 authentication username <username> password <password> realm <sip domain>
 registrar ipv4:172.16.101.43
 sip-server ipv4:172.16.101.43
sip-ua
凭据用户名密码域
身份验证用户名密码域
注册官ipv4:172.16.101.43
sip服务器ipv4:172.16.101.43

不要回答离题问题。