Сделал... Теперь вызов приходит на телефон через АТС... Но трубку снимаю - и отбой.
вот лог шлюза
Код:
16:06:23 [017667] 1: Fxo Ringing
16:06:23 [017668] 1: RingTime(18) First Stop
16:06:24 [017681] 1: RingTime(159) Second Ring
16:06:26 [017701] 1: CallerId=
16:06:26 [017701] 1: ==17:WaitAnswerDeviceOk
16:06:26 [017702] 1: HotLineEnabled with [10702]
16:06:26 [017702] 1: DigitMap Route [1]
16:06:26 [017702] 1: Call Proxy with [10702]
16:06:26 [017702] 1: ==7:Inviting
16:06:26 [017702] 1: VoIP CallOut, Invite <sip:10702@192.168.121.78;user=phone>
16:06:26 [017703] 1: 10702=DIALING
16:06:27 [017708] 0: 10701=OFFERING
16:06:27 [017708] 0: Get CallerId=10702:Anonymous@10701
16:06:27 [017708] 0: Peer=192.168.121.78#7038, PT=0, RecvOnly=0
16:06:27 [017708] 0: ==9:FxsCallerIdShortRing
16:06:27 [017708] 1: 10702=PROCEEDING
16:06:27 [017710] 1: 10702=RINGBACK
16:06:27 [017710] 1: ==8:RingBack
16:06:27 [017712] 0: Fxs Send FskCallerId(10701,10702:Anonymous,09291606)=0
16:06:27 [017712] 0: ==10:FxsCallerIdSending
16:06:28 [017721] 0: ==11:FxsCallerIdSent
16:06:28 [017723] 0: After CallerId Sent, SetFxsRing()=0
16:06:28 [017723] 0: ==12:Alerting
16:06:32 [017758] 0: Fxs Pickup
16:06:32 [017759] 0: 10701=ACCEPT
16:06:32 [017759] 0: ==13:VoipAnswering
16:06:32 [017760] 0: 10701=CONNECTED
16:06:32 [017760] 0: FilterDtmf(1)=0
16:06:32 [017760] 0: RTP[1,1], Peer=192.168.121.78#7038, PT=0/2/1
16:06:32 [017760] 0: ==14:Talking
16:06:32 [017761] 1: 10702=CONNECTED
16:06:32 [017761] 1: PeerSdp Error #1
16:06:32 [017761] 1: PeerSdp NULL
16:06:32 [017763] 1: 10702=DISCONNECT
16:06:32 [017764] 1: Offhook Fxo for PlayBusy
16:06:32 [017764] 1: FxoHookOff
16:06:32 [017764] 1: InputGain(0)
16:06:32 [017764] 1: Release Active Dlg
16:06:32 [017764] 1: ==15:PlayBusyTone
16:06:32 [017764] 0: 10701=DISCONNECT
16:06:32 [017764] 0: RTP S=17 R=0 Lost=-1
16:06:32 [017765] 0: Release Active Dlg
16:06:32 [017765] 0: ==15:PlayBusyTone
16:06:35 [017794] 1: FxoHookOn
16:06:35 [017794] 1: ==3:Idle
16:06:35 [017794] 1: InputGain(6)
16:06:35 [017794] 1: SetFax(1)=0
16:06:35 [017794] 1: SetModem(0)=-1
и с 3сх
Код:
16:06:33.388 [MS105000] C:12.1: No RTP packets were received:remoteAddr=192.168.121.16:9002,extAddr=0.0.0.0:0,localAddr=192.168.121.78:7036
16:06:32.466 [CM503008]: Call(12): Call is terminated
16:06:32.435 Session 779 of leg C:12.1 is confirmed
16:06:32.154 [CM503007]: Call(12): Device joined: sip:10701@192.168.121.16:5060
16:06:32.154 [CM503007]: Call(12): Device joined: sip:10702@192.168.121.16:5060
16:06:32.154 [MS210003] C:12.1:Answer provided. Connection(transcoding mode[unsecure]):192.168.121.78:7036(7037)
16:06:32.154 [MS210001] C:12.2:Answer received. RTP connection[unsecure]: 192.168.121.16:9000(9001)
16:06:32.154 Remote SDP is set for legC:12.2
16:06:27.076 [CM505002]: Gateway:[dlink fxs] Device info: Device Not Identified: User Agent not matched; Capabilities:[reinvite, replaces, able-no-sdp, recvonly] UserAgent: [dlink 12-3868-2419-0.10.56.1-TSO] PBX contact: [sip:10701@192.168.121.78:5060]
16:06:27.076 [CM503002]: Call(12): Alerting sip:10701@192.168.121.16:5060
16:06:26.888 [CM503025]: Call(12): Calling PSTNline:10701@(Ln.10701@dlink fxs)@[Dev:sip:10701@192.168.121.16:5060]
16:06:26.888 [MS210002] C:12.2:Offer provided. Connection(transcoding mode): 192.168.121.78:7038(7039)
16:06:26.841 [CM503004]: Call(12): Route 1: PSTNline:10701@(Ln.10701@dlink fxs)@[Dev:sip:10701@192.168.121.16:5060]
16:06:26.841 [CM503010]: Making route(s) to <sip:10701@192.168.121.78:5060>
16:06:26.841 [MS210000] C:12.1:Offer received. RTP connection: 192.168.121.16:9002(9003)
16:06:26.841 Remote SDP is set for legC:12.1
16:06:26.841 [CM505002]: Gateway:[dlink fxo] Device info: Device Not Identified: User Agent not matched; Capabilities:[reinvite, replaces, able-no-sdp, recvonly] UserAgent: [dlink 12-3868-2419-0.10.56.1-TSO] PBX contact: [sip:10702@192.168.121.78:5060]
16:06:26.841 [CM503001]: Call(12): Incoming call from 10702@(Ln.10702@dlink fxo) to <sip:10701@192.168.121.78:5060>
16:06:26.841 [CM503012]: Inbound any hours rule (10702) for 10702 forwards to DN:10701
16:06:26.841 Looking for inbound target: called=10702; caller=10702
16:06:26.826 [CM500002]: Info on incoming INVITE:
INVITE sip:10702@192.168.121.78;user=phone SIP/2.0
Via: SIP/2.0/UDP 192.168.121.16:5060;branch=z9hG4bKa8d3c604f98ef992
Max-Forwards: 70
Contact: <sip:10702@192.168.121.16:5060>
To: <sip:10702@192.168.121.78;user=phone>
From: "Anonymous"<sip:10702@192.168.121.78;user=phone>;tag=fab9b8a3-686576
Call-ID: D1B9-8A21-46686576CCACBDCD6443-008@SipHost
CSeq: 21 INVITE
Expires: 90
Allow: INVITE, ACK, OPTIONS, BYE, CANCEL, INFO, PRACK, REFER, SUBSCRIBE, NOTIFY, UPDATE
Proxy-Authorization: Digest username="10702",realm="3CXPhoneSystem",nonce="414d535c0494f04237:cf9d8bc487a4cd2258bae51d2a3a8498",uri="sip:10702@192.168.121.78;user=phone",response="7ba7d31d994c299d8c10dd76d4a33f4e",algorithm=MD5
Supported: replaces
User-Agent: dlink 12-3868-2419-0.10.56.1-TSO
Content-Length: 0