Имею сервер на CentOS 7
Код: Выделить всё
Linux voip 3.10.0-327.36.3.el7.x86_64 #1 SMP Mon Oct 24 16:09:20 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
Настроил SIP транк с провайдером, по инструкции предоставленной самим провайдером.
Конфигурация самая простая:
sip.conf
Код: Выделить всё
[general]
bindport=5060
maxexpiry=360
defaultexpiry=120
disallow=all
allow=alaw
dtmfmode=rfc2833
srvlookup=no
nat=force_rport
register => 74991111111@sip.beeline.ru:PASSWORD:74991111111@sip.beeline.ru@msk.sip.beeline.ru/74991111111
[authentication]
[74991111111]
type=peer
fromuser= 74991111111
fromdomain=sip.beeline.ru
host=sip.beeline.ru
canreinvite=no
insecure=invite
outboundproxy=msk.sip.beeline.ru
context=ingress
[user1]
callerid="User_1"
secret=user1
host=dynamic
type=friend
context=egress1
Код: Выделить всё
[globals]
[egress1]
exten => _X.,1,Dial(SIP/74991111111/${EXTEN},60)
exten => _X.,n,Hangup()
[ingress]
exten => 74991111111,1,Dial(SIP/user1,60)
exten => 74991111111,n,Hangup()
exten => s,1,Hangup()
При звонке в консоли asterisk пишет следующее:
Код: Выделить всё
<------------->
--- (9 headers 0 lines) ---
sip_route_dump: route/path hop: <sip:user1@192.168.10.109:55674;ob>
-- SIP/user1-0000004d is ringing
<--- Transmitting (NAT) to 195.239.174.100:5060 --->
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 195.239.174.100:5060;branch=z9hG4bKg3Zqkv7i5betw9g8e4eircy4pjyfk35c4;received=195.239.174.100;rport=5060
Record-Route: <sip:195.239.174.100;transport=udp;lr>
From: <sip:79262222222@sip.beeline.ru;user=phone>;tag=h7g4Esbg_529795628-1478019971009-
To: "74991111111 74991111111" <sip: 74991111111@sip.beeline.ru>;tag=as3a1ae7f0
Call-ID: BW200611009011116-1469957580@10.64.248.6
CSeq: 275610593 INVITE
Server: Asterisk PBX 13.12.1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Session-Expires: 1800;refresher=uac
Contact: <sip: 74991111111@192.168.10.115:5060>
Content-Length: 0
<------------>
<--- SIP read from UDP:192.168.10.109:55674 --->
<------------->
[Oct 31 17:54:44] NOTICE[3936]: chan_sip.c:15603 sip_reregister: -- Re-registration for 74991111111@msk.sip.beeline.ru
REGISTER 11 headers, 0 lines
Reliably Transmitting (no NAT) to 195.239.174.100:5060:
REGISTER sip:sip.beeline.ru SIP/2.0
Via: SIP/2.0/UDP 192.168.10.115:5060;branch=z9hG4bK30256083
Max-Forwards: 70
From: <sip: 74991111111@sip.beeline.ru>;tag=as681306e9
To: <sip: 74991111111@sip.beeline.ru>
Call-ID: 6d6364ff72a5535a1e12026a17838ee0@[fe80::20c:29ff:fe0e:3413]
CSeq: 177 REGISTER
Supported: replaces, timer
User-Agent: Asterisk PBX 13.12.1
Expires: 120
Contact: <sip: 74991111111@192.168.10.115:5060>
Content-Length: 0
---
<--- SIP read from UDP:195.239.174.100:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.10.115:5060;received=89.169.53.166;branch=z9hG4bK30256083
To: <sip: 74991111111@sip.beeline.ru>;tag=zic1y4fbu29eroryhkzhroust2dzfewb
From: <sip: 74991111111@sip.beeline.ru>;tag=as681306e9
Call-ID: 6d6364ff72a5535a1e12026a17838ee0@[fe80::20c:29ff:fe0e:3413]
CSeq: 177 REGISTER
Contact: <sip: 74991111111@192.168.10.115:5060>;expires=120
P-Associated-Uri: <sip: 74991111111@sip.beeline.ru>
P-Associated-Uri: <tel:+ 74991111111 >
Supported: replaces
Supported: timer
User-Agent: Asterisk PBX 13.12.1
Content-Length: 0
Код: Выделить всё
<------------>
<--- SIP read from UDP:192.168.10.109:55674 --->
<------------->
<--- SIP read from UDP:192.168.10.109:55674 --->
SIP/2.0 603 Decline
Via: SIP/2.0/UDP 192.168.10.115:5060;rport=5060;received=192.168.10.115;branch=z9hG4bK47c4b019
Call-ID: 298637636a8439bd174624da32b6c48c@192.168.10.115:5060
From: <sip:79262222222@192.168.10.115>;tag=as5f7b0c9d
To: <sip:user1@192.168.10.109;ob>;tag=G71DjZEpUWA1s9VTEcY2a.JfGTiRMvwm
CSeq: 102 INVITE
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Content-Length: 0
<------------->
--- (8 headers 0 lines) ---
-- Got SIP response 603 "Decline" back from 192.168.10.109:55674
Transmitting (NAT) to 192.168.10.109:55674:
ACK sip:user1@192.168.10.109:55674;ob SIP/2.0
Via: SIP/2.0/UDP 192.168.10.115:5060;branch=z9hG4bK47c4b019;rport
Max-Forwards: 70
From: <sip:79262222222@192.168.10.115>;tag=as5f7b0c9d
To: <sip:user1@192.168.10.109:55674;ob>;tag=G71DjZEpUWA1s9VTEcY2a.JfGTiRMvwm
Contact: <sip:79262222222@192.168.10.115:5060>
Call-ID: 298637636a8439bd174624da32b6c48c@192.168.10.115:5060
CSeq: 102 ACK
User-Agent: Asterisk PBX 13.12.1
Content-Length: 0
---
-- SIP/user1-00000053 is busy
== Everyone is busy/congested at this time (1:1/0/0)
-- Executing [74991111111@ingress:2] Hangup("SIP/74991111111-00000052", "") in new stack
== Spawn extension (ingress, 74991111111, 2) exited non-zero on 'SIP/74991111111-00000052'
Scheduling destruction of SIP dialog 'BW201425802011116-635418345@10.64.248.6' in 32000 ms (Method: INVITE)
<--- Reliably Transmitting (NAT) to 195.239.174.100:5060 --->
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 195.239.174.100:5060;branch=z9hG4bKg3Zqkv7i6utefwced5omt1jn2rv76on3d;received=195.239.174.100;rport=5060
From: <sip:79262222222@sip.beeline.ru;user=phone>;tag=h7g4Esbg_77197735-1478020465802-
To: "74991111111 74991111111" <sip:74991111111@sip.beeline.ru>;tag=as6018da14
Call-ID: BW201425802011116-635418345@10.64.248.6
CSeq: 275857990 INVITE
Server: Asterisk PBX 13.12.1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Session-Expires: 1800;refresher=uac
Content-Length: 0
<------------>
Really destroying SIP dialog '298637636a8439bd174624da32b6c48c@192.168.10.115:5060' Method: INVITE
Код: Выделить всё
SIP/2.0 403 Forbidden
Какие провайдеру можно привести веские аргументы, что бы доказать обратное?
Спасибо