Страница 1 из 1

Failed to authenticate on INVITE to '"asterisk" <sip:asteris

Добавлено: 27 сен 2012, 17:56
prince_kz
если я набираю номер с внутреннего номера FXO на город 93178688 или любой другой городской номер с префиксом 9я получаю сигнал "занято" и в консоли следующая ошибка.

Код: Выделить всё

Failed to authenticate on INVITE to '"asterisk" <sip:asterisk@myIP>
sip.conf

Код: Выделить всё

cat sip.conf
[general]
register => user1:secret@sip.voip.kz/user1
register => user2:secret@sip.voip.kz/user2
register => user3:secret@sip.voip.kz/user3
register => user4:secret@sip.voip.kz/user4
register => user5:secret@sip.voip.kz/user5
externip=myIP
localnet=192.168.0.0/255.255.255.0
NAT=route

[user1]
type=friend
host=sip.voip.kz
fromuser=user1
fromdomain=sip.voip.kz
username=user1
secret=secret
context=tookinza
dtmfmode=rfc2833
disallow=all
allow=gsm
allow=ulaw
deny=0.0.0.0/0
permit=195.189.31.0/24
insecure=invite
;nat=yes

[user2]
type=friend
host=sip.voip.kz
fromuser=user2
fromdomain=sip.voip.kz
username=user2
secret=secret
context=tookinza
dtmfmode=rfc2833
disallow=all
allow=gsm
allow=ulaw
deny=0.0.0.0/0
permit=195.189.31.0/24
insecure=invite
nat=yes

[user3]
type=friend
host=sip.voip.kz
fromuser=user3
fromdomain=sip.voip.kz
username=user3
secret=secret
context=tookinza
dtmfmode=rfc2833
disallow=all
allow=gsm
allow=ulaw
deny=0.0.0.0/0
permit=195.189.31.0/24
insecure=invite
nat=yes

[user4]
type=friend
host=sip.voip.kz
fromuser=user4
fromdomain=sip.voip.kz
username=user4
secret=secret
context=tookinza
dtmfmode=rfc2833
disallow=all
allow=gsm
allow=ulaw
deny=0.0.0.0/0
permit=195.189.31.0/24
insecure=invite

[user5]
type=friend
host=sip.voip.kz
fromuser=user5
fromdomain=sip.voip.kz
username=user5
secret=secret
context=tookinza
dtmfmode=rfc2833
disallow=all
allow=gsm
allow=ulaw
deny=0.0.0.0/0
permit=195.189.31.0/24
insecure=invite
nat=yes
extensions.conf

Код: Выделить всё

 cat extensions.conf
        [globals]



        [general]
        autofallthrough=yes


        [default]
;        exten => s,1,Answer()
;        exten => s,n,Wait(1)
;        exten => s,n,Playback(tt-weasels)
;        exten => s,n,Hangup()

        [2_internal]
;       exten => _21XX,1,Dial(DAHDI/${EXTEN:1},,tT)
;       exten => 21XX,1,Dial(dahdi/${EXTEN:2})
        exten => 2101,1,Dial(dahdi/1)
;       exten => .,1,ResponseTimeout(5)
        exten => 2101,n,Hangup()
        exten => 2102,1,Dial(dahdi/2)
        exten => 2102,n,Hangup()
        exten => 2103,1,Dial(dahdi/3)
        exten => 2103,n,Hangup()
        exten => 2104,1,Dial(dahdi/4)
        exten => 2104,n,Hangup()
        exten => 2105,1,Dial(dahdi/5)
        exten => 2105,n,Hangup()
        exten => 2106,1,Dial(dahdi/6)
        exten => 2106,n,Hangup()
        exten => 2107,1,Dial(dahdi/7)
        exten => 2107,n,Hangup()
        exten => 2108,1,Dial(dahdi/8)
        exten => 2108,n,Hangup()
        exten => 2109,1,Dial(dahdi/9)
        exten => 2109,n,Hangup()
        exten => 2110,1,Dial(dahdi/10)
        exten => 2110,n,Hangup()
        exten => 2111,1,Dial(dahdi/11)
        exten => 2111,n,Hangup()
        exten => 2112,1,Dial(dahdi/12)
        exten => 2112,n,Hangup()
        exten => 2113,1,Dial(dahdi/13)
        exten => 2113,n,Hangup()
        exten => 2114,1,Dial(dahdi/14)
        exten => 2114,n,Hangup()
        exten => 2115,1,Dial(dahdi/15)
        exten => 2115,n,Hangup()
        exten => 2116,1,Dial(dahdi/16)
        exten => 2116,n,Hangup()
        exten => 2117,1,Dial(dahdi/17)
        exten => 2117,n,Hangup()
        exten => 2118,1,Dial(dahdi/18)
        exten => 2118,n,Hangup()
        exten => 2119,1,Dial(dahdi/19)
        exten => 2119,n,Hangup()
        exten => 2120,1,Dial(dahdi/20)
        exten => 2120,n,Hangup()
        exten => 2121,1,Dial(dahdi/21)
        exten => 2121,n,Hangup()
        exten => 2122,1,Dial(dahdi/22)
        exten => 2122,n,Hangup()
        exten => 2123,1,Dial(dahdi/23)
        exten => 2123,n,Hangup()



