SOAP Examples

From Suntel Communications knowledgebase

Jump to: navigation, search

Contents

Static Only

Desciption: Create an APN and add a user for static IP assignment

 CreateAPN( "Suntel" ); // You skip this if APN is already created
 AddMSISDN("Suntel", "0535255xxxxxx", "passwd1");
 AssignStaticIpToMSISDN("Suntel", "0535255xxxxxx", "192.168.1.10");


Single IP Pool

Desciption: Create an APN and an IP pools. Assign two users to the Pool

 CreateAPN( "Suntel" );// You skip this if APN is already created
 CreateIpPool("Suntel", "Pool1", "192.168.0.1", "192.168.0.100");
 AddMSISDN("Suntel", "0535255xxxxxx", "passwd1");  
 AssignMSISDNToIpPool("Suntel", "Pool1", "0535255xxxxxx"); 
 AddMSISDN("Suntel", "0536355xxxxxx", "passwd2");  
 AssignMSISDNToIpPool("Suntel", "Pool1", "0536255xxxxxx"); 


Two IP Pools

Desciption: Create an APN and add two different IP pools. Assign a user to each Pool

 CreateAPN( "Suntel" );// You skip this if APN is already created
 CreateIpPool("Suntel", "Pool1", "192.168.0.1", "192.168.0.100");
 CreateIpPool("Suntel", "Pool2", "192.168.1.1", "192.168.1.100");
 AddMSISDN("Suntel", "0535255xxxxxx", "passwd1");  
 AddMSISDN("Suntel", "0536355xxxxxx", "passwd2");  
 AssignMSISDNToIpPool("Suntel", "Pool1", "0535255xxxxxx"); 
 AssignMSISDNToIpPool("Suntel", "Pool2", "0536355xxxxxx"); 
 

IP Pools and Static Mixed

Desciption: Create an APN and add two different IP pools. Assign a user to each Pool and one user for static IP assignment

 CreateAPN( "Suntel" );// You skip this if APN is already created
 CreateIpPool("Suntel", "Pool1", "192.168.0.1", "192.168.0.100");
 CreateIpPool("Suntel", "Pool2", "192.168.1.1", "192.168.1.100");
 AddMSISDN("Suntel", "0535255xxxxxx", "passwd1");  
 AddMSISDN("Suntel", "0536355xxxxxx", "passwd2");  
 AddMSISDN("Suntel", "0537255xxxxxx", "passwd3");
 AssignMSISDNToIpPool("Suntel", "Pool1", "0535255xxxxxx"); 
 AssignMSISDNToIpPool("Suntel", "Pool2", "0536355xxxxxx"); 
 AssignStaticIpToMSISDN("Suntel", "0537255xxxxxx", "192.168.1.10");

One Pool And Pool Resize

Desciption:Create and APN with a Pool and then change IP Pool Range

 CreateAPN( "Suntel" );// You skip this if APN is already created
 CreateIpPool("Suntel", "Pool1", "192.168.0.1", "192.168.0.100");
 ChangeIpPoolRange("Suntel", "Pool1", "192.168.0.1", "192.168.1.100");
Personal tools