есть ap100 2fxs порта, при звонке с любого порта на удаленном конце (asterisk)номер определяется как 104. как сконфигурировать звонки что бы звонки отобразались как 104 при звонке с одной трубки и 105 с другой. при опоытке сделать translation rule 104 -> 105 астериск показывает или clid network-number 105:
[Aug 28 12:14:35] WARNING[101650]: chan_sip.c:14962 check_auth: username mismatch, have <105>, digest has <104>
[Aug 28 12:14:35] NOTICE[101650]: chan_sip.c:23477 handle_request_invite: Failed to authenticate device <sip:105@xxx.xxx.xxx.xxx>;tag=3000aaeea4
конфиг.
! VoIP configuration.
!
!
! Voice service voip configuration.
!
voice service voip
fax protocol t38 redundancy 0
fax rate 9600
h323 call start fast
h323 call tunnel enable
timeout tring 180
busyout monitor gatekeeper
busyout monitor sip-server
no busyout monitor callagent
busyout monitor voip-interface
!
!
! Voice port configuration.
!
! FXS
voice-port 0/0
caller-id enable
!
!
! FXS
voice-port 0/1
caller-id enable
!
!
!
!
! Pots peer configuration.
!
dial-peer voice 0 pots
destination-pattern 104
numbering-type international
port 0/0
user-name ******
user-password ******
!
dial-peer voice 1 pots
destination-pattern 105
numbering-type international
port 0/1
user-name ******
user-password ******
!
!
!
! Voip peer configuration.
!
dial-peer voice 100 voip
destination-pattern 00.
session target sip-server
session protocol sip
voice-class codec 0
no vad
dtmf-relay rtp-2833
huntstop
!
dial-peer voice 101 voip
destination-pattern 0[12349]
session target sip-server
session protocol sip
voice-class codec 0
no vad
dtmf-relay rtp-2833
huntstop
!
dial-peer voice 102 voip
destination-pattern 0[5-8].
session target sip-server
session protocol sip
voice-class codec 0
no vad
dtmf-relay rtp-2833
huntstop
!
dial-peer voice 103 voip
destination-pattern 1..
session target sip-server
clid network-line-number 104
session protocol sip
voice-class codec 0
no vad
dtmf-relay rtp-2833
huntstop
!
dial-peer voice 104 voip
destination-pattern [2345679]......
session target sip-server
clid network-line-number 104
session protocol sip
voice-class codec 0
no vad
dtmf-relay rtp-2833
translate-outgoing calling-number 0
huntstop
!
dial-peer voice 105 voip
destination-pattern 8[0345678].......
session target sip-server
clid network-line-number 105
session protocol sip
voice-class codec 0
no vad
dtmf-relay rtp-2833
huntstop
!
dial-peer voice 106 voip
destination-pattern 8[125]T
session target sip-server
session protocol sip
voice-class codec 0
no vad
dtmf-relay rtp-2833
huntstop
!
dial-peer voice 107 voip
destination-pattern 8[012345679].........
session target sip-server
clid network-line-number 104
session protocol sip
voice-class codec 0
no vad
dtmf-relay rtp-2833
huntstop
!
dial-peer voice 1000 voip
destination-pattern T
session target sip-server
session protocol sip
voice-class codec 0
no vad
dtmf-relay rtp-2833
!
!
!
!
!
!
! Gateway configuration.
!
gateway
h323-id voip.10.69.0.2
no ignore-msg-from-other-gk
register
!
!
! Codec classes configuration.
!
voice class codec 0
codec preference 1 g7231r63
codec preference 2 g729
codec preference 3 g711ulaw
codec preference 4 g711alaw
!
!
!
! SIP UA configuration.
!
sip-ua
user-register
sip-server ххх.ххх.ххх.ххх
timeout treg 3600
timeout tregtry 60
register e164
!
!
! MGCP configuration.
!
mgcp
vad
!
!
! Tones
!
!
!
!
line console
!
line vty
exec-timeout 30000 0
!
!
sms
quota 30
!
end