Но нет, такая-же проблема, причем если переключать с софтфона то всё норм работает если переключать с обчного тел шлюза то не каких эмоции. Подключил провайдера, звонил с мобильно, при нажатие кнопки сразу сбрасывает.
Прошу помощи
sip.conf
Код: Выделить всё
[general]
port=5060
dtmfmode=rfc2833 context=tkauto
disallow=all
allow=alaw
[120];2
type=friend
username=120
secret=123123
host=dynamic
context=telphin
allowtransfer=yes
[121];2
type=friend
username=121
secret=123123
host=dynamic
context=telphin
nat=yes
allowtransfer=yes
[122];2
type=friend
username=122
secret=123123
host=dynamic
context=telphin
allowtransfer=yes
Код: Выделить всё
[telphin]
exten => _1XX,1,Dial(SIP/${EXTEN},80,tT)
exten => _2XX,1,Dial(SIP/${EXTEN}@800,80,tT)
Код: Выделить всё
Audio is at 16444
Adding codec 100004 (alaw) to SDP
Adding non-codec 0x1 (telephone-event) to SDP
Reliably Transmitting (NAT) to 192.168.1.6:5060:
INVITE sip:120@192.168.1.6:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.11:5060;branch=z9hG4bK59b623c6;rport
Max-Forwards: 70
From: "122" <sip:122@192.168.1.11>;tag=as2ecfa6f4
To: <sip:120@192.168.1.6:5060>
Contact: <sip:122@192.168.1.11:5060>
Call-ID: 4867383927c3cef749090c085e33dba6@192.168.1.11:5060
CSeq: 102 INVITE
User-Agent: Asterisk PBX 10.5.0-rc1
Date: Tue, 29 May 2012 14:52:45 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 235
v=0
o=root 17694388 17694388 IN IP4 192.168.1.11
s=Asterisk PBX 10.5.0-rc1
c=IN IP4 192.168.1.11
t=0 0
m=audio 16444 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
---
<--- SIP read from UDP:192.168.1.6:5060 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.1.11:5060;rport;branch=z9hG4bK59b623c6
From: "122" <sip:122@192.168.1.11>;tag=as2ecfa6f4
To: <sip:120@192.168.1.6:5060>
Call-ID: 4867383927c3cef749090c085e33dba6@192.168.1.11:5060
CSeq:102 INVITE
Content-Type: application/sdp
Content-Length: 0
<------------->
--- (8 headers 0 lines) ---
<--- SIP read from UDP:192.168.1.6:5060 --->
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 192.168.1.11:5060;rport;branch=z9hG4bK59b623c6
From: "122" <sip:122@192.168.1.11>;tag=as2ecfa6f4
To: <sip:120@192.168.1.6:5060>;tag=cf2a9b97-687055
Call-ID: 4867383927c3cef749090c085e33dba6@192.168.1.11:5060
CSeq:102 INVITE
Contact: <sip:120@192.168.1.6:5060>
User-Agent:dlink 12-3856-2876-0.10.51.1-DS+
Content-Length: 0
<------------->
--- (9 headers 0 lines) ---
list_route: hop: <sip:120@192.168.1.6:5060>
<--- SIP read from UDP:192.168.1.6:5060 --->
SIP/2.0 200 OK
Allow:INVITE,ACK,OPTIONS,BYE,CANCEL,INFO,PRACK,REFER,SUBSCRIBE,NOTIFY,UPDATE
Via: SIP/2.0/UDP 192.168.1.11:5060;rport;branch=z9hG4bK59b623c6
From: "122" <sip:122@192.168.1.11>;tag=as2ecfa6f4
To: <sip:120@192.168.1.6:5060>;tag=cf2a9b97-687055
Call-ID: 4867383927c3cef749090c085e33dba6@192.168.1.11:5060
CSeq:102 INVITE
Contact: <sip:120@192.168.1.6:5060>
User-Agent:dlink 12-3856-2876-0.10.51.1-DS+
Content-Type: application/sdp
Content-Length: 172
v=0
o=120 1794252790 1794252790 IN IP4 192.168.1.6
s=Session SDP
c=IN IP4 192.168.1.6
t=0 0
m=audio 9000 RTP/AVP 8
a=rtpmap:8 PCMA/8000
a=fmtp:8 vad=no
a=sendrecv
<------------->
--- (11 headers 9 lines) ---
Found RTP audio format 8
Found audio description format PCMA for ID 8
Capabilities: us - (alaw), peer - audio=(alaw)/video=(nothing)/text=(nothing), combined - (alaw)
Non-codec capabilities (dtmf): us - 0x1 (telephone-event|), peer - 0x0 (nothing), combined - 0x0 (nothing)
Peer audio RTP is at port 192.168.1.6:9000
list_route: hop: <sip:120@192.168.1.6:5060>
set_destination: Parsing <sip:120@192.168.1.6:5060> for address/port to send to
set_destination: set destination to 192.168.1.6:5060
Transmitting (NAT) to 192.168.1.6:5060:
ACK sip:120@192.168.1.6:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.11:5060;branch=z9hG4bK36f77961;rport
Max-Forwards: 70
From: "122" <sip:122@192.168.1.11>;tag=as2ecfa6f4
To: <sip:120@192.168.1.6:5060>;tag=cf2a9b97-687055
Contact: <sip:122@192.168.1.11:5060>
Call-ID: 4867383927c3cef749090c085e33dba6@192.168.1.11:5060
CSeq: 102 ACK
User-Agent: Asterisk PBX 10.5.0-rc1
Content-Length: 0
---
<--- SIP read from UDP:192.168.1.6:5060 --->
BYE sip:122@192.168.1.11:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.6:5060;branch=z9hG4bKacc3e11069412126
From: <sip:120@192.168.1.6:5060>;tag=cf2a9b97-687055
To: "122" <sip:122@192.168.1.11>;tag=as2ecfa6f4
Call-ID: 4867383927c3cef749090c085e33dba6@192.168.1.11:5060
CSeq:19 BYE
Contact: <sip:120@192.168.1.6:5060>
Max-Forwards:70
User-Agent:dlink 12-3856-2876-0.10.51.1-DS+
Content-Length: 0
<------------->
--- (10 headers 0 lines) ---
Sending to 192.168.1.6:5060 (NAT)
Scheduling destruction of SIP dialog '4867383927c3cef749090c085e33dba6@192.168.1.11:5060' in 32000 ms (Method: BYE)
<--- Transmitting (NAT) to 192.168.1.6:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.1.6:5060;branch=z9hG4bKacc3e11069412126;received=192.168.1.6;rport=5060
From: <sip:120@192.168.1.6:5060>;tag=cf2a9b97-687055
To: "122" <sip:122@192.168.1.11>;tag=as2ecfa6f4
Call-ID: 4867383927c3cef749090c085e33dba6@192.168.1.11:5060
CSeq: 19 BYE
Server: Asterisk PBX 10.5.0-rc1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0
Код: Выделить всё
Audio is at 19216
Adding codec 100004 (alaw) to SDP
Adding non-codec 0x1 (telephone-event) to SDP
Reliably Transmitting (NAT) to 192.168.1.6:5060:
INVITE sip:120@192.168.1.6:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.11:5060;branch=z9hG4bK697b1248;rport
Max-Forwards: 70
From: "122" <sip:122@192.168.1.11>;tag=as5a824f57
To: <sip:120@192.168.1.6:5060>
Contact: <sip:122@192.168.1.11:5060>
Call-ID: 513ded766d9fade8134d5a550c2b7145@192.168.1.11:5060
CSeq: 102 INVITE
User-Agent: Asterisk PBX 10.5.0-rc1
Date: Tue, 29 May 2012 14:54:05 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 239
v=0
o=root 2014511569 2014511569 IN IP4 192.168.1.11
s=Asterisk PBX 10.5.0-rc1
c=IN IP4 192.168.1.11
t=0 0
m=audio 19216 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
---
<--- SIP read from UDP:192.168.1.6:5060 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.1.11:5060;rport;branch=z9hG4bK697b1248
From: "122" <sip:122@192.168.1.11>;tag=as5a824f57
To: <sip:120@192.168.1.6:5060>
Call-ID: 513ded766d9fade8134d5a550c2b7145@192.168.1.11:5060
CSeq:102 INVITE
Content-Type: application/sdp
Content-Length: 0
<------------->
--- (8 headers 0 lines) ---
<--- SIP read from UDP:192.168.1.6:5060 --->
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 192.168.1.11:5060;rport;branch=z9hG4bK697b1248
From: "122" <sip:122@192.168.1.11>;tag=as5a824f57
To: <sip:120@192.168.1.6:5060>;tag=5cf440fa-687135
Call-ID: 513ded766d9fade8134d5a550c2b7145@192.168.1.11:5060
CSeq:102 INVITE
Contact: <sip:120@192.168.1.6:5060>
User-Agent:dlink 12-3856-2876-0.10.51.1-DS+
Content-Length: 0
<------------->
--- (9 headers 0 lines) ---
list_route: hop: <sip:120@192.168.1.6:5060>
<--- SIP read from UDP:192.168.1.6:5060 --->
SIP/2.0 200 OK
Allow:INVITE,ACK,OPTIONS,BYE,CANCEL,INFO,PRACK,REFER,SUBSCRIBE,NOTIFY,UPDATE
Via: SIP/2.0/UDP 192.168.1.11:5060;rport;branch=z9hG4bK697b1248
From: "122" <sip:122@192.168.1.11>;tag=as5a824f57
To: <sip:120@192.168.1.6:5060>;tag=5cf440fa-687135
Call-ID: 513ded766d9fade8134d5a550c2b7145@192.168.1.11:5060
CSeq:102 INVITE
Contact: <sip:120@192.168.1.6:5060>
User-Agent:dlink 12-3856-2876-0.10.51.1-DS+
Content-Type: application/sdp
Content-Length: 172
v=0
o=120 1794332510 1794332510 IN IP4 192.168.1.6
s=Session SDP
c=IN IP4 192.168.1.6
t=0 0
m=audio 9000 RTP/AVP 8
a=rtpmap:8 PCMA/8000
a=fmtp:8 vad=no
a=sendrecv
<------------->
--- (11 headers 9 lines) ---
Found RTP audio format 8
Found audio description format PCMA for ID 8
Capabilities: us - (alaw), peer - audio=(alaw)/video=(nothing)/text=(nothing), combined - (alaw)
Non-codec capabilities (dtmf): us - 0x1 (telephone-event|), peer - 0x0 (nothing), combined - 0x0 (nothing)
Peer audio RTP is at port 192.168.1.6:9000
list_route: hop: <sip:120@192.168.1.6:5060>
set_destination: Parsing <sip:120@192.168.1.6:5060> for address/port to send to
set_destination: set destination to 192.168.1.6:5060
Transmitting (NAT) to 192.168.1.6:5060:
ACK sip:120@192.168.1.6:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.11:5060;branch=z9hG4bK5836021e;rport
Max-Forwards: 70
From: "122" <sip:122@192.168.1.11>;tag=as5a824f57
To: <sip:120@192.168.1.6:5060>;tag=5cf440fa-687135
Contact: <sip:122@192.168.1.11:5060>
Call-ID: 513ded766d9fade8134d5a550c2b7145@192.168.1.11:5060
CSeq: 102 ACK
User-Agent: Asterisk PBX 10.5.0-rc1
Content-Length: 0
---
[May 29 18:54:11] DTMF[9509]: channel.c:4051 __ast_read: DTMF end '#' received on SIP/122-00000016, duration 0 ms
[May 29 18:54:11] DTMF[9509]: channel.c:4077 __ast_read: DTMF begin emulation of '#' with duration 100 queued on SIP/122-00000016
[May 29 18:54:11] DTMF[9509]: channel.c:4169 __ast_read: DTMF end emulation of '#' queued on SIP/122-00000016
<--- SIP read from UDP:192.168.1.6:5060 --->
BYE sip:122@192.168.1.11:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.6:5060;branch=z9hG4bKf9f36b4b61750a4f
From: <sip:120@192.168.1.6:5060>;tag=5cf440fa-687135
To: "122" <sip:122@192.168.1.11>;tag=as5a824f57
Call-ID: 513ded766d9fade8134d5a550c2b7145@192.168.1.11:5060
CSeq:20 BYE
Contact: <sip:120@192.168.1.6:5060>
Max-Forwards:70
User-Agent:dlink 12-3856-2876-0.10.51.1-DS+
Content-Length: 0
<------------->
--- (10 headers 0 lines) ---
Sending to 192.168.1.6:5060 (NAT)
Scheduling destruction of SIP dialog '513ded766d9fade8134d5a550c2b7145@192.168.1.11:5060' in 32000 ms (Method: BYE)
<--- Transmitting (NAT) to 192.168.1.6:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.1.6:5060;branch=z9hG4bKf9f36b4b61750a4f;received=192.168.1.6;rport=5060
From: <sip:120@192.168.1.6:5060>;tag=5cf440fa-687135
To: "122" <sip:122@192.168.1.11>;tag=as5a824f57
Call-ID: 513ded766d9fade8134d5a550c2b7145@192.168.1.11:5060
CSeq: 20 BYE
Server: Asterisk PBX 10.5.0-rc1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0
<------------>
[May 29 18:54:11] DTMF[9509]: channel.c:4077 __ast_read: DTMF begin emulation of '#' with duration 100 queued on SIP/122-00000016
[May 29 18:54:11] DTMF[9509]: channel.c:4169 __ast_read: DTMF end emulation of '#' queued on SIP/122-00000016
Нашел ссылку http://subnets.ru/blog/?tag=dtmf делал не помогло (
На 1.4 все отлично работает