Здравствуйте!
Я столкнулся со следующей ситуацией:
Есть астериск, без веб-мордов и т.п.
В этот астериск заведен SIP провайдер.
Когда приходит входящий звонок (от мегафона), то по непонятной причине ровно через 3 секунды этот же звонок приходит ещё раз, а иногда ещё 2 раза. В итоге софтвон секретаря забивается сразу на 2 линии, но разговор будет идти только по одной, остальные нужно будет принудительно сбросить.
Отловить на каком этапе происходит глюк не могу, поэтому прошу помощи.
Причем происходит такая фигня, только когда звонят абоненты мегафона (((
Конфиги:
**sip.conf**
[general]
context=public-direct-dial
allowoverlap=no
bindport=5060
bindaddr=0.0.0.0
srvlookup=yes
;useragent=AskoziaPBX
relaxdtmf=yes
alwaysauthreject=yes
videosupport=yes
notifybusy=yes
counteronpeer=yes
notifyhold=no
pedantic=yes
callcounter=yes
externip=95.167.174.82
localnet = 10.148.0.0/22
localnet = 192.168.0.0/24
localnet = 192.168.1.0/24
localnet = 10.10.10.0/24
localnet = 192.168.8.0/22
register => login:pass@prov_ip/login
[mcm_i]
type=friend
defaultuser=login
secret=pass
fromuser=login
host=prov_ip
context=mcm_in
fromdomain=prov_ip
language=en-us
nat=yes
qualify=2000
canreinvite=no
insecure=port,invite
dtmfmode=auto
disallow=all
allow=ulaw
allow=alaw
allow=gsm
**extensions.conf**
[mcm_in]
exten => 6691034,1,GotoIfTime(9:00-21:00|*|*|*?callcenter,s,1)
exten => 6691034,2,GotoIfTime(21:01-8:59|*|*|*?eva_logic,s,1)
[callcenter]
exten => s,1,Set(D1=${STRFTIME(${EPOCH},,%Y%m)})
exten => s,n,Set(D3=${STRFTIME(${EPOCH},,%d)})
exten => s,n,Set(D2=${STRFTIME(${EPOCH},,%H%M)})
exten => s,n,Set(Fo1=${CALLERID(number)})
exten => s,n,Set(Fo3=${STRFTIME(${EPOCH},,%H%M%S)})
exten => s,n,Set(PATH_FN=/billing/asterisk_wav/input/${D1}/${D3}/${D2}-${Fo1}-${Fo3})
exten => s,n,MixMonitor(${PATH_FN}.wav)
exten => s,n,Dial(SIP/310,25)
exten => s,n,Dial(SIP/311,25)
exten => s,n,Dial(SIP/301,20)
exten => s,n,Dial(SIP/314,20)
exten => s,n,Dial(SIP/313,20)
exten => s,n,Goto(ivr1,s,1)
debug:
<--- SIP read from UDP:95.128.224.3:5060 --->
INVITE sip:6691034@95.167.174.82 SIP/2.0
Via: SIP/2.0/UDP 95.128.224.3:5060;branch=z9hG4bK0acbc91b;rport
Max-Forwards: 70
From: "(mobile)" <sip:(mobile)@95.128.224.3>;tag=as4983c8a3
To: <sip:6691034@95.167.174.82>
Contact: <sip:(mobile)@95.128.224.3>
Call-ID: 371707a94140a04968dd100a5ca065a6@95.128.224.3
CSeq: 102 INVITE
User-Agent: Asterisk PBX 1.6.0.17
Date: Wed, 15 Jun 2011 16:43:15 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 561
v=0
o=root 36907135 36907135 IN IP4 95.128.224.3
s=Asterisk PBX 1.6.0.17
c=IN IP4 95.128.224.3
t=0 0
m=audio 13198 RTP/AVP 0 4 3 8 112 5 10 7 18 111 9 101
a=rtpmap:0 PCMU/8000
a=rtpmap:4 G723/8000
a=fmtp:4 annexa=no
a=rtpmap:3 GSM/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:112 AAL2-G726-32/8000
a=rtpmap:5 DVI4/8000
a=rtpmap:10 L16/8000
a=rtpmap:7 LPC/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:111 G726-32/8000
a=rtpmap:9 G722/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20
a=sendrecv
<------------->
--- (14 headers 24 lines) ---
== Using SIP RTP CoS mark 5
== Using SIP VRTP CoS mark 6
Sending to 95.128.224.3 : 5060 (no NAT)
Using INVITE request as basis request - 371707a94140a04968dd100a5ca065a6@95.128.224.3
Found peer 'mcm_i' for '(mobile)' from 95.128.224.3:5060
Found RTP audio format 0
Found RTP audio format 4
Found RTP audio format 3
Found RTP audio format 8
Found RTP audio format 112
Found RTP audio format 5
Found RTP audio format 10
Found RTP audio format 7
Found RTP audio format 18
Found RTP audio format 111
Found RTP audio format 9
Found RTP audio format 101
Found audio description format PCMU for ID 0
Found audio description format G723 for ID 4
Found audio description format GSM for ID 3
Found audio description format PCMA for ID 8
Found audio description format AAL2-G726-32 for ID 112
Found audio description format DVI4 for ID 5
Found audio description format L16 for ID 10
Found audio description format LPC for ID 7
Found audio description format G729 for ID 18
Found audio description format G726-32 for ID 111
Found audio description format G722 for ID 9
Found audio description format telephone-event for ID 101
Capabilities: us - 0xe (gsm|ulaw|alaw), peer - audio=0x19ff (g723|gsm|ulaw|alaw|g726|adpcm|slin|lpc10|g729|g726aal2|g722)/video=0x0 (nothing)/text=0x0 (nothing), combined - 0xe (gsm|ulaw|alaw)
Non-codec capabilities (dtmf): us - 0x1 (telephone-event), peer - 0x1 (telephone-event), combined - 0x1 (telephone-event)
Peer audio RTP is at port 95.128.224.3:13198
Looking for 6691034 in mcm_in (domain 95.167.174.82)
list_route: hop: <sip:(mobile)@95.128.224.3>
<--- Transmitting (NAT) to 95.128.224.3:5060 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 95.128.224.3:5060;branch=z9hG4bK0acbc91b;received=95.128.224.3;rport=5060
From: "(mobile)" <sip:(mobile)@95.128.224.3>;tag=as4983c8a3
To: <sip:6691034@95.167.174.82>
Call-ID: 371707a94140a04968dd100a5ca065a6@95.128.224.3
CSeq: 102 INVITE
Server: Asterisk PBX 1.6.2.17.2
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
Contact: <sip:6691034@95.167.174.82>
Content-Length: 0
<------------>
-- Executing [6691034@mcm_in:1] GotoIfTime("SIP/mcm_i-000000e1", "9:00-21:00|*|*|*?callcenter,s,1") in new stack
-- Goto (callcenter,s,1)
-- Executing [s@callcenter:1] Set("SIP/mcm_i-000000e1", "D1=201106") in new stack
-- Executing [s@callcenter:2] Set("SIP/mcm_i-000000e1", "D3=15") in new stack
-- Executing [s@callcenter:3] Set("SIP/mcm_i-000000e1", "D2=2042") in new stack
-- Executing [s@callcenter:4] Set("SIP/mcm_i-000000e1", "Fo1=(mobile)") in new stack
-- Executing [s@callcenter:5] Set("SIP/mcm_i-000000e1", "Fo3=204231") in new stack
-- Executing [s@callcenter:6] Set("SIP/mcm_i-000000e1", "PATH_FN=/billing/asterisk_wav/input/201106/15/2042-(mobile)-204231") in new stack
-- Executing [s@callcenter:7] MixMonitor("SIP/mcm_i-000000e1", "/billing/asterisk_wav/input/201106/15/2042-(mobile)-204231.wav") in new stack
-- Executing [s@callcenter:8] Dial("SIP/mcm_i-000000e1", "SIP/310,25") in new stack
== Using SIP RTP CoS mark 5
== Using SIP VRTP CoS mark 6
[Jun 15 20:42:31] WARNING[4400]: app_dial.c:1759 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Unknown)
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing [s@callcenter:9] Dial("SIP/mcm_i-000000e1", "SIP/311,25") in new stack
== Using SIP RTP CoS mark 5
== Using SIP VRTP CoS mark 6
[Jun 15 20:42:31] WARNING[4400]: app_dial.c:1759 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Unknown)
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing [s@callcenter:10] Dial("SIP/mcm_i-000000e1", "SIP/301,20") in new stack
== Using SIP RTP CoS mark 5
== Using SIP VRTP CoS mark 6
-- Called 301
== Begin MixMonitor Recording SIP/mcm_i-000000e1
-- SIP/301-000000e2 is ringing
<--- Transmitting (NAT) to 95.128.224.3:5060 --->
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 95.128.224.3:5060;branch=z9hG4bK0acbc91b;received=95.128.224.3;rport=5060
From: "(mobile)" <sip:(mobile)@95.128.224.3>;tag=as4983c8a3
To: <sip:6691034@95.167.174.82>;tag=as5bbf09c6
Call-ID: 371707a94140a04968dd100a5ca065a6@95.128.224.3
CSeq: 102 INVITE
Server: Asterisk PBX 1.6.2.17.2
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
Contact: <sip:6691034@95.167.174.82>
Content-Length: 0
<------------>
Really destroying SIP dialog '136f5eb03c99ca81758938146e01a510@95.128.224.3' Method: OPTIONS
Really destroying SIP dialog '641807250cce4bb707f9daba28a0af57@10.148.0.245' Method: REGISTER
<--- SIP read from UDP:95.128.224.3:5060 --->
INVITE sip:6691034@95.167.174.82 SIP/2.0
Via: SIP/2.0/UDP 95.128.224.3:5060;branch=z9hG4bK7e7cb82a;rport
Max-Forwards: 70
From: "(mobile)" <sip:(mobile)@95.128.224.3>;tag=as264bdc17
To: <sip:6691034@95.167.174.82>
Contact: <sip:(mobile)@95.128.224.3>
Call-ID: 118dda7472b3ec892f87272423be877e@95.128.224.3
CSeq: 102 INVITE
User-Agent: Asterisk PBX 1.6.0.17
Date: Wed, 15 Jun 2011 16:43:18 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 565
v=0
o=root 1679115235 1679115235 IN IP4 95.128.224.3
s=Asterisk PBX 1.6.0.17
c=IN IP4 95.128.224.3
t=0 0
m=audio 12300 RTP/AVP 0 4 3 8 112 5 10 7 18 111 9 101
a=rtpmap:0 PCMU/8000
a=rtpmap:4 G723/8000
a=fmtp:4 annexa=no
a=rtpmap:3 GSM/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:112 AAL2-G726-32/8000
a=rtpmap:5 DVI4/8000
a=rtpmap:10 L16/8000
a=rtpmap:7 LPC/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:111 G726-32/8000
a=rtpmap:9 G722/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20
a=sendrecv
<------------->
--- (14 headers 24 lines) ---
== Using SIP RTP CoS mark 5
== Using SIP VRTP CoS mark 6
Sending to 95.128.224.3 : 5060 (no NAT)
Using INVITE request as basis request - 118dda7472b3ec892f87272423be877e@95.128.224.3
Found peer 'mcm_i' for '(mobile)' from 95.128.224.3:5060
Found RTP audio format 0
Found RTP audio format 4
Found RTP audio format 3
Found RTP audio format 8
Found RTP audio format 112
Found RTP audio format 5
Found RTP audio format 10
Found RTP audio format 7
Found RTP audio format 18
Found RTP audio format 111
Found RTP audio format 9
Found RTP audio format 101
Found audio description format PCMU for ID 0
Found audio description format G723 for ID 4
Found audio description format GSM for ID 3
Found audio description format PCMA for ID 8
Found audio description format AAL2-G726-32 for ID 112
Found audio description format DVI4 for ID 5
ound audio description format L16 for ID 10
Found audio description format LPC for ID 7
Found audio description format G729 for ID 18
Found audio description format G726-32 for ID 111
Found audio description format G722 for ID 9
Found audio description format telephone-event for ID 101
Capabilities: us - 0xe (gsm|ulaw|alaw), peer - audio=0x19ff (g723|gsm|ulaw|alaw|g726|adpcm|slin|lpc10|g729|g726aal2|g722)/video=0x0 (nothing)/text=0x0 (nothing), combined - 0xe (gsm|ulaw|alaw)
Non-codec capabilities (dtmf): us - 0x1 (telephone-event), peer - 0x1 (telephone-event), combined - 0x1 (telephone-event)
Peer audio RTP is at port 95.128.224.3:12300
Looking for 6691034 in mcm_in (domain 95.167.174.82)
list_route: hop: <sip:(mobile)@95.128.224.3>
<--- Transmitting (NAT) to 95.128.224.3:5060 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 95.128.224.3:5060;branch=z9hG4bK7e7cb82a;received=95.128.224.3;rport=5060
From: "(mobile)" <sip:(mobile)@95.128.224.3>;tag=as264bdc17
To: <sip:6691034@95.167.174.82>
Call-ID: 118dda7472b3ec892f87272423be877e@95.128.224.3
CSeq: 102 INVITE
Server: Asterisk PBX 1.6.2.17.2
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
Contact: <sip:6691034@95.167.174.82>
Content-Length: 0
<------------>
-- Executing [6691034@mcm_in:1] GotoIfTime("SIP/mcm_i-000000e3", "9:00-21:00|*|*|*?callcenter,s,1") in new stack
-- Goto (callcenter,s,1)
-- Executing [s@callcenter:1] Set("SIP/mcm_i-000000e3", "D1=201106") in new stack
-- Executing [s@callcenter:2] Set("SIP/mcm_i-000000e3", "D3=15") in new stack
-- Executing [s@callcenter:3] Set("SIP/mcm_i-000000e3", "D2=2042") in new stack
-- Executing [s@callcenter:4] Set("SIP/mcm_i-000000e3", "Fo1=(mobile)") in new stack
-- Executing [s@callcenter:5] Set("SIP/mcm_i-000000e3", "Fo3=204234") in new stack
-- Executing [s@callcenter:6] Set("SIP/mcm_i-000000e3", "PATH_FN=/billing/asterisk_wav/input/201106/15/2042-(mobile)-204234") in new stack
-- Executing [s@callcenter:7] MixMonitor("SIP/mcm_i-000000e3", "/billing/asterisk_wav/input/201106/15/2042-(mobile)-204234.wav") in new stack
-- Executing [s@callcenter:8] Dial("SIP/mcm_i-000000e3", "SIP/310,25") in new stack
== Using SIP RTP CoS mark 5
== Using SIP VRTP CoS mark 6
[Jun 15 20:42:34] WARNING[4402]: app_dial.c:1759 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Unknown)
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing [s@callcenter:9] Dial("SIP/mcm_i-000000e3", "SIP/311,25") in new stack
== Using SIP RTP CoS mark 5
== Using SIP VRTP CoS mark 6
[Jun 15 20:42:34] WARNING[4402]: app_dial.c:1759 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Unknown)
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing [s@callcenter:10] Dial("SIP/mcm_i-000000e3", "SIP/301,20") in new stack
== Using SIP RTP CoS mark 5
== Using SIP VRTP CoS mark 6
[Jun 15 20:42:34] NOTICE[4402]: chan_sip.c:5793 update_call_counter: Call to peer '301' rejected due to usage limit of 1
-- Couldn't call 301
== Everyone is busy/congested at this time (0:0/0/0)
-- Executing [s@callcenter:11] Dial("SIP/mcm_i-000000e3", "SIP/314,20") in new stack
== Using SIP RTP CoS mark 5
== Using SIP VRTP CoS mark 6
-- Called 314
== Begin MixMonitor Recording SIP/mcm_i-000000e3
-- SIP/314-000000e5 is ringing
<--- Transmitting (NAT) to 95.128.224.3:5060 --->
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 95.128.224.3:5060;branch=z9hG4bK7e7cb82a;received=95.128.224.3;rport=5060
From: "(mobile)" <sip:(mobile)@95.128.224.3>;tag=as264bdc17
To: <sip:6691034@95.167.174.82>;tag=as27e2707b
Call-ID: 118dda7472b3ec892f87272423be877e@95.128.224.3
CSeq: 102 INVITE
Server: Asterisk PBX 1.6.2.17.2
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
Contact: <sip:6691034@95.167.174.82>
Content-Length: 0
<------------>
[Jun 15 20:42:37] NOTICE[32177]: chan_sip.c:11639 sip_reregister: -- Re-registration for 6014@95.128.224.32
<--- SIP read from UDP:95.128.224.3:5060 --->
CANCEL sip:6691034@95.167.174.82 SIP/2.0
Via: SIP/2.0/UDP 95.128.224.3:5060;branch=z9hG4bK7e7cb82a;rport
Max-Forwards: 70
From: "(mobile)" <sip:(mobile)@95.128.224.3>;tag=as264bdc17
To: <sip:6691034@95.167.174.82>
Call-ID: 118dda7472b3ec892f87272423be877e@95.128.224.3
CSeq: 102 CANCEL
User-Agent: Asterisk PBX 1.6.0.17
Content-Length: 0
<------------->
--- (9 headers 0 lines) ---
Sending to 95.128.224.3 : 5060 (NAT)
<--- Reliably Transmitting (NAT) to 95.128.224.3:5060 --->
SIP/2.0 487 Request Terminated
Via: SIP/2.0/UDP 95.128.224.3:5060;branch=z9hG4bK7e7cb82a;received=95.128.224.3;rport=5060
From: "(mobile)" <sip:(mobile)@95.128.224.3>;tag=as264bdc17
To: <sip:6691034@95.167.174.82>;tag=as27e2707b
Call-ID: 118dda7472b3ec892f87272423be877e@95.128.224.3
CSeq: 102 INVITE
Server: Asterisk PBX 1.6.2.17.2
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
Content-Length: 0
<------------>
<--- Transmitting (NAT) to 95.128.224.3:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 95.128.224.3:5060;branch=z9hG4bK7e7cb82a;received=95.128.224.3;rport=5060
From: "(mobile)" <sip:(mobile)@95.128.224.3>;tag=as264bdc17
To: <sip:6691034@95.167.174.82>;tag=as27e2707b
Call-ID: 118dda7472b3ec892f87272423be877e@95.128.224.3
CSeq: 102 CANCEL
Server: Asterisk PBX 1.6.2.17.2
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
Content-Length: 0
<------------>
== Spawn extension (callcenter, s, 11) exited non-zero on 'SIP/mcm_i-000000e3'
== End MixMonitor Recording SIP/mcm_i-000000e3
<--- SIP read from UDP:95.128.224.3:5060 --->
ACK sip:6691034@95.167.174.82 SIP/2.0
Via: SIP/2.0/UDP 95.128.224.3:5060;branch=z9hG4bK7e7cb82a;rport
Max-Forwards: 70
From: "(mobile)" <sip:(mobile)@95.128.224.3>;tag=as264bdc17
To: <sip:6691034@95.167.174.82>;tag=as27e2707b
Contact: <sip:(mobile)@95.128.224.3>
Call-ID: 118dda7472b3ec892f87272423be877e@95.128.224.3
CSeq: 102 ACK
User-Agent: Asterisk PBX 1.6.0.17
Content-Length: 0
<------------->