Когда набираю первую цифру номера два раза, тогда вызов проходит нормально.
Например вместо 49889, набираю 449889, тогда дозваниваюся на номер 49889.
Настройку шлюза делал по статье http://lynks.ru/blog/nastroika-voip-shl ... k-dvg-xxxx
slmon log:
Код: Выделить всё
13:41:37 *** SLMON start to log ***
13:41:47 [007511] Receive Cmd=1100, ParaLen=5, Para=[Login]
13:41:47 [007511] Login == Ver(1.02.38.28.8749 2008/08/22 15:48:39) PId(242.DLink.NoPrefix.drtp.vlan) Drv(0.9.5.1.1140 30/Jul/2008 12:27:59) Hw(IAD202) == 0.6.
13:41:47 7-1
13:41:51 [007542] 3: 777=OFFERING
13:41:51 [007542] 3: Get CallerId=Director
13:41:51 [007542] 3: Default Dial-Out []
13:41:51 [007543] 3: Peer=10.100.0.2:15834, PT=0, RecvOnly=0
13:41:51 [007543] 3: TrunkPrefix=, Dest=, Dialno=
13:41:51 [007543] 3: FxoHookOff
13:41:51 [007543] 3: ==18:TrunkDialOut
13:41:51 [007543] 3: Fxo DialOut OK
13:41:51 [007544] 3: 777=ACCEPT
13:41:51 [007544] 3: ==13:VoipAnswering
13:41:51 [007545] 3: 777=CONNECTED
13:41:51 [007545] 3: RtpApiTalk[1,1], Peer=10.100.0.2:15834, PT=0, FC=2, NewOOB=0
13:41:51 [007545] 3: ==14:Talking
13:41:51 [007546] 3: Play(4)
13:41:51 [007548] 3: Play(9)
13:41:51 [007551] 3: Play(8)
13:41:52 [007553] 3: Play(8)
13:41:52 [007556] 3: Play(9)
13:41:56 [007593] 3: 777=DISCONNECT
13:41:56 [007593] 3: Release Active Dlg
13:41:56 [007594] 3: ==15:PlayBusyTone
13:41:56 [007594] 3: Start Btc Learning
13:41:57 [007603] 3: Btc Learning Exception Len
13:41:57 [007603] DSP_ch3_check=0
13:41:57 [007603] 3: FxoHookOn
13:41:57 [007603] 3: ==3:Idle
13:41:57 [007603] 3: SetFax(0)=0
Код: Выделить всё
[777]
secret=xxxxxx
username=777
context=office
dtmfmode=info
host=dynamic
type=friend
diasllow=all
allow=ulaw
allow=alaw
qualify=yes
insecure=invite
canreinvite=no
nat=no
Код: Выделить всё
exten => _X.,1,Dial(SIP/777,,D(${EXTEN:0})))
exten => _X.,n,Hangup