yyy.yyy.yyy.yyy - CISCO
xxx.xxx.xxx.xxx - *
Помогите, плз! 8) Ничего не понимаю!! 8)
Есть CISCO и *. Не проходит звонок из CISCO на *. Схема:
{PSTN ntktajy} -> CISCO -> * -> {SIP client} При попытке звонка CISCO пишет:
----------------------
# sh call history vo br
Telephony call-legs: 1
SIP call-legs: 1
H323 call-legs: 0
Call agent controlled call-legs: 0
Total call-legs: 2
1316 : 445 1636084174ms.444 +-1 +230 pid:70001 Originate 7401
dur 00:00:00 tx:0/0 rx:0/0 1 (unassigned number (1))
IP 0.0.0.0:0 SRTP: off rtt:0ms pl:0/0ms lost:0/0/0 delay:0/0/0ms gsmfr
media inactive detected:n media contrl rcvd:n/a timestamp:n/a
1316 : 444 1636084164ms.445 +-1 +320 pid:70000 Answer 3711111111
dur 00:00:00 tx:0/0 rx:0/0 1 (unassigned number (1))
Telephony 2/0:D (444) [2/0.0] tx:0/0/0ms None noise:0dBm acom:0dBm
---------------
При этом * выдает ошибку SIP 404 !:
…
v=0
o=CiscoSystemsSIP-GW-UserAgent 663 3283 IN IP4 yyy.yyy.yyy.yyy
s=SIP Call
c=IN IP4 yyy.yyy.yyy.yyy
t=0 0
m=audio 18974 RTP/AVP 3
c=IN IP4 yyy.yyy.yyy.yyy
a=rtpmap:3 GSM/8000
a=ptime:10
19 headers, 9 lines
Using latest request as basis request
Sending to yyy.yyy.yyy.yyy : 5060 (non-NAT)
Found no matching peer or user for 'yyy.yyy.yyy.yyy:52140'
Found RTP audio format 3
Peer audio RTP is at port yyy.yyy.yyy.yyy:18974
Found description format GSM
Capabilities: us - 0x8000e (gsm|ulaw|alaw|h263), peer - audio=0x2 (gsm)/video=0x0 (nothing), c
ombined - 0x2 (gsm)
Non-codec capabilities: us - 0x1 (g723), peer - 0x0 (nothing), combined - 0x0 (nothing)
Looking for 7401 in default
Reliably Transmitting (no NAT):
SIP/2.0 404 Not Found
Via: SIP/2.0/UDP yyy.yyy.yyy.yyy:5060;branch=z9hG4bK428517AA
From: "unknown" <sip:xxx.xxx.xxx.xxx>;tag=61624390-F36
To: <sip:7401@xxx.xxx.xxx.xxx>;tag=as5c8aedc9
Call-ID: 4573EC74-F50111D3-834DC1FE-EACCF07B@yyy.yyy.yyy.yyy
CSeq: 101 INVITE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: <sip:7401@yyy.yyy.yyy.yyy>
Content-Length: 0
…
============================================
sip.conf
Для клиента, на который не получается позвонить с PSTN телефона
[7401]
type=friend
host=dynamic
username=7401
secret=7401_password
nat=yes
canreinvite=no
reinvite=no
context=office
callerid="User7401" <7401>
allow=all
dtmfmode=rfc2833
Сама cisco
[.*]
type=peer
host=208.57.244.101
context=office
extensions.conf
[office]
exten => _6,1,Dial(SIP/${EXTEN}@208.57.244.101)
--------------------------------
Конфиг CISCO:
voice translation-rule 1
rule 1 /^.*/ /16502677400/
!
voice translation-profile OutgoingMod
translate calling 1
dial-peer voice 70000 pots
translation-profile outgoing OutgoingMod
numbering-type unknown
preference 5
destination-pattern .T
direct-inward-dial
port 2/0:D
no register e164
!
dial-peer voice 70001 voip
huntstop
destination-pattern .T
session protocol sipv2
session target sip-server
codec g711ulaw
fax-relay ecm disable
fax rate 9600
fax protocol t38 ls-redundancy 0 hs-redundancy 0 fallback pass-through g711ulaw
no vad
sip-ua
registrar ipv4:xxx.xxx.xxx.xxx expires 3600
sip-server ipv4:xxx.xxx.xxx.xxx