# Add new voip profile

**URL:** <https://forum.genieacs.com/t/add-new-voip-profile/5233>\
**Category:** Uncategorized\
**Created:** [March 25, 2024, 11:01pm UTC](https://forum.genieacs.com/t/add-new-voip-profile/5233 "2024-03-25T23:01:28Z")\
**Posts on this page:** 9\
**Page:** 2

<div class="post-metadata">

**Author:** ![Bagher](https://avatars.discourse-cdn.com/v4/letter/b/d78d45/32.png) [@Bagher](https://forum.genieacs.com/u/Bagher)\
**Post date:** [April 9, 2024, 12:57am UTC](https://forum.genieacs.com/t/add-new-voip-profile/5233/21 "2024-04-09T00:57:03Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Figaro](https://avatars.discourse-cdn.com/v4/letter/f/ea666f/32.png) [@Figaro](https://forum.genieacs.com/u/Figaro)\
**Post date:** [April 9, 2024, 1:40pm UTC](https://forum.genieacs.com/t/add-new-voip-profile/5233/22 "2024-04-09T13:40:13Z")

</div>

```auto
    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" });

```

---

<div class="post-metadata">

**Author:** ![Figaro](https://avatars.discourse-cdn.com/v4/letter/f/ea666f/32.png) [@Figaro](https://forum.genieacs.com/u/Figaro)\
**Post date:** [April 9, 2024, 1:57pm UTC](https://forum.genieacs.com/t/add-new-voip-profile/5233/23 "2024-04-09T13:57:42Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Figaro](https://avatars.discourse-cdn.com/v4/letter/f/ea666f/32.png) [@Figaro](https://forum.genieacs.com/u/Figaro)\
**Post date:** [April 9, 2024, 2:01pm UTC](https://forum.genieacs.com/t/add-new-voip-profile/5233/24 "2024-04-09T14:01:08Z")

</div>

This 2 objects are Huawei custom objects, maybe you will need to look for similar objects depending on your device

```auto
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 });

```

---

<div class="post-metadata">

**Author:** ![Bagher](https://avatars.discourse-cdn.com/v4/letter/b/d78d45/32.png) [@Bagher](https://forum.genieacs.com/u/Bagher)\
**Post date:** [April 9, 2024, 7:55pm UTC](https://forum.genieacs.com/t/add-new-voip-profile/5233/25 "2024-04-09T19:55:44Z")

</div>

thank you @Figaro

---

<div class="post-metadata">

**Author:** ![Bagher](https://avatars.discourse-cdn.com/v4/letter/b/d78d45/32.png) [@Bagher](https://forum.genieacs.com/u/Bagher)\
**Post date:** [April 19, 2024, 7:13pm UTC](https://forum.genieacs.com/t/add-new-voip-profile/5233/26 "2024-04-19T19:13:02Z")

</div>

> [@Figaro](#):
>
> `VoIP.VLAN`

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

---

<div class="post-metadata">

**Author:** ![Figaro](https://avatars.discourse-cdn.com/v4/letter/f/ea666f/32.png) [@Figaro](https://forum.genieacs.com/u/Figaro)\
**Post date:** [April 23, 2024, 3:51pm UTC](https://forum.genieacs.com/t/add-new-voip-profile/5233/27 "2024-04-23T15:51:34Z")

</div>

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.

```auto
    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.

---

<div class="post-metadata">

**Author:** ![Figaro](https://avatars.discourse-cdn.com/v4/letter/f/ea666f/32.png) [@Figaro](https://forum.genieacs.com/u/Figaro)\
**Post date:** [April 23, 2024, 4:05pm UTC](https://forum.genieacs.com/t/add-new-voip-profile/5233/28 "2024-04-23T16:05:29Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Bagher](https://avatars.discourse-cdn.com/v4/letter/b/d78d45/32.png) [@Bagher](https://forum.genieacs.com/u/Bagher)\
**Post date:** [April 27, 2024, 7:11pm UTC](https://forum.genieacs.com/t/add-new-voip-profile/5233/29 "2024-04-27T19:11:30Z")

</div>

> [@Figaro](#):
>
> this depends on you configuration from the OLT (GPON)

useful point

[Previous page](https://forum.genieacs.com/t/add-new-voip-profile/5233.md?page=1)
