Трассировки вызова:
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
<--- SIP read from UDP:192.168.0.99:5060 --->
INVITE sip:1001@192.168.0.193:5060;user=phone SIP/2.0
From: <sip:997@192.168.0.99:5060;user=phone>;tag=53ab3f0-c0a80063-13c4-50022-2b372-551a4c04-2b372
To: <sip:1001@192.168.0.193:5060;user=phone>
Call-ID: 53a2d38-c0a80063-13c4-50022-2b372-5f2d4406-2b372
CSeq: 1 INVITE
Via: SIP/2.0/UDP 192.168.0.99:5060;rport;branch=z9hG4bK-2b372-a8cf5ad-2f56d506
Max-Forwards: 70
Supported: replaces
User-Agent: Samsung OfficeServ
Contact: <sip:997@192.168.0.99:5060>
Privacy: none
Allow: REGISTER,INVITE,ACK,BYE,REFER,NOTIFY,CANCEL,INFO,OPTIONS,PRACK,SUBSCRIBE,UPDATE
Content-Type: application/sdp
Content-Length: 339
v=0
o=SAMSUNG_SIP_GATEWAY 177010094 0 IN IP4 192.168.0.99
s=SIP_CALL
c=IN IP4 192.168.0.200
t=0 0
m=audio 30004 RTP/AVP 8 0 18 18 4 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:18 G729/8000
a=rtpmap:4 G723/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=sendrecv
<------------->
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 192.168.0.99:5060;branch=z9hG4bK-2b372-a8cf5ad-2f56d506;received=192.168.0.99;rport=5060
From: <sip:997@192.168.0.99:5060;user=phone>;tag=53ab3f0-c0a80063-13c4-50022-2b372-551a4c04-2b372
To: <sip:1001@192.168.0.193:5060;user=phone>;tag=as2c0a91e3
Call-ID: 53a2d38-c0a80063-13c4-50022-2b372-5f2d4406-2b372
CSeq: 1 INVITE
Server: Asterisk PBX 1.8.4
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0
<------------>
INVITE sip:1001@192.168.0.193:5060;user=phone SIP/2.0
From: <sip:997@192.168.0.99:5060;user=phone>;tag=53ab3f0-c0a80063-13c4-50022-2b372-551a4c04-2b372
To: <sip:1001@192.168.0.193:5060;user=phone>
Call-ID: 53a2d38-c0a80063-13c4-50022-2b372-5f2d4406-2b372
CSeq: 1 INVITE
Via: SIP/2.0/UDP 192.168.0.99:5060;rport;branch=z9hG4bK-2b372-a8cf5ad-2f56d506
Max-Forwards: 70
Supported: replaces
User-Agent: Samsung OfficeServ
Contact: <sip:997@192.168.0.99:5060>
Privacy: none
Allow: REGISTER,INVITE,ACK,BYE,REFER,NOTIFY,CANCEL,INFO,OPTIONS,PRACK,SUBSCRIBE,UPDATE
Content-Type: application/sdp
Content-Length: 339
v=0
o=SAMSUNG_SIP_GATEWAY 177010094 0 IN IP4 192.168.0.99
s=SIP_CALL
c=IN IP4 192.168.0.200
t=0 0
m=audio 30004 RTP/AVP 8 0 18 18 4 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:18 G729/8000
a=rtpmap:4 G723/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=sendrecv
<------------->
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 192.168.0.99:5060;branch=z9hG4bK-2b372-a8cf5ad-2f56d506;received=192.168.0.99;rport=5060
From: <sip:997@192.168.0.99:5060;user=phone>;tag=53ab3f0-c0a80063-13c4-50022-2b372-551a4c04-2b372
To: <sip:1001@192.168.0.193:5060;user=phone>;tag=as2c0a91e3
Call-ID: 53a2d38-c0a80063-13c4-50022-2b372-5f2d4406-2b372
CSeq: 1 INVITE
Server: Asterisk PBX 1.8.4
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0
<------------>
sip.conf
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
[general]
[sets](!)
type=friend
context=internal
host=dynamic
disallow=all
allow=ulaw
dtmfmode=rfc2833
[1001](sets)
secret=1001
[1002](sets)
secret=1002
[OS7400]
type=peer
host=192.168.0.99
fromuser=666
context=incoming_calls
dtmfmode=rfc2833
disallow=all
allow=gsm
allow=ulaw
allow=alaw
deny=0.0.0.0/0
permit=10.251.55.100/32
insecure=invite
[sets](!)
type=friend
context=internal
host=dynamic
disallow=all
allow=ulaw
dtmfmode=rfc2833
[1001](sets)
secret=1001
[1002](sets)
secret=1002
[OS7400]
type=peer
host=192.168.0.99
fromuser=666
context=incoming_calls
dtmfmode=rfc2833
disallow=all
allow=gsm
allow=ulaw
allow=alaw
deny=0.0.0.0/0
permit=10.251.55.100/32
insecure=invite
extension.conf
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
[globals]
[general]
autofallthrough=yes
[default]
[incoming_calls]
include => internal
[internal]
exten => 1001,1,Verbose(1|Extension 1001)
exten => 1001,n,Dial(SIP/1001,30)
exten => 1001,n,Hangup()
exten => 1002,1,Verbose(1|Extension 1002)
exten => 1002,n,Dial(SIP/1002,30)
exten => 1002,n,Hangup()
exten => 1003,1,Verbose(1|Extension 1003)
exten => 1003,n,Dial(IAX2/idefisk,30)
exten => 1003,n,Hangup()
[outgoing_calls]
exten => _X.,1,NoOp()
exten => _X.,n,Dial(SIP/OS7400/${EXTEN})
[phones]
include => internal
include => outgoing_calls
[general]
autofallthrough=yes
[default]
[incoming_calls]
include => internal
[internal]
exten => 1001,1,Verbose(1|Extension 1001)
exten => 1001,n,Dial(SIP/1001,30)
exten => 1001,n,Hangup()
exten => 1002,1,Verbose(1|Extension 1002)
exten => 1002,n,Dial(SIP/1002,30)
exten => 1002,n,Hangup()
exten => 1003,1,Verbose(1|Extension 1003)
exten => 1003,n,Dial(IAX2/idefisk,30)
exten => 1003,n,Hangup()
[outgoing_calls]
exten => _X.,1,NoOp()
exten => _X.,n,Dial(SIP/OS7400/${EXTEN})
[phones]
include => internal
include => outgoing_calls