;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
        [phones]
        exten => _8.,1,dial(sip/${exten:1}@1234,30,r)
;       exten => .,1,System(echo 'tookinza_outgoing'>>/var/log/asterisk/1.txt)
;       exten => [23]xxxxxx,n,Goto(tookinza_outgoing,${EXTEN},1)
        include => from-internal
        [from-internal]
;       exten => s,1,Answer;
;       exten => s,2,Dial(dahdi/2)
        include => 2_internal
        include => 2_infinity
        include => 2_regions
;       include => sub3528805_out
        include => 2_kcell_corporate
        include => 2_kcell
        include => 2_beeline
        include => 2_neo
        include => tookinza_outgoing
;       exten => s,n,Hangup()

        [2_infinity]
;       exten => 11XX
        [2_regions]
;
        [2_kcell_corporate]
        [2_kcell]
        [2_beeline]
        [2_neo]




        [tookinza]
;       exten => tookinza_out,1,Goto(tookinza_outgoing,${EXTEN},1)
        exten => user5,1,Goto(tookinza,s,1)
        exten => user4,1,Goto(tookinza,s,1)
        exten => user3,1,Goto(tookinza,s,1)
        exten => user2,1,Goto(tookinza,s,1)
        exten => user1,1,Goto(tookinza,s,1)
        exten => s,1,Answer()
        exten => s,n,Wait(1)
        exten => s,n,Background(hello)
        exten => s,n,Wait(15)
        exten => s,n,Background(orwait)
        exten => s,n,Dial(Dahdi/1)
        exten => s,n,Hangup()
        exten => i,1,Background(error)
        exten => t,1,Background(orwait)
        exten => t,n,Dial(Dahdi/1)

        include => 2_internal

        [tookinza_outgoing]
;       exten => ,1,System(echo 'tookinza_outgoing'>>/var/log/asterisk/1.txt)
        exten => _9.,1,Dial(SIP/user1:ahheeS01@195.189.31.21,30,r)
        exten => [23]xxxxxx,n,Dial(SIP/${EXTEN}@user2,30,r)
        exten => [23]xxxxxx,n,Dial(SIP/${EXTEN}@user3,30,r)
        exten => [23]xxxxxx,n,Dial(SIP/${EXTEN}@user4,30,r)
        exten => _9.,n,Dial(SIP/${EXTEN:1}@user5,30,r)

        [sub3528805_in]
        include => 3528805

        [sub3528805_out]
        exten => _9.,1,System(echo 'tookinza_outgoing'>>/var/log/asterisk/1.txt)
        exten => _9.,2,Dial(SIP/${EXTEN:1}@sub3528805_101,30,r)

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
        [3528805]
        exten => s,1,Answer()
        exten => s,n,Wait(1)
        exten => s,n,Playback(redial)
        exten => s,n,Hangup()
что я сделал неправильно?
отладка логов совместно с провайдером сип, показала что несмотря на правильную авторизацию имя пользователя ожидающего вызов отправляеться с моего сервера именно asterisk@myIP
asterisk 1.8.16.0 Production Releases и Long Term Support
os Centos 6 minimal
kernel 2.6.32-279.5.2.el6.i686

Re: Failed to authenticate on INVITE to '"asterisk" <sip:ast

Добавлено: 27 сен 2012, 20:50
ded
Не надо использовать такую форму вызова
exten => _9.,2,Dial(SIP/${EXTEN:1}@sub3528805_101,30,r)
у вас есть пир - user1, вот через него и отправляйте
exten => _9X.,2,Dial(SIP/user1/${EXTEN:1},30,r)