На свеже поставленной Asterisk 16.6.2(FreeBSD 11.2-RELEASE, Asterisk ставился из портов и pkg и возможно криво встал), завел два внутренних номера
кусочек sip.conf
Код: Выделить всё
[managers-phones](!)
type=friend
context=call-out
secret=123
host=dynamic
nat=no
qualify=yes
canreinvite=no
callgroup=1
pickupgroup=1
call-limit=1
dtmfmode=auto
disallow=all
allow=alaw
;allow=ulaw
allow=g729
allow=g723
allow=g722
[101](managers-phones)
callerid="Number 101" <101>
[102](managers-phones)
callerid="Number 102" <102>
Код: Выделить всё
aster*CLI> sip show peers
Name/username Host Dyn Forcerport Comedia ACL Port Status Description
101/101 192.168.0.214 D No No 16712 OK (2 ms)
102/102 192.168.0.215 D No No 11734 OK (2 ms)
2 sip peers [Monitored: 2 online, 0 offline Unmonitored: 0 online, 0 offline]
Вот лог звонка
Код: Выделить всё
aster*CLI> core set verbose 99
Console verbose is still 99.
aster*CLI>
-- Registered SIP '101' at 192.168.0.214:16714
> 0x298f0000 -- Strict RTP learning after remote address set to: 192.168.0.214:16716
-- Executing [102@call-out:1] Dial("SIP/101-0000000a", "SIP/102") in new stack
-- Called SIP/102
-- SIP/102-0000000b is ringing
[Dec 11 15:55:46] WARNING[100224][C-00000006]: res_rtp_asterisk.c:7131 struct ast_frame *ast_rtp_read(struct ast_rtp_instance *, int): RTP Read too short
[Dec 11 15:55:46] WARNING[100224][C-00000006]: res_rtp_asterisk.c:7131 struct ast_frame *ast_rtp_read(struct ast_rtp_instance *, int): RTP Read too short
[Dec 11 15:55:46] WARNING[100224][C-00000006]: res_rtp_asterisk.c:7131 struct ast_frame *ast_rtp_read(struct ast_rtp_instance *, int): RTP Read too short
[Dec 11 15:55:46] WARNING[100224][C-00000006]: res_rtp_asterisk.c:7131 struct ast_frame *ast_rtp_read(struct ast_rtp_instance *, int): RTP Read too short
> 0x2a27c000 -- Strict RTP learning after remote address set to: 192.168.0.215:11740
[Dec 11 15:55:47] WARNING[100183][C-00000006]: channel.c:5589 int set_format(struct ast_channel *, struct ast_format_cap *, const int, int): Unable to find a codec translation path: (g729) -> (alaw)
[Dec 11 15:55:47] WARNING[100183][C-00000006]: channel.c:5589 int set_format(struct ast_channel *, struct ast_format_cap *, const int, int): Unable to find a codec translation path: (alaw) -> (g729)
-- SIP/102-0000000b answered SIP/101-0000000a
[Dec 11 15:55:47] WARNING[100224][C-00000006]: channel.c:6549 int ast_channel_make_compatible_helper(struct ast_channel *, struct ast_channel *): No path to translate from SIP/102-0000000b to SIP/101-0000000a
[Dec 11 15:55:47] WARNING[100224][C-00000006]: app_dial.c:3244 int dial_exec_full(struct ast_channel *, const char *, struct ast_flags64 *, int *): Had to drop call because I couldn't make SIP/101-0000000a compatible with SIP/102-0000000b
== Spawn extension (call-out, 102, 1) exited non-zero on 'SIP/101-0000000a'
Может у кого-то будет возможность - ткнуть меня носом в ссылку на решение подобной ситуации, чтоб я мог разобраться и самостоятельно исправить проблему.
С уважением BertLam