Код: Выделить всё
chan_sip.c:20163 handle_request_invite: Call from 'officeatc' to extension 'officeatc' rejected because extension not found.
Сервер находится за натом, порты пробросил.
Перепробовал уже не мало как мне кажется вариантов, пока остановился на таком варианте...
вот мой sip.conf
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
[general]
session-timers=refuse
context=incoming_calls
allowoverlap=no
bindport=5060
bindaddr=0.0.0.0
;srvlookup=no
useragent=Asterisk
relaxdtmf=yes
alwaysauthreject=yes
videosupport=no
notifybusy=yes
counteronpeer=yes
notifyhold=no
pedantic=yes
callcounter=yes
externip=myip
localnet=192.168.0.0/24
register => officeatc:Qwerty555@mydomain.octoline.ru:5060/officeatc
[sip-mynumber]
type=friend
defaultuser=officeatc
secret=Qwerty555
;fromuser=officeatc
host=mydomain.octoline.ru
port=5060
context=incoming_calls
fromdomain=mydomain.octoline.ru
language=ru-ru
nat=yes
qualify=yes
canreinvite=no
insecure=invite,port
dtmfmode=auto
disallow=all
allow=ulaw
allow=alaw
allow=gsm
[200] ; xlite phone
type=friend
host=dynamic
username=200
secret=Qwerty555
nat=no
canreinvite=no
context=office
callerid=”User1″ <200>
allow=gsm
allow=ulaw
allow=alaw
[201] ; xlite phone
type=friend
host=dynamic
username=201
secret=Qwerty555
nat=no
canreinvite=no
context=office
callerid=”User2″ <201>
allow=gsm
allow=ulaw
allow=alaw
[202] ; xlite phone
type=friend
host=dynamic
username=202
secret=Qwerty555
nat=no
canreinvite=no
context=office
callerid=”User3″ <202>
allow=gsm
allow=ulaw
allow=alaw
session-timers=refuse
context=incoming_calls
allowoverlap=no
bindport=5060
bindaddr=0.0.0.0
;srvlookup=no
useragent=Asterisk
relaxdtmf=yes
alwaysauthreject=yes
videosupport=no
notifybusy=yes
counteronpeer=yes
notifyhold=no
pedantic=yes
callcounter=yes
externip=myip
localnet=192.168.0.0/24
register => officeatc:Qwerty555@mydomain.octoline.ru:5060/officeatc
[sip-mynumber]
type=friend
defaultuser=officeatc
secret=Qwerty555
;fromuser=officeatc
host=mydomain.octoline.ru
port=5060
context=incoming_calls
fromdomain=mydomain.octoline.ru
language=ru-ru
nat=yes
qualify=yes
canreinvite=no
insecure=invite,port
dtmfmode=auto
disallow=all
allow=ulaw
allow=alaw
allow=gsm
[200] ; xlite phone
type=friend
host=dynamic
username=200
secret=Qwerty555
nat=no
canreinvite=no
context=office
callerid=”User1″ <200>
allow=gsm
allow=ulaw
allow=alaw
[201] ; xlite phone
type=friend
host=dynamic
username=201
secret=Qwerty555
nat=no
canreinvite=no
context=office
callerid=”User2″ <201>
allow=gsm
allow=ulaw
allow=alaw
[202] ; xlite phone
type=friend
host=dynamic
username=202
secret=Qwerty555
nat=no
canreinvite=no
context=office
callerid=”User3″ <202>
allow=gsm
allow=ulaw
allow=alaw
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
[globals]
[incoming_calls]
exten=>officeatc,1,Dial(SIP/200,30,t)
[office]
exten => 200, 1, Goto(200|1)
exten => 201, 1, Goto(201|1)
exten => 202, 1, Goto(202|1)
[incoming_calls]
exten=>officeatc,1,Dial(SIP/200,30,t)
[office]
exten => 200, 1, Goto(200|1)
exten => 201, 1, Goto(201|1)
exten => 202, 1, Goto(202|1)