sip.conf
Код: Выделить всё
[general]
;context=default
allowguest=no
bindport=5060
bindaddr=192.168.255.3
disallow=all
allow=alaw
allow=ulaw
nat=no
;language=ru
srvlookup=yes
[3001]
type=friend
context=office
host=dynamic
secret=1234
[3002]
type=friend
context=office
host=dynamic
secret=1234
Код: Выделить всё
[office]
exten => 3001,1,Dial(SIP/3001)
exten => 3002,1,Dial(SIP/3002)
в CLI вижу следуюшее
Код: Выделить всё
[Nov 28 21:06:25] NOTICE[21283]: chan_sip.c:27732 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 3001
-- Registered SIP '3001' at 217.112.210.242:32901
[Nov 28 21:06:48] NOTICE[21283]: chan_sip.c:27732 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 3001
[Nov 28 21:06:55] NOTICE[21283]: chan_sip.c:27732 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 3002
== Using SIP RTP CoS mark 5
-- Executing [3001@office:1] Dial("SIP/3002-00000000", "SIP/3001") in new stack
== Using SIP RTP CoS mark 5
-- Called SIP/3001
-- Registered SIP '3002' at 217.112.210.242:43452
> Saved useragent "Z 3.0.19632 r19608" for peer 3002
[Nov 28 21:07:15] NOTICE[21283]: chan_sip.c:27732 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 3002
== Spawn extension (office, 3001, 1) exited non-zero on 'SIP/3002-00000000'
[Nov 28 21:07:43] WARNING[21283]: chan_sip.c:4174 retrans_pkt: Retransmission timeout reached on transmission 56086de90fbcd9d859928ae177dbf106@192.168.255.3:5060 for seqno 102 (Critical Request) -- See https://wiki.asterisk.org/wiki/display/AST/SIP+Retransmissions
Packet timed out after 32000ms with no response
все ставилось с репозитория packages.asterisk.org и packages.digium.com