настраиваю тестовый-астер в конфигурации Realtime, и вот столкнулся с рядом проблем.
1-я) пытаюсь подключить внешнюю линию от мультифона, вроде как подключил, но звонки внешние не приходят.
2-я) когда пытаюсь звонить из локальной сети, то тут возникают нюансы, или линия недоступна или правила не правильные.
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER: sip.conf
[general]
context=factory
realm=test
bindport=5060
bindaddr=0.0.0.0
srvlookup=yes
language=ru
disallow=all
allow=ulaw
allow=alaw
allow=gsm
type=friend
rtcachefriends = yes
rtcache=yes
alwaysauthreject=yes
register => tcp://7921xxxxxxx@multifon.ru:PASSWORD:7921xxxxxxx@193.201.229.35:5060/multifon
localnet=10.10.10.0/24
localnet=10.10.11.0/24
[multifon]
type=peer
host=193.201.229.35
username=7921xxxxxxx@multifon.ru
secret=PASSWORD
insecure=invite,port
fromdomain=multifon.ru
fromuser=7921xxxxxxx
disallow=all
allow=g729,ulaw
qualify=yes
transport=tcp
;nat=never
nat=yes
dtmfmode=inband
context=incoming
;externip=y.y.y.y
;port=5060
outboundproxy=tcp://193.201.229.35
outboundproxyport=5060
;outboundproxyport=5090
context=factory
realm=test
bindport=5060
bindaddr=0.0.0.0
srvlookup=yes
language=ru
disallow=all
allow=ulaw
allow=alaw
allow=gsm
type=friend
rtcachefriends = yes
rtcache=yes
alwaysauthreject=yes
register => tcp://7921xxxxxxx@multifon.ru:PASSWORD:7921xxxxxxx@193.201.229.35:5060/multifon
localnet=10.10.10.0/24
localnet=10.10.11.0/24
[multifon]
type=peer
host=193.201.229.35
username=7921xxxxxxx@multifon.ru
secret=PASSWORD
insecure=invite,port
fromdomain=multifon.ru
fromuser=7921xxxxxxx
disallow=all
allow=g729,ulaw
qualify=yes
transport=tcp
;nat=never
nat=yes
dtmfmode=inband
context=incoming
;externip=y.y.y.y
;port=5060
outboundproxy=tcp://193.201.229.35
outboundproxyport=5060
;outboundproxyport=5090
sip show peers
Name/username Host Dyn Nat ACL Port Status Realtime
100/Alex 10.10.10.x D 60877 Unmonitored Cached RT
101/Andrey 10.10.10.x D 5065 Unmonitored Cached RT
multifon/7921xxxxxxx@mult 193.201.229.35 N 5060 OK (14 ms)
3 sip peers [Monitored: 1 online, 0 offline Unmonitored: 2 online, 0 offline]
в extensions.conf добавленны ссылки на базы правил:
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER: extensions.conf
[default]
switch => Realtime/@extensions
[factory]
switch => Realtime/@extensions
[menu-choise]
switch => Realtime/@extensions
[incoming]
; мегафон мультифон
switch => Realtime/@extensions
switch => Realtime/@extensions
[factory]
switch => Realtime/@extensions
[menu-choise]
switch => Realtime/@extensions
[incoming]
; мегафон мультифон
switch => Realtime/@extensions
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER: extensions
1 default 000 1 Answer
2 default 000 2 Playback welcome
3 default 000 3 Goto menu-choise,s,1
4 factory 000 1 Answer
5 factory 000 2 Playback welcome
6 factory 000 3 Goto menu-choise,s,1
7 incoming 000 1 Answer
8 incoming 000 2 Playback welcome
9 incoming 000 3 Goto menu-choise,s,1
10 menu-choise s 1 Background MenuVoiceEntry
11 menu-choise s 2 WaitExten
12 menu-choise 1 1 Playback digits/1
13 menu-choise 1 2 Dial sip/100, 15, m
14 menu-choise 1 4 Playback followme/sorry
15 menu-choise 1 5 Playback redirectmail
16 menu-choise 1 6 Goto 1${MAILBOX_EXISTS(100@factory)}1
17 menu-choise 1 101 Playback not-exist
18 menu-choise 1 102 Goto factory, 000, 1
19 menu-choise 1 111 VoiceMailMain 100@factory
20 menu-choise 1 112 Goto factory,000,1
21 menu-choise 2 1 Playback digits/2
24 menu-choise 2 111 VoiceMailMain 100@factory
25 menu-choise 2 112 Goto factory,000,1
26 menu-choise _1XX/_1XX 1 Playback Dialling
27 menu-choise _1XX/_1XX 2 Dial SIP/${CDR(dst)},10,m
28 menu-choise _1XX/_1XX 3 Playback followme/sorry
29 menu-choise _1XX/_1XX 4 Goto 2${MAILBOX_EXISTS(${CDR(dst)}@factory)}1
30 menu-choise _1XX/_1XX 127 Playback vm-goodbye
31 menu-choise _1XX/_1XX 127 Hangup
32 menu-choise _1XX/_1XX 127 Voicemail ${CDR(dst)}@factory
33 menu-choise _1XX/_1XX 127 Playback vm-goodbye
34 menu-choise _1XX/_1XX 127 Wait 2
35 menu-choise _1XX/_1XX 127 Hangup
36 menu-choise i 1 Playback sory
37 menu-choise i 2 Hangup
38 menu-choise t 1 Playback sory
39 menu-choise t 2 Hangup
50 factory _1XX/_1XX 1 Playback Dialling
51 factory _1XX/_1XX 2 Dial SIP/${CDR(dst)},10,m
52 factory _1XX/_1XX 3 Playback followme/sorry
53 factory _1XX/_1XX 4 Goto 2${MAILBOX_EXISTS(${CDR(dst)}@factory)}1
54 factory _1XX/_1XX 127 Playback vm-goodbye
55 factory _1XX/_1XX 127 Hangup
56 factory _1XX/_1XX 127 Voicemail ${CDR(dst)}@factory
57 factory _1XX/_1XX 127 Playback vm-goodbye
58 factory _1XX/_1XX 127 Wait 2
59 factory _1XX/_1XX 127 Hangup
70 factory 777 1 Wait 2
71 factory 777 2 Record /tmp/welcome:gsm
72 factory 777 3 Wait 1
73 factory 777 4 Playback /tmp/welcome
74 factory 777 5 Wait 2
75 factory 777 6 Hangup
80 factory 001 1 VoiceMailMain
151 factory _XXXXXXXXXXX 1 Dial SIP/multifon/${CDR(dst)},,rT
152 factory _XXXXXXXXXXX 2 Playback followme/sorry
178 factory t 1 Playback sory
179 factory t 2 Hangup
180 factory i 1 Playback sory
181 factory i 2 Hangup
200 incoming 7921xxxxxxx@multifon 1 Answer
201 incoming 7921xxxxxxx@multifon 2 Playback welcome
202 incoming 7921xxxxxxx@multifon 3 Goto menu-choise,s,1
2 default 000 2 Playback welcome
3 default 000 3 Goto menu-choise,s,1
4 factory 000 1 Answer
5 factory 000 2 Playback welcome
6 factory 000 3 Goto menu-choise,s,1
7 incoming 000 1 Answer
8 incoming 000 2 Playback welcome
9 incoming 000 3 Goto menu-choise,s,1
10 menu-choise s 1 Background MenuVoiceEntry
11 menu-choise s 2 WaitExten
12 menu-choise 1 1 Playback digits/1
13 menu-choise 1 2 Dial sip/100, 15, m
14 menu-choise 1 4 Playback followme/sorry
15 menu-choise 1 5 Playback redirectmail
16 menu-choise 1 6 Goto 1${MAILBOX_EXISTS(100@factory)}1
17 menu-choise 1 101 Playback not-exist
18 menu-choise 1 102 Goto factory, 000, 1
19 menu-choise 1 111 VoiceMailMain 100@factory
20 menu-choise 1 112 Goto factory,000,1
21 menu-choise 2 1 Playback digits/2
24 menu-choise 2 111 VoiceMailMain 100@factory
25 menu-choise 2 112 Goto factory,000,1
26 menu-choise _1XX/_1XX 1 Playback Dialling
27 menu-choise _1XX/_1XX 2 Dial SIP/${CDR(dst)},10,m
28 menu-choise _1XX/_1XX 3 Playback followme/sorry
29 menu-choise _1XX/_1XX 4 Goto 2${MAILBOX_EXISTS(${CDR(dst)}@factory)}1
30 menu-choise _1XX/_1XX 127 Playback vm-goodbye
31 menu-choise _1XX/_1XX 127 Hangup
32 menu-choise _1XX/_1XX 127 Voicemail ${CDR(dst)}@factory
33 menu-choise _1XX/_1XX 127 Playback vm-goodbye
34 menu-choise _1XX/_1XX 127 Wait 2
35 menu-choise _1XX/_1XX 127 Hangup
36 menu-choise i 1 Playback sory
37 menu-choise i 2 Hangup
38 menu-choise t 1 Playback sory
39 menu-choise t 2 Hangup
50 factory _1XX/_1XX 1 Playback Dialling
51 factory _1XX/_1XX 2 Dial SIP/${CDR(dst)},10,m
52 factory _1XX/_1XX 3 Playback followme/sorry
53 factory _1XX/_1XX 4 Goto 2${MAILBOX_EXISTS(${CDR(dst)}@factory)}1
54 factory _1XX/_1XX 127 Playback vm-goodbye
55 factory _1XX/_1XX 127 Hangup
56 factory _1XX/_1XX 127 Voicemail ${CDR(dst)}@factory
57 factory _1XX/_1XX 127 Playback vm-goodbye
58 factory _1XX/_1XX 127 Wait 2
59 factory _1XX/_1XX 127 Hangup
70 factory 777 1 Wait 2
71 factory 777 2 Record /tmp/welcome:gsm
72 factory 777 3 Wait 1
73 factory 777 4 Playback /tmp/welcome
74 factory 777 5 Wait 2
75 factory 777 6 Hangup
80 factory 001 1 VoiceMailMain
151 factory _XXXXXXXXXXX 1 Dial SIP/multifon/${CDR(dst)},,rT
152 factory _XXXXXXXXXXX 2 Playback followme/sorry
178 factory t 1 Playback sory
179 factory t 2 Hangup
180 factory i 1 Playback sory
181 factory i 2 Hangup
200 incoming 7921xxxxxxx@multifon 1 Answer
201 incoming 7921xxxxxxx@multifon 2 Playback welcome
202 incoming 7921xxxxxxx@multifon 3 Goto menu-choise,s,1
сейчас у меня работают звонки только между локальными пользователями и голосовое меню для них-же
а где ошибся, чтобы работала и внешняя линия непонятно.