Здравствуйте.
Проблема при звонке с аналоговой АТС LG, подключенной к астериску через плату IPLDK по SIP, на внешний номер через Мегафоновский мультифон (тоже по SIP).
Гудки не идут, вылезает варинг:
-- Executing [89222221243@office:1] Dial("SIP/ipldk-000000db", "SIP/multifon/89222221243,80,tT") in new stack
== Using SIP RTP CoS mark 5
-- Called multifon/89222221243
[Aug 25 18:21:56] WARNING[5985]: chan_sip.c:18480 handle_response_invite: Re-invite to non-existing call leg on other UA. SIP dialog '4a53b5386b0560a7035d4770402b0eeb@multifon.ru'. Giving up.
Причем с обычного SIP-телефона, подключенного к астериску - звонки через мультифон идут. И через SIP-аккаунт IPLDK звонки во вне, например через h323-транк тоже идут. Проблема возникает при их связке.
В sip.conf прописаны:
Аккаунт для Мегафон-мультифон:
[multifon]
type=peer
host=sbc.megafon.ru
username=<name>
secret=<pass>
insecure=invite,port
fromdomain=multifon.ru
fromuser=<name>
disallow=all
allow=ulaw
qualify=yes
nat=no
dtmfmode=inband
context=incom
canreinvite=no
Пользователь для LG IPLDK:
[ipldk]
type=peer
host=dynamic
username=<name>
secret=<pass>
context=office
canreinvite=no
nat=no
allow=ulaw
allow=alaw
qualify=yes
По этой инструкции обычно всё работает.
Адреса в одной сети, могу выложить дебаг: melk2 - SIP аккаунт IPLDK m79221533510 - SIP аккаунт мультифона 89222221243 - набираемый номер с IPLDK
Мне не нравится строчка:
<--- SIP read from UDP:193.201.229.35:5060 --->
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 10.0.0.45:5060;received=195.58.7.132;branch=z9hG4bK0681b28c;rport=5060
From: "asterisk" <sip:asterisk@10.0.0.45:5060>;tag=as605f982b
To: <sip:sbc.megafon.ru>;tag=aprqngfrt-2tb6h500000c6
Call-ID: 1ef3542d2e03ace548edbd9877162ac8@10.0.0.45
CSeq: 102 OPTIONS
Reason: Q.850;cause=55;text="Call Terminated"
Не проходит авторизация на Мультифоне. Почему?
-- Executing [89222221243@office:1] Dial("SIP/melk2-00000080", "SIP/m79221533510/89222221243,80,tT") in new stack
== Using SIP RTP CoS mark 5
Audio is at 10.0.0.45 port 13332
Adding codec 0x4 (ulaw) to SDP
Reliably Transmitting (no NAT) to 193.201.229.35:5060:
INVITE sip:89222221243@sbc.megafon.ru SIP/2.0
Via: SIP/2.0/UDP 10.0.0.45:5060;branch=z9hG4bK69303f55;rport
Max-Forwards: 70
From: "��������� �" <sip:79221533510@multifon.ru>;tag=as7bb67aea
To: <sip:89222221243@sbc.megafon.ru>
Contact: <sip:79221533510@10.0.0.45>
Call-ID: 73aaf0dd4f3c20fe75c564f654fb53b7@multifon.ru
CSeq: 102 INVITE
User-Agent: Asterisk PBX 1.6.2.20
Date: Fri, 26 Aug 2011 08:37:27 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 200
v=0
o=root 577024726 577024726 IN IP4 10.0.0.45
s=Asterisk PBX 1.6.2.20
c=IN IP4 10.0.0.45
t=0 0
m=audio 13332 RTP/AVP 0
a=rtpmap:0 PCMU/8000
a=silenceSupp:off - - - -
a=ptime:20
a=sendrecv
---
-- Called m79221533510/89222221243
<--- SIP read from UDP:193.201.229.35:5060 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 10.0.0.45:5060;received=195.58.7.132;branch=z9hG4bK69303f55;rport=5060
From: "��������� �" <sip:79221533510@multifon.ru>;tag=as7bb67aea
To: <sip:89222221243@sbc.megafon.ru>
Call-ID: 73aaf0dd4f3c20fe75c564f654fb53b7@multifon.ru
CSeq: 102 INVITE
<------------->
--- (6 headers 0 lines) ---
Reliably Transmitting (NAT) to 193.201.229.35:5060:
OPTIONS sip:sbc.megafon.ru SIP/2.0
Via: SIP/2.0/UDP 10.0.0.45:5060;branch=z9hG4bK0681b28c;rport
Max-Forwards: 70
From: "asterisk" <sip:asterisk@10.0.0.45>;tag=as605f982b
To: <sip:sbc.megafon.ru>
Contact: <sip:asterisk@10.0.0.45>
Call-ID: 1ef3542d2e03ace548edbd9877162ac8@10.0.0.45
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX 1.6.2.20
Date: Fri, 26 Aug 2011 08:37:31 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
Content-Length: 0
---
<--- SIP read from UDP:193.201.229.35:5060 --->
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 10.0.0.45:5060;received=195.58.7.132;branch=z9hG4bK0681b28c;rport=5060
From: "asterisk" <sip:asterisk@10.0.0.45:5060>;tag=as605f982b
To: <sip:sbc.megafon.ru>;tag=aprqngfrt-2tb6h500000c6
Call-ID: 1ef3542d2e03ace548edbd9877162ac8@10.0.0.45
CSeq: 102 OPTIONS
Reason: Q.850;cause=55;text="Call Terminated"
<------------->
--- (7 headers 0 lines) ---
Really destroying SIP dialog '1ef3542d2e03ace548edbd9877162ac8@10.0.0.45' Method: OPTIONS
Reliably Transmitting (NAT) to 193.201.229.35:5060:
OPTIONS sip:sbc.megafon.ru SIP/2.0
Via: SIP/2.0/UDP 10.0.0.45:5060;branch=z9hG4bK68415c65;rport
Max-Forwards: 70
From: "asterisk" <sip:asterisk@10.0.0.45>;tag=as63172b11
To: <sip:sbc.megafon.ru>
Contact: <sip:asterisk@10.0.0.45>
Call-ID: 23eddab4311342f01493bc466d7f96d1@10.0.0.45
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX 1.6.2.20
Date: Fri, 26 Aug 2011 08:37:31 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
Content-Length: 0
---
Reliably Transmitting (no NAT) to 193.201.229.35:5060:
OPTIONS sip:sbc.megafon.ru SIP/2.0
Via: SIP/2.0/UDP 10.0.0.45:5060;branch=z9hG4bK45f39752;rport
Max-Forwards: 70
From: "asterisk" <sip:asterisk@10.0.0.45>;tag=as2d9bbce8
To: <sip:sbc.megafon.ru>
Contact: <sip:asterisk@10.0.0.45>
Call-ID: 5b4994192c1131bb45effc2f5802125b@10.0.0.45
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX 1.6.2.20
Date: Fri, 26 Aug 2011 08:37:31 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
Content-Length: 0
---
<--- SIP read from UDP:193.201.229.35:5060 --->
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 10.0.0.45:5060;received=195.58.7.132;branch=z9hG4bK68415c65;rport=5060
From: "asterisk" <sip:asterisk@10.0.0.45:5060>;tag=as63172b11
To: <sip:sbc.megafon.ru>;tag=aprqngfrt-8qed4s30000c6
Call-ID: 23eddab4311342f01493bc466d7f96d1@10.0.0.45
CSeq: 102 OPTIONS
Reason: Q.850;cause=55;text="Call Terminated"
<------------->
--- (7 headers 0 lines) ---
Really destroying SIP dialog '23eddab4311342f01493bc466d7f96d1@10.0.0.45' Method: OPTIONS
<--- SIP read from UDP:193.201.229.35:5060 --->
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 10.0.0.45:5060;received=195.58.7.132;branch=z9hG4bK45f39752;rport=5060
From: "asterisk" <sip:asterisk@10.0.0.45:5060>;tag=as2d9bbce8
To: <sip:sbc.megafon.ru>;tag=aprqngfrt-eqqf0f20000c6
Call-ID: 5b4994192c1131bb45effc2f5802125b@10.0.0.45
CSeq: 102 OPTIONS
Reason: Q.850;cause=55;text="Call Terminated"
<------------->
--- (7 headers 0 lines) ---
Really destroying SIP dialog '5b4994192c1131bb45effc2f5802125b@10.0.0.45' Method: OPTIONS
Reliably Transmitting (NAT) to 193.201.229.35:5060:
OPTIONS sip:sbc.megafon.ru SIP/2.0
Via: SIP/2.0/UDP 10.0.0.45:5060;branch=z9hG4bK03abf6fe;rport
Max-Forwards: 70
From: "asterisk" <sip:asterisk@10.0.0.45>;tag=as2de46646
To: <sip:sbc.megafon.ru>
Contact: <sip:asterisk@10.0.0.45>
Call-ID: 10f0e03301ec1918365a681033dced3f@10.0.0.45
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX 1.6.2.20
Date: Fri, 26 Aug 2011 08:37:31 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
Content-Length: 0
---
<--- SIP read from UDP:193.201.229.35:5060 --->
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 10.0.0.45:5060;received=195.58.7.132;branch=z9hG4bK03abf6fe;rport=5060
From: "asterisk" <sip:asterisk@10.0.0.45:5060>;tag=as2de46646
To: <sip:sbc.megafon.ru>;tag=aprqngfrt-3io41620000c6
Call-ID: 10f0e03301ec1918365a681033dced3f@10.0.0.45
CSeq: 102 OPTIONS
Reason: Q.850;cause=55;text="Call Terminated"
<------------->
--- (7 headers 0 lines) ---
Really destroying SIP dialog '10f0e03301ec1918365a681033dced3f@10.0.0.45' Method: OPTIONS
[2011-08-26 14:37:51] NOTICE[1572]: chan_sip.c:12063 sip_reregister: -- Re-registration for 79221533510@multifon.ru@sbc.megafon.ru
> doing dnsmgr_lookup for 'sbc.megafon.ru'
REGISTER 11 headers, 0 lines
Reliably Transmitting (no NAT) to 193.201.229.35:5060:
REGISTER sip:multifon.ru SIP/2.0
Via: SIP/2.0/UDP 10.0.0.45:5060;branch=z9hG4bK61214afa;rport
Max-Forwards: 70
From: <sip:79221533510@multifon.ru>;tag=as58b68d46
To: <sip:79221533510@multifon.ru>
Call-ID: 4f8d814668cee71b2686de294cf867bd@10.0.0.45
CSeq: 216 REGISTER
User-Agent: Asterisk PBX 1.6.2.20
Authorization: Digest username="79221533510", realm="BREDBAND", algorithm=MD5, uri="sip:multifon.ru", nonce="MTMxNDMzNjE4OTo+n64FgAy9zaTA38qgdJue", response="eb973b6e08b14e211c4c8d3490825ea7", opaque="MTMxNDMzNjE4OTo+n64FgAy9zaTA38qgdJue", qop=auth, cnonce="377075bb", nc=00000071
Expires: 120
Contact: <sip:79221533510@10.0.0.45>
Content-Length: 0
---
<--- SIP read from UDP:193.201.229.35:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.0.0.45:5060;received=195.58.7.132;branch=z9hG4bK61214afa;rport=5060
From: <sip:79221533510@multifon.ru>;tag=as58b68d46
To: <sip:79221533510@multifon.ru>;tag=41E9324631353641B8C0D700
Call-ID: 4f8d814668cee71b2686de294cf867bd@10.0.0.45
CSeq: 216 REGISTER
Contact: <sip:79221533510@10.0.0.45:5060>;expires=180
Content-Length: 0
Service-Route: <sip:79221533510@193.201.229.35:5060;transport=udp;lr>
<------------->
--- (9 headers 0 lines) ---
Scheduling destruction of SIP dialog '4f8d814668cee71b2686de294cf867bd@10.0.0.45' in 32000 ms (Method: REGISTER)
[2011-08-26 14:37:51] NOTICE[1572]: chan_sip.c:18868 handle_response_register: Outbound Registration: Expiry for sbc.megafon.ru is 120 sec (Scheduling reregistration in 105 s)
[2011-08-26 14:37:51] NOTICE[1572]: chan_sip.c:12063 sip_reregister: -- Re-registration for 79221533511@multifon.ru@sbc.megafon.ru
> doing dnsmgr_lookup for 'sbc.megafon.ru'
REGISTER 11 headers, 0 lines
Reliably Transmitting (no NAT) to 193.201.229.35:5060:
REGISTER sip:multifon.ru SIP/2.0
Via: SIP/2.0/UDP 10.0.0.45:5060;branch=z9hG4bK70adea37;rport
Max-Forwards: 70
From: <sip:79221533511@multifon.ru>;tag=as486dc994
To: <sip:79221533511@multifon.ru>
Call-ID: 71ca018175d84e415c6a6e6a69db1696@10.0.0.45
CSeq: 216 REGISTER
User-Agent: Asterisk PBX 1.6.2.20
Authorization: Digest username="79221533511", realm="BREDBAND", algorithm=MD5, uri="sip:multifon.ru", nonce="MTMxNDMzNjE4OTo+n64FgAy9zaTA38qgdJue", response="03c20232037f8549ec5e5487f37a4b4b", opaque="MTMxNDMzNjE4OTo+n64FgAy9zaTA38qgdJue", qop=auth, cnonce="5f455dfc", nc=00000071
Expires: 120
Contact: <sip:79221533511@10.0.0.45>
Content-Length: 0
---
<--- SIP read from UDP:193.201.229.35:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.0.0.45:5060;received=195.58.7.132;branch=z9hG4bK70adea37;rport=5060
From: <sip:79221533511@multifon.ru>;tag=as486dc994
To: <sip:79221533511@multifon.ru>;tag=453D324631353641C4C0D700
Call-ID: 71ca018175d84e415c6a6e6a69db1696@10.0.0.45
CSeq: 216 REGISTER
Contact: <sip:79221533511@10.0.0.45:5060>;expires=180
Content-Length: 0
Service-Route: <sip:79221533511@193.201.229.35:5060;transport=udp;lr>
<------------->
--- (9 headers 0 lines) ---
Scheduling destruction of SIP dialog '71ca018175d84e415c6a6e6a69db1696@10.0.0.45' in 32000 ms (Method: REGISTER)
[2011-08-26 14:37:51] NOTICE[1572]: chan_sip.c:18868 handle_response_register: Outbound Registration: Expiry for sbc.megafon.ru is 120 sec (Scheduling reregistration in 105 s)
[2011-08-26 14:37:52] NOTICE[1572]: chan_sip.c:12063 sip_reregister: -- Re-registration for 79221533512@multifon.ru@sbc.megafon.ru
> doing dnsmgr_lookup for 'sbc.megafon.ru'
REGISTER 11 headers, 0 lines
Reliably Transmitting (no NAT) to 193.201.229.35:5060:
REGISTER sip:multifon.ru SIP/2.0
Via: SIP/2.0/UDP 10.0.0.45:5060;branch=z9hG4bK704aa659;rport
Max-Forwards: 70
From: <sip:79221533512@multifon.ru>;tag=as38bcb5ef
To: <sip:79221533512@multifon.ru>
Call-ID: 063554943ecc102835d8de745b4fbd83@10.0.0.45
CSeq: 216 REGISTER
User-Agent: Asterisk PBX 1.6.2.20
Authorization: Digest username="79221533512", realm="BREDBAND", algorithm=MD5, uri="sip:multifon.ru", nonce="MTMxNDMzNjE4OTo+n64FgAy9zaTA38qgdJue", response="bda18fd85c70414239fec2d8e04889de", opaque="MTMxNDMzNjE4OTo+n64FgAy9zaTA38qgdJue", qop=auth, cnonce="3966ad3a", nc=00000071
Expires: 120
Contact: <sip:79221533512@10.0.0.45>
Content-Length: 0
---
<--- SIP read from UDP:193.201.229.35:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.0.0.45:5060;received=195.58.7.132;branch=z9hG4bK704aa659;rport=5060
From: <sip:79221533512@multifon.ru>;tag=as38bcb5ef
To: <sip:79221533512@multifon.ru>;tag=A97B32463135364135C1D700
Call-ID: 063554943ecc102835d8de745b4fbd83@10.0.0.45
CSeq: 216 REGISTER
Contact: <sip:79221533512@10.0.0.45:5060>;expires=176
Content-Length: 0
Service-Route: <sip:79221533512@193.201.229.35:5060;transport=udp;lr>
<------------->
--- (9 headers 0 lines) ---
Scheduling destruction of SIP dialog '063554943ecc102835d8de745b4fbd83@10.0.0.45' in 32000 ms (Method: REGISTER)
[2011-08-26 14:37:53] NOTICE[1572]: chan_sip.c:18868 handle_response_register: Outbound Registration: Expiry for sbc.megafon.ru is 120 sec (Scheduling reregistration in 105 s)
[2011-08-26 14:37:54] NOTICE[1572]: chan_sip.c:12063 sip_reregister: -- Re-registration for 79221533514@multifon.ru@sbc.megafon.ru
> doing dnsmgr_lookup for 'sbc.megafon.ru'
REGISTER 11 headers, 0 lines
Reliably Transmitting (no NAT) to 193.201.229.35:5060:
REGISTER sip:multifon.ru SIP/2.0
Via: SIP/2.0/UDP 10.0.0.45:5060;branch=z9hG4bK4926f4c7;rport
Max-Forwards: 70
From: <sip:79221533514@multifon.ru>;tag=as1addf625
To: <sip:79221533514@multifon.ru>
Call-ID: 16139d1578737dad45bd9ac67412c71e@10.0.0.45
CSeq: 216 REGISTER
User-Agent: Asterisk PBX 1.6.2.20
Authorization: Digest username="79221533514", realm="BREDBAND", algorithm=MD5, uri="sip:multifon.ru", nonce="MTMxNDMzNjE4OTo+n64FgAy9zaTA38qgdJue", response="7af43a4db0713bbaa88a689e380e63e1", opaque="MTMxNDMzNjE4OTo+n64FgAy9zaTA38qgdJue", qop=auth, cnonce="18474499", nc=00000071
Expires: 120
Contact: <sip:79221533514@10.0.0.45>
Content-Length: 0
---
<--- SIP read from UDP:193.201.229.35:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.0.0.45:5060;received=195.58.7.132;branch=z9hG4bK4926f4c7;rport=5060
From: <sip:79221533514@multifon.ru>;tag=as1addf625
To: <sip:79221533514@multifon.ru>;tag=AF48324631353641C2C1D700
Call-ID: 16139d1578737dad45bd9ac67412c71e@10.0.0.45
CSeq: 216 REGISTER
Contact: <sip:79221533514@10.0.0.45:5060>;expires=180
Content-Length: 0
Service-Route: <sip:79221533514@193.201.229.35:5060;transport=udp;lr>
<------------->
--- (9 headers 0 lines) ---
Scheduling destruction of SIP dialog '16139d1578737dad45bd9ac67412c71e@10.0.0.45' in 32000 ms (Method: REGISTER)
[2011-08-26 14:37:54] NOTICE[1572]: chan_sip.c:18868 handle_response_register: Outbound Registration: Expiry for sbc.megafon.ru is 120 sec (Scheduling reregistration in 105 s)
<--- SIP read from UDP:193.201.229.35:5060 --->
SIP/2.0 408 Request Timeout
Via: SIP/2.0/UDP 10.0.0.45:5060;received=195.58.7.132;branch=z9hG4bK69303f55;rport=5060
From: "��������� �" <sip:79221533510@multifon.ru>;tag=as7bb67aea
To: <sip:89222221243@sbc.megafon.ru>;tag=aprqngfrt-acb1eh30000c6
Call-ID: 73aaf0dd4f3c20fe75c564f654fb53b7@multifon.ru
CSeq: 102 INVITE
Reason: Q.850;cause=18;text="Call Terminated"
<------------->
--- (7 headers 0 lines) ---
[2011-08-26 14:37:59] WARNING[1572]: chan_sip.c:18480 handle_response_invite: Re-invite to non-existing call leg on other UA. SIP dialog '73aaf0dd4f3c20fe75c564f654fb53b7@multifon.ru'. Giving up.
Transmitting (no NAT) to 193.201.229.35:5060:
ACK sip:89222221243@sbc.megafon.ru SIP/2.0
Via: SIP/2.0/UDP 10.0.0.45:5060;branch=z9hG4bK69303f55;rport
Max-Forwards: 70
From: "��������� �" <sip:79221533510@multifon.ru>;tag=as7bb67aea
To: <sip:89222221243@sbc.megafon.ru>;tag=aprqngfrt-acb1eh30000c6
Contact: <sip:79221533510@10.0.0.45>
Call-ID: 73aaf0dd4f3c20fe75c564f654fb53b7@multifon.ru
CSeq: 102 ACK
User-Agent: Asterisk PBX 1.6.2.20
Content-Length: 0
Blockquote
Blockquote> BlockquoteBlockquote
Blockquote
И? ну все мультифон номера зарегистрированы.
phone*CLI> sip show peers like melk2
Name/username Host Dyn Nat ACL Port Status
melk2/melk2 10.0.0.42 D 5060 OK (16 ms)
1 sip peers [Monitored: 1 online, 0 offline Unmonitored: 0 online, 0 offline]
Причем тут инструкции, перепробовали уже все инструкции, не получается, если вы в этом разбираетесь, подскажите что не правильно у меня настроено, где то что то не дописано видимо, потому что с обычного софтофона звонки проходят нормально, а с IPLDK не хочет :(
Задан: 2011-08-29 13:09:18 +0400
Просмотрен: 6,270 раз
Обновлен: Aug 31 '11
Проект компании "АТС Дизайн"
Asterisk® и Digium® являются зарегистрированными торговыми марками компании
Digium, Inc., США.
IP АТС Asterisk распространяется под лицензией
GNU GPL.