Спасибо, но не получается. Вот настройки моего шлюза, касающиеся FXO: Advances -> Hotline: PHONE 2 - FXO Hot Line: (V) Hot Line No. : 101 Warm Line (Hot Line Delay) : 0 ( 0 - 60 s ) Dial-Out Prefix : FXO Line Default Dial-Out :
FXO Line VoIP call in option : Caller Indicate Dial-Out Trunk Incoming Prompt Voice : Default Greeting Enable FXO / Trunk Extension Number: (V) Pick up Line by Dialing Extension Number: ( ) Ring count before FXO pick up : 1 ( 0 - 999 s ) Transit In Busy Tone Limit : 3 ( 0 - 60 s ) Detect FXO Line Presence: ( )
Advances -> Line: Enable: (V) Listening Volume : 0 ( 3dB per step ) Speaking Volume : 2 ( 3dB per step ) Tone Volume : 5 Flash Time : 600 ( 50 - 950 ms ) Enable Polarity Reversal: ( ) PSTN Answer Detection : Ring Tone (пробовал здесь ставить Disabled). PSTN Ring OFF Length : ( 1000 - 20000 ms )
Вот логи D-Link при звонке на занятый номер: Apr 4 17:06:06 pstn 84C9B2CE3828-sipg: asterisk CallIn 8499******* Apr 4 17:06:06 pstn 84C9B2CE3828-sipg: 1: TrunkDialOut Apr 4 17:06:07 pstn 84C9B2CE3828-sipg: 1: PSTN Dial 8499******* Apr 4 17:06:13 pstn 84C9B2CE3828-sipg: 1: VoipAnswering Apr 4 17:06:13 pstn 84C9B2CE3828-sipg: 1: Connected As Callee Apr 4 17:06:13 pstn 84C9B2CE3828-sipg: 1: Talking Apr 4 17:06:14 pstn 84C9B2CE3828-sipg: 1: Released By Me Apr 4 17:06:14 pstn 84C9B2CE3828-sipg: 1: PlayBusyTone Apr 4 17:06:14 pstn 84C9B2CE3828-sipg: 1: Idle
Вот логи Asterisk: Audio is at 11440 Adding codec 100004 (alaw) to SDP Adding codec 100003 (ulaw) to SDP Adding codec 100002 (gsm) to SDP Adding non-codec 0x1 (telephone-event) to SDP Reliably Transmitting (no NAT) to <dlink address>:5060: INVITE sip:8499*******@<dlink address>:5060 SIP/2.0 Via: SIP/2.0/UDP <asterisk address>:5060;branch=z9hG4bK56714b8f Max-Forwards: 70 From: "asterisk" <sip:asterisk@<asterisk address>:5060>;tag=as201ffd24 To: <sip:8499*******@<dlink address>:5060> Contact: <sip:asterisk@<asterisk address>:5060> Call-ID: 629e707c493277c72fa76562736f2e24@<asterisk address>:5060 CSeq: 102 INVITE User-Agent: Asterisk Date: Fri, 04 Apr 2014 13:08:23 GMT Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH Supported: replaces, timer Content-Type: application/sdp Content-Length: 529
v=0 o=root 856154802 856154802 IN IP4 <asterisk address> s=Asterisk PBX 11.8.1 c=IN IP4 <asterisk address> t=0 0 m=audio 11440 RTP/AVP 8 0 3 101 a=rtpmap:8 PCMA/8000 a=rtpmap:0 PCMU/8000 a=rtpmap:3 GSM/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=silenceSupp:off - - - - a=ptime:20 a=ice-ufrag:273787e153f628ff037fc9943df1a8ea a=ice-pwd:4cc21ac117557f440e5d802d4e904faa a=candidate:Hac100062 1 UDP 2130706431 <asterisk address> 11440 typ host a=candidate:Hac100062 2 UDP 2130706430 <asterisk address> 11441 typ host a=sendrecv
--- <--- SIP read from UDP:<dlink address>:5060 ---> SIP/2.0 100 Trying Via: SIP/2.0/UDP <asterisk address>:5060;branch=z9hG4bK56714b8f From: "asterisk" <sip:asterisk@<asterisk address>:5060>;tag=as201ffd24 To: <sip:8499*******@<dlink address>:5060> Call-ID: 629e707c493277c72fa76562736f2e24@<asterisk address>:5060 CSeq:102 INVITE Content-Type: application/sdp Content-Length: 0
<-------------> --- (8 headers 0 lines) --- <--- SIP read from UDP:<dlink address>:5060 ---> SIP/2.0 183 Session in progress Via: SIP/2.0/UDP <asterisk address>:5060;branch=z9hG4bK56714b8f From: "asterisk" <sip:asterisk@<asterisk address>:5060>;tag=as201ffd24 To: <sip:8499*******@<dlink address>:5060>;tag=baa18c83-685013 Call-ID: 629e707c493277c72fa76562736f2e24@<asterisk address>:5060 CSeq:102 INVITE Contact: <sip:<dlink address>:5060> User-Agent:dlink 12-38-39912597-0.10.37.1-TSO Content-Type: application/sdp Content-Length: 217
v=0 o=101 1792208440 1792208440 IN IP4 <dlink address> s=Session SDP c=IN IP4 <dlink address> t=0 0 m=audio 9002 RTP/AVP 8 101 a=rtpmap:8 PCMA/8000/1 a=rtpmap:101 telephone-event/8000/1 a=fmtp:101 0-16 a=sendonly <-------------> --- (10 headers 10 lines) --- list_route: hop: <sip:<dlink address>:5060> Found RTP audio format 8 Found RTP audio format 101 Found audio description format PCMA for ID 8 Found audio description format telephone-event for ID 101 Capabilities: us - (gsm|ulaw|alaw), peer - audio=(alaw)/video=(nothing)/text=(nothing), combined - (alaw) Non-codec capabilities (dtmf): us - 0x1 (telephone-event|), peer - 0x1 (telephone-event|), combined - 0x1 (telephone-event|) <--- SIP read from UDP:<dlink address>:5060 ---> SIP/2.0 200 OK Allow:INVITE,ACK,OPTIONS,BYE,CANCEL,INFO,PRACK,REFER,SUBSCRIBE,NOTIFY,UPDATE Via: SIP/2.0/UDP <asterisk address>:5060;branch=z9hG4bK56714b8f From: "asterisk" <sip:asterisk@<asterisk address>:5060>;tag=as201ffd24 To: <sip:8499*******@<dlink address>:5060>;tag=baa18c83-685013 Call-ID: 629e707c493277c72fa76562736f2e24@<asterisk address>:5060 CSeq:102 INVITE Contact: <sip:<dlink address>:5060> User-Agent:dlink 12-38-39912597-0.10.37.1-TSO Content-Type: application/sdp Content-Length: 205
v=0 o=101 1792211830 1792211830 IN IP4 <dlink address> s=Session SDP c=IN IP4 <dlink address> t=0 0 m=audio 9002 RTP/AVP 8 101 a=rtpmap:8 PCMA/8000/1 a=rtpmap:101 telephone-event/8000/1 a=fmtp:101 0-16 <-------------> --- (11 headers 9 lines) --- Found RTP audio format 8 Found RTP audio format 101 Found audio description format PCMA for ID 8 Found audio description format telephone-event for ID 101 Capabilities: us - (gsm|ulaw|alaw), peer - audio=(alaw)/video=(nothing)/text=(nothing), combined - (alaw) Non-codec capabilities (dtmf): us - 0x1 (telephone-event|), peer - 0x1 (telephone-event|), combined - 0x1 (telephone-event|) Peer audio RTP is at port <dlink address>:9002 list_route: hop: <sip:<dlink address>:5060> set_destination: Parsing <sip:<dlink address>:5060> for address/port to send to set_destination: set destination to <dlink address>:5060 Transmitting (no NAT) to <dlink address>:5060: ACK sip:<dlink address>:5060 SIP/2.0 Via: SIP/2.0/UDP <asterisk address>:5060;branch=z9hG4bK769f1c09 Max-Forwards: 70 From: "asterisk" <sip:asterisk@<asterisk address>:5060>;tag=as201ffd24 To: <sip:8499*******@<dlink address>:5060>;tag=baa18c83-685013 Contact: <sip:asterisk@<asterisk address>:5060> Call-ID: 629e707c493277c72fa76562736f2e24@<asterisk address>:5060 CSeq: 102 ACK User-Agent: Asterisk Content-Length: 0 -- SIP/101-00000005 answered Local/8499*******@callbackhome-00000005;2 <--- SIP read from UDP:<dlink address>:5060 ---> BYE sip:asterisk@<asterisk address>:5060 SIP/2.0 Via: SIP/2.0/UDP <dlink address>:5060;branch=z9hG4bK13d819470455e8ee From: <sip:8499*******@<dlink address>:5060>;tag=baa18c83-685013 To: "asterisk" <sip:asterisk@<asterisk address>:5060>;tag=as201ffd24 Call-ID: 629e707c493277c72fa76562736f2e24@<asterisk address>:5060 CSeq:3 BYE Contact: <sip:<dlink address>:5060> Max-Forwards:70 User-Agent:dlink 12-38-39912597-0.10.37.1-TSO Content-Length: 0
<-------------> --- (10 headers 0 lines) --- Sending to <dlink address>:5060 (no NAT) Scheduling destruction of SIP dialog '629e707c493277c72fa76562736f2e24@<asterisk address>:5060' in 6400 ms (Method: BYE)
<--- Transmitting (no NAT) to <dlink address>:5060 ---> SIP/2.0 200 OK Via: SIP/2.0/UDP <dlink address>:5060;branch=z9hG4bK13d819470455e8ee;received=<dlink address> From: <sip:8499*******@<dlink address>:5060>;tag=baa18c83-685013 To: "asterisk" <sip:asterisk@<asterisk address>:5060>;tag=as201ffd24 Call-ID: 629e707c493277c72fa76562736f2e24@<asterisk address>:5060 CSeq: 3 BYE Server: Asterisk Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH Supported: replaces, timer Content-Length: 0
<------------> == Spawn extension (fromcallbackautodial, 100, 2) exited non-zero on 'SIP/101-00000005' [Apr 4 17:08:31] NOTICE[5351]: pbx_spool.c:402 attempt_thread: Call completed to Local/8499*******@context
|