hi @Figaro
as you see in picture code in copy & paste process, changed, please send a copy as attached file or copy as code in forum
thanx
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.[]", null, { path: 3 });
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.3.WANIPConnection.[]", null, { path: 1 });
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.3.WANIPConnection.*", { path: now });
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.3.WANIPConnection.*.Name", { value: now }, { value: "Voip" });
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.3.WANIPConnection.*.ConnectionType", { value: now }, { value: "IP_Routed" });
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.3.WANIPConnection.*.NATEnabled", { value: now }, { value: false });
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.3.WANIPConnection.*.Enable", { value: now }, { value: true });
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.3.WANIPConnection.1.AddressingType", { value: now }, { value: "DHCP" });
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.3.WANIPConnection.1.X_HW_SERVICELIST", { value: now }, { value: "VOIP" });
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.3.WANIPConnection.1.X_HW_VLAN", { value: now }, { value: VoIP.VLAN });
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.3.WANIPConnection", { value: now });
declare("InternetGatewayDevice.Services", { value: now });
declare("InternetGatewayDevice.Services.VoiceService", { value: now });
declare("InternetGatewayDevice.Services.VoiceService.1.VoiceProfile", { value: now });
declare("InternetGatewayDevice.Services.VoiceService.1.VoiceProfile.1.SIP.OutboundProxy", { value: now }, { value: "Softswitch IP" });
declare("InternetGatewayDevice.Services.VoiceService.1.VoiceProfile.1.SIP.ProxyServer", { value: now }, { value: "Softswitch IP" });
declare("InternetGatewayDevice.Services.VoiceService.1.VoiceProfile.1.Line.1.SIP.AuthPassword", { value: now }, { value: SIP.PASSWORD });
declare("InternetGatewayDevice.Services.VoiceService.1.VoiceProfile.1.Line.1.SIP.AuthUserName", { value: now }, { value: SIP.USER });
declare("InternetGatewayDevice.Services.VoiceService.1.VoiceProfile.1.Line.1.SIP.URI", { value: now }, { value: TEL.NUMBER });
declare("InternetGatewayDevice.Services.VoiceService.1.VoiceProfile.1.Line.1.Enable", { value: now }, { value: "Enabled" });
Im using path 3 because path 1 it is the TR wan and path 2 it is the internet wan but this is my case, you should adapt it.
This 2 objects are Huawei custom objects, maybe you will need to look for similar objects depending on your device
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.3.WANIPConnection.1.X_HW_SERVICELIST", { value: now }, { value: "VOIP" });
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.3.WANIPConnection.1.X_HW_VLAN", { value: now }, { value: VoIP.VLAN });
thank you @Figaro
hi @Figaro
VoIP.VLAN in { value: VoIP.VLAN }? is static as typed here? is a value such as 203? or something else i must search in other of huwvei ONT attribute value?
another question: Are TEL.NUMBER, SIP.PASSWORD, SIP.USER string type with quatation mark or number? probaly string is correct i asked for sure
Ok.
VoIP.VLAN is a number, we have different VLANs for each service, so in case of Internet/Voip/TR069, we have 200/300/400(this is an example), this depends on you configuration from the OLT (GPON).
TEL.NUMBER, SIP.PASSWORD, SIP.USER are also numbers, and this will depend on your SIP credentials, TEL.NUMBER is the phone number, SIP.PASSWORD is the password configured on your SIP server for the registration and SIP.USER is the same.
declare("InternetGatewayDevice.Services", { value: now });
declare("InternetGatewayDevice.Services.VoiceService", { value: now });
declare("InternetGatewayDevice.Services.VoiceService.1.VoiceProfile", { value: now });
declare("InternetGatewayDevice.Services.VoiceService.1.VoiceProfile.1.SIP.OutboundProxy", { value: now }, { value: "172.16.10.74" });
declare("InternetGatewayDevice.Services.VoiceService.1.VoiceProfile.1.SIP.ProxyServer", { value: now }, { value: "172.16.10.74" });
declare("InternetGatewayDevice.Services.VoiceService.1.VoiceProfile.1.Line.1.SIP.AuthPassword", { value: now }, { value: 2320409168 });
declare("InternetGatewayDevice.Services.VoiceService.1.VoiceProfile.1.Line.1.SIP.AuthUserName", { value: now }, { value: 2320409168 });
declare("InternetGatewayDevice.Services.VoiceService.1.VoiceProfile.1.Line.1.SIP.URI", { value: now }, { value: 2320409168 });
declare("InternetGatewayDevice.Services.VoiceService.1.VoiceProfile.1.Line.1.Enable", { value: now }, { value: "Enabled" });
In this example im using the phone number as user/password for registration on sip server, this is for testing.
My recomendation is that its easier to use a DHCP server for IP adressing on terminals, its not that hard on Linux or Router, you need to do the networking part so your devices can reach the SIP SERVER but it is easier with a large number of devices, once you have the DHCP and routing working you have to set less parameters on each device.
If you have more services on the ONT, “do not” set NAT for VoIP WAN, and remember to set it enable for the Internet WAN.
Do not set de “default route” to the VoIP WAN if you have an Internet WAN on the same device, internet will not work.
Excuse my english.
useful point