[sip.conf, general] externip = 188.2.31.18
register => 2076@sipprovider.ru:5665:Pa$$w0rd:2076@sipprovider.ru:5665/74992356035
[SIP_TRUNK]
type=friend
host=sipprovider.ru
port=5665
nat=force_rport,comedia
qualify=yes
canreinvite=no
insecure=port,invite
context=incoming-2076
callerid=2076 <74992356035>
defaultuser=74992356035
username = 2076
secret = Pa$$w0rd
insecure=invite,port
fromuser = 2076
outboundproxy=sipprovider.ru
fromdomain=sipprovider.ru
disallow=all
allow=alaw,ulaw
[Показать] Спойлер: Процесс регистрации:
15:19:05.308165 IP (tos 0x0, ttl 64, id 64448, offset 0, flags [none], proto UDP (17), length 594)
10.0.0.100.sip > sipprovider.ru.5665: SIP, length: 566
OPTIONS sip:sipprovider.ru;user=phone SIP/2.0
Via: SIP/2.0/UDP 10.0.0.100:5060;branch=z9hG4bK0a514f62;rport
Max-Forwards: 70
From: "asterisk" <sip:2076@10.0.0.100>;tag=as1cc6193b
To: <sip:sipprovider.ru;user=phone>
Contact: <sip:2076@10.0.0.100:5060>
Call-ID: 7a3af34f130a1df54bb48c41175d5b13@10.0.0.100:5060
CSeq: 102 OPTIONS
User-Agent: Cisco Unified IP Phone CP-7911G
Date: Thu, 12 Jul 2018 12:19:05 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0
15:19:05.316112 IP (tos 0x0, ttl 63, id 33230, offset 0, flags [none], proto UDP (17), length 754)
sipprovider.ru.5665 > 10.0.0.100.sip: SIP, length: 726
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.0.0.100:5060;branch=z9hG4bK0a514f62;rport=5060;received=188.2.31.18
From: "asterisk" <sip:2076@10.0.0.100>;tag=as1cc6193b
To: <sip:sipprovider.ru;user=phone>;tag=9Dr44S46g6aHS
Call-ID: 7a3af34f130a1df54bb48c41175d5b13@10.0.0.100:5060
CSeq: 102 OPTIONS
Contact: <sip:sipprovider.ru:5665>
User-Agent: FreeSWITCH-mod_sofia/1.2.23~64bit
Accept: application/sdp
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, path, replaces
Allow-Events: talk, hold, conference, presence, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, re$
Content-Length: 0
15:19:05.407272 IP (tos 0x0, ttl 64, id 64451, offset 0, flags [none], proto UDP (17), length 453)
10.0.0.100.sip > sipprovider.ru.5665: SIP, length: 425
REGISTER sip:sipprovider.ru:5665 SIP/2.0
Via: SIP/2.0/UDP 10.0.0.100:5060;branch=z9hG4bK293b38bb
Max-Forwards: 70
From: <sip:2076@sipprovider.ru>;tag=as211cc208
To: <sip:2076@sipprovider.ru>
Call-ID: 546fed662a2253365f527bac0db912e2@127.0.1.1
CSeq: 102 REGISTER
Supported: replaces, timer
User-Agent: Cisco Unified IP Phone CP-7911G
Expires: 180
Contact: <sip:74992356035@10.0.0.100:5060>
Content-Length: 0
15:19:05.414602 IP (tos 0x0, ttl 63, id 33231, offset 0, flags [none], proto UDP (17), length 639)
sipprovider.ru.5665 > 10.0.0.100.sip: SIP, length: 611
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 10.0.0.100:5060;branch=z9hG4bK293b38bb;received=188.2.31.18
From: <sip:2076@sipprovider.ru>;tag=as211cc208
To: <sip:2076@sipprovider.ru>;tag=aQHX6mNaeF13m
Call-ID: 546fed662a2253365f527bac0db912e2@127.0.1.1
CSeq: 102 REGISTER
User-Agent: FreeSWITCH-mod_sofia/1.2.23~64bit
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, path, replaces
WWW-Authenticate: Digest realm="sipprovider.ru", nonce="f5a6bd6d-930a-485f-bd54-26b070de4b75", algorithm=MD5, qop="auth"
Content-Length: 0
15:19:05.414765 IP (tos 0x0, ttl 64, id 64453, offset 0, flags [none], proto UDP (17), length 690)
10.0.0.100.sip > sipprovider.ru.5665: SIP, length: 662
REGISTER sip:sipprovider.ru SIP/2.0
Via: SIP/2.0/UDP 10.0.0.100:5060;branch=z9hG4bK16c774de
Max-Forwards: 70
From: <sip:2076@sipprovider.ru>;tag=as211cc208
To: <sip:2076@sipprovider.ru>
Call-ID: 546fed662a2253365f527bac0db912e2@127.0.1.1
CSeq: 103 REGISTER
Supported: replaces, timer
User-Agent: Cisco Unified IP Phone CP-7911G
Authorization: Digest username="2076", realm="sipprovider.ru", algorithm=MD5, uri="sip:sipprovider.ru:5665", nonce="f5a6bd6d-930a-485f-bd54-26b070de$
Expires: 180
Contact: <sip:74992356035@10.0.0.100:5060>
Content-Length: 0
15:19:05.425673 IP (tos 0x0, ttl 63, id 33232, offset 0, flags [none], proto UDP (17), length 602)
sipprovider.ru.5665 > 10.0.0.100.sip: SIP, length: 574
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.0.0.100:5060;branch=z9hG4bK16c774de;received=188.2.31.18
From: <sip:2076@sipprovider.ru>;tag=as211cc208
To: <sip:2076@sipprovider.ru>;tag=B0ap8F6DBrQpg
Call-ID: 546fed662a2253365f527bac0db912e2@127.0.1.1
CSeq: 103 REGISTER
Contact: <sip:74992356035@10.0.0.100:5060>;expires=180
Date: Thu, 12 Jul 2018 12:19:08 GMT
User-Agent: FreeSWITCH-mod_sofia/1.2.23~64bit
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, path, replaces
Content-Length: 0
15:19:05.464750 IP (tos 0x0, ttl 63, id 33233, offset 0, flags [none], proto UDP (17), length 967)
sipprovider.ru.5665 > 10.0.0.100.sip: SIP, length: 939
NOTIFY sip:74992356035@10.0.0.100:5060 SIP/2.0
Via: SIP/2.0/UDP sipprovider.ru:5665;rport;branch=z9hG4bK9jceBcBZF4B1g
Route: <sip:74992356035@188.2.31.18:5060>
Max-Forwards: 70
From: <sip:2076@sipprovider.ru>;tag=c93eaBQH80D9B
To: <sip:2076@sipprovider.ru>
Call-ID: 9e527f85-0070-1237-3580-001b21a89608
CSeq: 125362910 NOTIFY
Contact: <sip:mod_sofia@sipprovider.ru:5665>
User-Agent: FreeSWITCH-mod_sofia/1.2.23~64bit
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, path, replaces
Event: message-summary
Allow-Events: talk, hold, conference, presence, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, re$
Subscription-State: terminated;reason=noresource
Content-Type: application/simple-message-summary
Content-Length: 66
Messages-Waiting: no
Message-Account: sip:2076@sipprovider.ru
15:19:05.464924 IP (tos 0x0, ttl 64, id 64456, offset 0, flags [none], proto UDP (17), length 502)
10.0.0.100.sip > sipprovider.ru.5665: SIP, length: 474
SIP/2.0 489 Bad event
Via: SIP/2.0/UDP sipprovider.ru:5665;branch=z9hG4bK9jceBcBZF4B1g;received=sipprovider.ru;rport=5665
From: <sip:2076@sipprovider.ru>;tag=c93eaBQH80D9B
To: <sip:2076@sipprovider.ru>;tag=as241f87ce
Call-ID: 9e527f85-0070-1237-3580-001b21a89608
CSeq: 125362910 NOTIFY
Server: Cisco Unified IP Phone CP-7911G
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0
10.0.0.100.sip > sipprovider.ru.5665: SIP, length: 566
OPTIONS sip:sipprovider.ru;user=phone SIP/2.0
Via: SIP/2.0/UDP 10.0.0.100:5060;branch=z9hG4bK0a514f62;rport
Max-Forwards: 70
From: "asterisk" <sip:2076@10.0.0.100>;tag=as1cc6193b
To: <sip:sipprovider.ru;user=phone>
Contact: <sip:2076@10.0.0.100:5060>
Call-ID: 7a3af34f130a1df54bb48c41175d5b13@10.0.0.100:5060
CSeq: 102 OPTIONS
User-Agent: Cisco Unified IP Phone CP-7911G
Date: Thu, 12 Jul 2018 12:19:05 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0
15:19:05.316112 IP (tos 0x0, ttl 63, id 33230, offset 0, flags [none], proto UDP (17), length 754)
sipprovider.ru.5665 > 10.0.0.100.sip: SIP, length: 726
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.0.0.100:5060;branch=z9hG4bK0a514f62;rport=5060;received=188.2.31.18
From: "asterisk" <sip:2076@10.0.0.100>;tag=as1cc6193b
To: <sip:sipprovider.ru;user=phone>;tag=9Dr44S46g6aHS
Call-ID: 7a3af34f130a1df54bb48c41175d5b13@10.0.0.100:5060
CSeq: 102 OPTIONS
Contact: <sip:sipprovider.ru:5665>
User-Agent: FreeSWITCH-mod_sofia/1.2.23~64bit
Accept: application/sdp
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, path, replaces
Allow-Events: talk, hold, conference, presence, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, re$
Content-Length: 0
15:19:05.407272 IP (tos 0x0, ttl 64, id 64451, offset 0, flags [none], proto UDP (17), length 453)
10.0.0.100.sip > sipprovider.ru.5665: SIP, length: 425
REGISTER sip:sipprovider.ru:5665 SIP/2.0
Via: SIP/2.0/UDP 10.0.0.100:5060;branch=z9hG4bK293b38bb
Max-Forwards: 70
From: <sip:2076@sipprovider.ru>;tag=as211cc208
To: <sip:2076@sipprovider.ru>
Call-ID: 546fed662a2253365f527bac0db912e2@127.0.1.1
CSeq: 102 REGISTER
Supported: replaces, timer
User-Agent: Cisco Unified IP Phone CP-7911G
Expires: 180
Contact: <sip:74992356035@10.0.0.100:5060>
Content-Length: 0
15:19:05.414602 IP (tos 0x0, ttl 63, id 33231, offset 0, flags [none], proto UDP (17), length 639)
sipprovider.ru.5665 > 10.0.0.100.sip: SIP, length: 611
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 10.0.0.100:5060;branch=z9hG4bK293b38bb;received=188.2.31.18
From: <sip:2076@sipprovider.ru>;tag=as211cc208
To: <sip:2076@sipprovider.ru>;tag=aQHX6mNaeF13m
Call-ID: 546fed662a2253365f527bac0db912e2@127.0.1.1
CSeq: 102 REGISTER
User-Agent: FreeSWITCH-mod_sofia/1.2.23~64bit
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, path, replaces
WWW-Authenticate: Digest realm="sipprovider.ru", nonce="f5a6bd6d-930a-485f-bd54-26b070de4b75", algorithm=MD5, qop="auth"
Content-Length: 0
15:19:05.414765 IP (tos 0x0, ttl 64, id 64453, offset 0, flags [none], proto UDP (17), length 690)
10.0.0.100.sip > sipprovider.ru.5665: SIP, length: 662
REGISTER sip:sipprovider.ru SIP/2.0
Via: SIP/2.0/UDP 10.0.0.100:5060;branch=z9hG4bK16c774de
Max-Forwards: 70
From: <sip:2076@sipprovider.ru>;tag=as211cc208
To: <sip:2076@sipprovider.ru>
Call-ID: 546fed662a2253365f527bac0db912e2@127.0.1.1
CSeq: 103 REGISTER
Supported: replaces, timer
User-Agent: Cisco Unified IP Phone CP-7911G
Authorization: Digest username="2076", realm="sipprovider.ru", algorithm=MD5, uri="sip:sipprovider.ru:5665", nonce="f5a6bd6d-930a-485f-bd54-26b070de$
Expires: 180
Contact: <sip:74992356035@10.0.0.100:5060>
Content-Length: 0
15:19:05.425673 IP (tos 0x0, ttl 63, id 33232, offset 0, flags [none], proto UDP (17), length 602)
sipprovider.ru.5665 > 10.0.0.100.sip: SIP, length: 574
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.0.0.100:5060;branch=z9hG4bK16c774de;received=188.2.31.18
From: <sip:2076@sipprovider.ru>;tag=as211cc208
To: <sip:2076@sipprovider.ru>;tag=B0ap8F6DBrQpg
Call-ID: 546fed662a2253365f527bac0db912e2@127.0.1.1
CSeq: 103 REGISTER
Contact: <sip:74992356035@10.0.0.100:5060>;expires=180
Date: Thu, 12 Jul 2018 12:19:08 GMT
User-Agent: FreeSWITCH-mod_sofia/1.2.23~64bit
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, path, replaces
Content-Length: 0
15:19:05.464750 IP (tos 0x0, ttl 63, id 33233, offset 0, flags [none], proto UDP (17), length 967)
sipprovider.ru.5665 > 10.0.0.100.sip: SIP, length: 939
NOTIFY sip:74992356035@10.0.0.100:5060 SIP/2.0
Via: SIP/2.0/UDP sipprovider.ru:5665;rport;branch=z9hG4bK9jceBcBZF4B1g
Route: <sip:74992356035@188.2.31.18:5060>
Max-Forwards: 70
From: <sip:2076@sipprovider.ru>;tag=c93eaBQH80D9B
To: <sip:2076@sipprovider.ru>
Call-ID: 9e527f85-0070-1237-3580-001b21a89608
CSeq: 125362910 NOTIFY
Contact: <sip:mod_sofia@sipprovider.ru:5665>
User-Agent: FreeSWITCH-mod_sofia/1.2.23~64bit
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, path, replaces
Event: message-summary
Allow-Events: talk, hold, conference, presence, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, re$
Subscription-State: terminated;reason=noresource
Content-Type: application/simple-message-summary
Content-Length: 66
Messages-Waiting: no
Message-Account: sip:2076@sipprovider.ru
15:19:05.464924 IP (tos 0x0, ttl 64, id 64456, offset 0, flags [none], proto UDP (17), length 502)
10.0.0.100.sip > sipprovider.ru.5665: SIP, length: 474
SIP/2.0 489 Bad event
Via: SIP/2.0/UDP sipprovider.ru:5665;branch=z9hG4bK9jceBcBZF4B1g;received=sipprovider.ru;rport=5665
From: <sip:2076@sipprovider.ru>;tag=c93eaBQH80D9B
To: <sip:2076@sipprovider.ru>;tag=as241f87ce
Call-ID: 9e527f85-0070-1237-3580-001b21a89608
CSeq: 125362910 NOTIFY
Server: Cisco Unified IP Phone CP-7911G
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0
[Показать] Спойлер: Ошибка при исходящем:
15:48:46.744218 IP 10.0.0.101.51999 > 10.0.0.100.sip: SIP: INVITE sip:89253404565@10.0.0.100 SIP/2.0
15:48:46.744405 IP 10.0.0.100.sip > 10.0.0.101.sip: SIP: SIP/2.0 401 Unauthorized
15:48:46.811488 IP 10.0.0.101.51061 > 10.0.0.100.sip: SIP: ACK sip:89253404565@10.0.0.100 SIP/2.0
15:48:46.868116 IP 10.0.0.101.51999 > 10.0.0.100.sip: SIP: INVITE sip:89253404565@10.0.0.100 SIP/2.0
15:48:46.869357 IP 10.0.0.100.sip > 10.0.0.101.sip: SIP: SIP/2.0 100 Trying
15:48:46.884446 IP 10.0.0.100.sip > sipprovider.ru.5665: SIP: INVITE sip:89253404565@sipprovider.ru:5665;user=phone SIP/2.0
15:48:46.892098 IP sipprovider.ru.5665 > 10.0.0.100.sip: SIP: SIP/2.0 100 Trying
15:48:46.892973 IP sipprovider.ru.5665 > 10.0.0.100.sip: SIP: SIP/2.0 407 Proxy Authentication Required
15:48:46.893118 IP 10.0.0.100.sip > sipprovider.ru.5665: SIP: ACK sip:89253404565@sipprovider.ru:5665;user=phone SIP/2.0
15:48:46.893204 IP 10.0.0.100.sip > sipprovider.ru.5665: SIP: INVITE sip:89253404565@sipprovider.ru:5665;user=phone SIP/2.0
15:48:46.900982 IP sipprovider.ru.5665 > 10.0.0.100.sip: SIP: SIP/2.0 100 Trying
15:48:46.914383 IP sipprovider.ru.5665 > 10.0.0.100.sip: SIP: SIP/2.0 403 Forbidden
15:48:46.914511 IP 10.0.0.100.sip > sipprovider.ru.5665: SIP: ACK sip:89253404565@sipprovider.ru:5665;user=phone SIP/2.0
15:48:46.917109 IP 10.0.0.100.sip > 10.0.0.101.sip: SIP: SIP/2.0 403 Forbidden
15:48:46.998532 IP 10.0.0.101.51062 > 10.0.0.100.sip: SIP: ACK sip:89253404565@10.0.0.100 SIP/2.0
15:48:46.744405 IP 10.0.0.100.sip > 10.0.0.101.sip: SIP: SIP/2.0 401 Unauthorized
15:48:46.811488 IP 10.0.0.101.51061 > 10.0.0.100.sip: SIP: ACK sip:89253404565@10.0.0.100 SIP/2.0
15:48:46.868116 IP 10.0.0.101.51999 > 10.0.0.100.sip: SIP: INVITE sip:89253404565@10.0.0.100 SIP/2.0
15:48:46.869357 IP 10.0.0.100.sip > 10.0.0.101.sip: SIP: SIP/2.0 100 Trying
15:48:46.884446 IP 10.0.0.100.sip > sipprovider.ru.5665: SIP: INVITE sip:89253404565@sipprovider.ru:5665;user=phone SIP/2.0
15:48:46.892098 IP sipprovider.ru.5665 > 10.0.0.100.sip: SIP: SIP/2.0 100 Trying
15:48:46.892973 IP sipprovider.ru.5665 > 10.0.0.100.sip: SIP: SIP/2.0 407 Proxy Authentication Required
15:48:46.893118 IP 10.0.0.100.sip > sipprovider.ru.5665: SIP: ACK sip:89253404565@sipprovider.ru:5665;user=phone SIP/2.0
15:48:46.893204 IP 10.0.0.100.sip > sipprovider.ru.5665: SIP: INVITE sip:89253404565@sipprovider.ru:5665;user=phone SIP/2.0
15:48:46.900982 IP sipprovider.ru.5665 > 10.0.0.100.sip: SIP: SIP/2.0 100 Trying
15:48:46.914383 IP sipprovider.ru.5665 > 10.0.0.100.sip: SIP: SIP/2.0 403 Forbidden
15:48:46.914511 IP 10.0.0.100.sip > sipprovider.ru.5665: SIP: ACK sip:89253404565@sipprovider.ru:5665;user=phone SIP/2.0
15:48:46.917109 IP 10.0.0.100.sip > 10.0.0.101.sip: SIP: SIP/2.0 403 Forbidden
15:48:46.998532 IP 10.0.0.101.51062 > 10.0.0.100.sip: SIP: ACK sip:89253404565@10.0.0.100 SIP/2.0