Добрый день! Прошу помочь в настройке шлюза Audiocodes MP114 FXO.
Шлюз подключен к местному ТфОП, без определителя номера.
Регистрация на мико проходит, вопрос в реализации приема звонка, с шлюза приходит в таком виде:
NOTICE[9015] res_pjsip/pjsip_distributor.c: Request 'INVITE' from '"anonymous" <sip:anonymous@anonymous.invalid>' failed for '192.168.10.2:5060' (callid: 1265952452112000224@192.168.88.225) - No matching endpoint found
NOTICE[13733] res_pjsip/pjsip_distributor.c: Request 'INVITE' from '"anonymous" <sip:anonymous@anonymous.invalid>' failed for '192.168.10.2:5060' (callid: 1265952452112000224@192.168.88.225) - No matching endpoint found
NOTICE[13733] res_pjsip/pjsip_distributor.c: Request 'INVITE' from '"anonymous" <sip:anonymous@anonymous.invalid>' failed for '192.168.10.2:5060' (callid: 1265952452112000224@192.168.88.225) - Failed to authenticate
Настройки шлюза:
;**************
; Ini File
;**************
;Board: MP-114 FXO
;Serial Number: 3294737
;Slot Number: 1
;Software Version: 5.80A.023.006
;DSP Software Version: 204IM => 580.05
;Board IP Address: 192.168.88.225
;Board Subnet Mask: 255.255.255.0
;Board Default Gateway: 192.168.88.1
;Ram size: 32M Flash size: 8M
;Num of DSP Cores: 1 Num DSP Channels: 4
;Profile: NONE
;-----------------------------------------
[SYSTEM Params]
DNSPriServerIP = 192.168.88.1
DNSSecServerIP = хх.хх.хх.хх
SyslogServerIP = 192.168.1.1
ENABLEPARAMETERSMONITORING = 1
ActivityListToLog = 'pvc', 'afl', 'fb', 'swu', 'ard', 'naa', 'spc'
[BSP Params]
PCMLawSelect = 3
RoutingTableHopsCountColumn = 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
[Analog Params]
PolarityReversalType = 1
MinFlashHookTime = 100
FXSLoopCharacteristicsFilename = 'MP11x-02-1-FXS_16KHZ.dat'
[ControlProtocols Params]
AdminStateLockControl = 0
[MGCP Params]
[MEGACO Params]
EP_Num_0 = 0
EP_Num_1 = 1
EP_Num_2 = 0
EP_Num_3 = 0
EP_Num_4 = 0
[Voice Engine Params]
CallProgressTonesFilename = 'usa_tones_13.dat'
RFC2833TxPayloadType = 101
RFC2833RxPayloadType = 101
DTMFDetectorSensitivity = 1
[WEB Params]
LogoWidth = '145'
[SIP Params]
MAXDIGITS = 3
ISREGISTERNEEDED = 1
ISWAITFORDIALTONE = 1
ISTWOSTAGEDIAL = 0
CHANNELSELECTMODE = 2
GWDEBUGLEVEL = 5
ENABLEEARLYMEDIA = 1
PROXYNAME = '192.168.0.30'
REGISTRARIP = '192.168.0.30'
SIPGATEWAYNAME = 'MP114'
USERNAME = 'SIP-1671083012'
PASSWORD = 'ххххххх'
ALWAYSSENDTOPROXY = 1
PROXYREDUNDANCYMODE = 1
ALTROUTINGTEL2IPCONNMETHOD = 1
PREFERROUTETABLE = 1
ISFAXUSED = 1
REDUNDANTROUTINGMODE = 2
REGISTRARTRANSPORTTYPE = 0
SIPREROUTINGMODE = 1
SOURCEIPADDRESSINPUT = 0
[IPsec Params]
[SNMP Params]
; *** TABLE DspTemplates ***
; This table contains hidden elements and will not be exposed.
; This table exists on board and will be saved during restarts
; *** TABLE PREFIX ***
[ PREFIX ]
FORMAT PREFIX_Index = PREFIX_DestinationPrefix, PREFIX_DestAddress, PREFIX_SourcePrefix, PREFIX_ProfileId, PREFIX_MeteringCode, PREFIX_DestPort, PREFIX_SrcIPGroupID, PREFIX_DestHostPrefix, PREFIX_DestIPGroupID, PREFIX_SrcHostPrefix, PREFIX_TransportType, PREFIX_SrcTrunkGroupID;
PREFIX 0 = *, 192.168.0.30, *, 0, 255, 5060, -1, , 1, , 0, -1;
[ \PREFIX ]
; *** TABLE CoderName ***
[ CoderName ]
FORMAT CoderName_Index = CoderName_Type, CoderName_PacketInterval, CoderName_rate, CoderName_PayloadType, CoderName_Sce;
CoderName 0 = g711Alaw64k, 20, 255, 255, 0;
CoderName 1 = g711Ulaw64k, 20, 255, 255, 0;
[ \CoderName ]
; *** TABLE TrunkGroup ***
[ TrunkGroup ]
FORMAT TrunkGroup_Index = TrunkGroup_TrunkGroupNum, TrunkGroup_FirstTrunkId, TrunkGroup_FirstBChannel, TrunkGroup_LastBChannel, TrunkGroup_FirstPhoneNumber, TrunkGroup_ProfileId, TrunkGroup_LastTrunkId, TrunkGroup_Module;
TrunkGroup 0 = 0, 255, 1, 1, SIP-1671083012, 0, 255, 255;
[ \TrunkGroup ]
; *** TABLE PstnPrefix ***
[ PstnPrefix ]
FORMAT PstnPrefix_Index = PstnPrefix_DestPrefix, PstnPrefix_TrunkGroupId, PstnPrefix_SourcePrefix, PstnPrefix_SourceAddress, PstnPrefix_ProfileId, PstnPrefix_SrcIPGroupID, PstnPrefix_DestHostPrefix, PstnPrefix_SrcHostPrefix;
PstnPrefix 0 = 500, 0, , , 0, -1, , ;
PstnPrefix 1 = 500, 0, , , 0, -1, , ;
PstnPrefix 2 = 500, 0, , , 0, -1, , ;
PstnPrefix 3 = 500, 0, , , 0, -1, , ;
[ \PstnPrefix ]
; *** TABLE ProxyIp ***
[ ProxyIp ]
FORMAT ProxyIp_Index = ProxyIp_IpAddress, ProxyIp_TransportType, ProxyIp_ProxySetId;
ProxyIp 0 = 192.168.0.30:5060, 0, 0;
[ \ProxyIp ]
; *** TABLE TxDtmfOption ***
[ TxDtmfOption ]
FORMAT TxDtmfOption_Index = TxDtmfOption_Type;
TxDtmfOption 0 = 4;
[ \TxDtmfOption ]
; *** TABLE TelProfile ***
[ TelProfile ]
FORMAT TelProfile_Index = TelProfile_ProfileName, TelProfile_TelPreference, TelProfile_CodersGroupID, TelProfile_IsFaxUsed, TelProfile_JitterBufMinDelay, TelProfile_JitterBufOptFactor, TelProfile_IPDiffServ, TelProfile_SigIPDiffServ, TelProfile_DtmfVolume, TelProfile_InputGain, TelProfile_VoiceVolume, TelProfile_EnableReversePolarity, TelProfile_EnableCurrentDisconnect, TelProfile_EnableDigitDelivery, TelProfile_EnableEC, TelProfile_MWIAnalog, TelProfile_MWIDisplay, TelProfile_FlashHookPeriod, TelProfile_EnableEarlyMedia, TelProfile_ProgressIndicator2IP, TelProfile_TimeForReorderTone, TelProfile_EnableDIDWink, TelProfile_IsTwoStageDial, TelProfile_DisconnectOnBusyTone, TelProfile_EnableVoiceMailDelay, TelProfile_DialPlanIndex;
TelProfile 1 = Work, 1, 0, 1, 10, 10, 46, 40, -11, 0, 0, 0, 0, 0, 1, 0, 0, 700, 1, -1, 255, 0, 0, 1, 1, -1;
[ \TelProfile ]
; *** TABLE CallerDisplayInfo ***
[ CallerDisplayInfo ]
FORMAT CallerDisplayInfo_Index = CallerDisplayInfo_DisplayString, CallerDisplayInfo_IsCidRestricted;
CallerDisplayInfo 0 = 73913122600, 1;
CallerDisplayInfo 1 = 01102, 1;
CallerDisplayInfo 2 = 01103, 1;
CallerDisplayInfo 3 = 01104, 1;
[ \CallerDisplayInfo ]
; *** TABLE TargetOfChannel ***
[ TargetOfChannel ]
FORMAT TargetOfChannel_Index = TargetOfChannel_Destination, TargetOfChannel_Type;
TargetOfChannel 0 = 73913122600, 1;
TargetOfChannel 1 = 1000, 0;
TargetOfChannel 2 = 1000, 0;
TargetOfChannel 3 = 1000, 0;
[ \TargetOfChannel ]
; *** TABLE Authentication ***
[ Authentication ]
FORMAT Authentication_Index = Authentication_UserId, Authentication_UserPassword;
Authentication 0 = SIP-1671083012, ххххххххх;
Authentication 1 = 1102, 130380;
Authentication 2 = 1103, 130380;
Authentication 3 = 1104, 130380;
[ \Authentication ]
; *** TABLE ProxySet ***
[ ProxySet ]
FORMAT ProxySet_Index = ProxySet_EnableProxyKeepAlive, ProxySet_ProxyKeepAliveTime, ProxySet_ProxyLoadBalancingMethod, ProxySet_IsProxyHotSwap, ProxySet_SRD;
ProxySet 0 = 2, 60, 0, 1, 0;
[ \ProxySet ]
; *** TABLE Account ***
[ Account ]
FORMAT Account_Index = Account_ServedTrunkGroup, Account_ServedIPGroup, Account_ServingIPGroup, Account_Username, Account_Password, Account_HostName, Account_Register, Account_ContactUser, Account_ApplicationType;
Account 1 = -1, -1, 1, , , , 0, , 0;
[ \Account ]
Было принято решение воспользоваться инструкцией https://wiki.mikopbx.ru/faq:specific_provider#zvonok_cherez_opredelennogo_provajdera
В extension.conf добавлен в конец данный блок:
[public-direct-dial-custom]
exten => 2200102,1,Goto(ivr-2200102,s,1)
same => n,Set(__MIKO_PREFIX_NUMBER=2)
same => n,Return()
В логах так:
[2022-12-21 00:19:36] NOTICE[3669] res_pjsip_session.c: anonymous: Call (UDP:192.168.10.2:5060) to extension '2200102' rejected because extension not found in context 'public-direct-dial'.
Хотя если изменить extension.conf полностью подменой и заменить контекст public-direct-dial в таком виде, то звонок проходит:
[public-direct-dial]
exten => 2200102,1,Goto(ivr-2200102,s,1)
same => n,Set(__MIKO_PREFIX_NUMBER=2)
same => n,Return()
Прошу по возможности подсказать верный выход из ситуации.