My account entry:
[kyivstar]
host=89.162.254.10
fromdomain = 193.93.14.244
fromuser= 0532625556
port= 5060
type=friend
qualify=yes
context = default
dtmfmode = rfc2833
disallow =all
allow = ulaw,alaw
insecure= port,invite
My dialplan:
[default]
;Входящая группа
exten => 0532625556,1,AGI(agi-DID_route.agi,,tT)
exten => 0532625556,n,Hangup()
exten => 0532625550,1,AGI(agi-DID_route.agi,,tT)
exten => 0532625550,n,Hangup()
;exten => 0532625556,1,Dial(IAX2/ast1@ast0/3000,60,tT)
;exten => 0532625556,n,Hangup()
exten => 3000,1,Dial(IAX2/ast1@ast0/3000,60,tT)
exten => 3000,n,Hangup()
exten => _10XX,1,AGI(
agi://127.0.0.1:4577/call_log)
exten => _10XX,n,Dial(SIP/${EXTEN},60,rtTo)
exten => _10XX,n,Hangup()
;Все операторы
exten => _XXXXXXXXXX,1,AGI(
agi://127.0.0.1:4577/call_log)
exten => _XXXXXXXXXX,n,SET(CALLERID(all)=0532625556)
exten => _XXXXXXXXXX,n,Dial(SIP/kyivstar/${EXTEN},60,tTg)
exten => _XXXXXXXXXX,n,Dial(IAX2/ASTplay@ASTplay/9991234560,60,tT)
exten => _XXXXXXXXXX,n,Hangup()
;Все операторы с кодом 38
exten => _38XXXXXXXXXX,1,AGI(
agi://127.0.0.1:4577/call_log)
exten => _38XXXXXXXXXX,n,SET(CALLERID(all)=0532625556)
exten => _38XXXXXXXXXX,n,Dial(SIP/kyivstar/${EXTEN:2},60,tTg)
exten => _38XXXXXXXXXX,n,Dial(IAX2/ASTplay@ASTplay/9991234560,60,tT)
exten => _38XXXXXXXXXX,n,Hangup()
;Звонки сам на себя - сообщение До свидания
exten=> _XXXXX.,1,AGI(
agi://127.0.0.1:4577/call_log)
exten=> _XXXXX.,n,Dial(IAX2/ASTplay@ASTplay/9991234560,60,tT)
exten=> _XXXXX.,n,Hangup()
exten => 0672154200,1,AGI(
agi://127.0.0.1:4577/call_log)
;same => n,SET(CALLERID(all)=0532625556)
;same => n,Dial(SIP/kyivstar/${EXTEN},60,tT)
;same => n,Dial(IAX2/ASTplay@ASTplay/9991234566,60,tT)
same => n,Dial(IAX2/ast1@ast0/${EXTEN},60,tTo)
same => n,Hangup()