Api's
Incoming Call notifications :
WebService Name
http://ip-pabx.com/webservice/incomingcall.asmx
Method for Incoming Call
This method is used to make the call through IP-PABX. The user is required to give UserID, Password and Extension he’ll get a Call to the desired Extension.
Method Signature
public string getingommingcall(string UID,string pass, string extto)
Example Usage
We are providing a sample code in .NET that accesses and uses this service.
public string GetIncomingCall()
{
MSXML.XMLHTTPRequest objHTTP=(MSXML.XMLHTTPRequest)
Activator.CreateInstance(Type.GetTypeFromProgID("Microsoft.XMLHTTP"));
string strMethodPkg;
strMethodPkg = @"<SOAP-ENV:Envelope SOAP-ENV:encodingStyle=""http://schemas.xmlsoap.org/soap/encoding/"" xmlns:SOAP-ENV=""http://schemas.xmlsoap.org/soap/envelope/"" xmlns:xsd=""http://www.w3.org/2001/XMLSchema"" xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:SOAP-ENC=""http://schemas.xmlsoap.org/soap/encoding/"">";
strMethodPkg += @"<SOAP-ENV:Body>";
strMethodPkg += @"<getingommingcall xmlns=' http://tempuri.org/ '>";
strMethodPkg += @"<UID>"+UID+"</UID>";
strMethodPkg += @"<pass>"+Pass+"</pass>";
strMethodPkg += @"<extto>"+extto+"</extto>
strMethodPkg += @"</getingommingcall>";
strMethodPkg += @"</SOAP-ENV:Body>";
strMethodPkg += @"</SOAP-ENV:Envelope>";
objHTTP.open("Post", " http://ip-pabx.com/webservice/incomingcall.asmx?wsdl", false, "", "");
objHTTP.setRequestHeader("Content-Type", "text/xml")
objHTTP.setRequestHeader("SOAPAction", "http://tempuri.org/getingommingcall");
objHTTP.send(strMethodPkg);
string xmlDataReturned = objHTTP.responseText;
XmlDocument doc = new XmlDocument();
doc.LoadXml(xmlDataReturned);
return xmlDataReturned;
}
Fields Returned:
It's returned the string
if the call is connected it returned "Authentication accepted"
if the call is not connected it returned "Connection to server lost."
Hangup Notification with Data :
WebService Name
http://ip-pabx.com/webservice/CallHangup.asmx
Method for Hangup Call
This method is usedhangup call through IP-PABX. The user is required to give Number and he’ll hangup Call to the desired Number.
Method Signature
public string GetCallHangup(string num)
Example Usage
We are providing a sample code in .NET that accesses and uses this service.
public string CallHangUp()
{
MSXML.XMLHTTPRequestobjHTTP=(MSXML.XMLHTTPRequest)
Activator.CreateInstance(Type.GetTypeFromProgID("Microsoft.XMLHTTP"));
string strMethodPkg;
strMethodPkg = @"<SOAP-ENV:Envelope SOAP-ENV:encodingStyle=""http://schemas.xmlsoap.org/soap/encoding/"" xmlns:SOAP-ENV=""http://schemas.xmlsoap.org/soap/envelope/"" xmlns:xsd=""http://www.w3.org/2001/XMLSchema"" xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:SOAP-ENC=""http://schemas.xmlsoap.org/soap/encoding/"">";
strMethodPkg += @"<SOAP-ENV:Body>";
strMethodPkg += @"<GetCallHangup xmlns=' http://tempuri.org/ '>";
strMethodPkg += @"<num>"+numb+"</num>";
strMethodPkg += @"</GetCallHangup>";
strMethodPkg += @"</SOAP-ENV:Body>";
strMethodPkg += @"</SOAP-ENV:Envelope>";
objHTTP.open("Post", "http://ip-pabx.com/webservice/CallHangup.asmx?wsdl", false, "", "");
objHTTP.setRequestHeader("Content-Type", "text/xml");
objHTTP.setRequestHeader("SOAPAction", "http://tempuri.org/GetCallHangup");
objHTTP.send(strMethodPkg);
string xmlDataReturned = objHTTP.responseText;
XmlDocument doc = new XmlDocument();
doc.LoadXml(xmlDataReturned);
return xmlDataReturned;
}
Fields Returned:
It's returned the string
if the call is Hangup it returned "Authentication accepted"
if the call is not connected it returned "Connection to server lost."
Call Recording :
WebService Name
http://ip-pabx.com/webservice/CallRecording.asmx
Method for Getting Call Records
This method returns the information of Call Recording of a user in the form of an array. The user is required to give User ID, Password and he’ll get a Call Recording of the User.
Method Signature
public string[][] getCallRecordings(string UserID, string Password)
Example Usage
We are providing a sample code in .NET that accesses and uses this service.
public string[][] CallRecord()
{
MSXML.XMLHTTPRequest objHTTP=(MSXML.XMLHTTPRequest)
Activator.CreateInstance(Type.GetTypeFromProgID("Microsoft.XMLHTTP"));
string strMethodPkg;
strMethodPkg=@"<SOAP-ENV:Envelope SOAP-ENV:encodingStyle=""http://schemas.xmlsoap.org/soap/encoding/"" xmlns:SOAP-ENV=""http://schemas.xmlsoap.org/soap/envelope/"" xmlns:xsd=""http://www.w3.org/2001/XMLSchema"" xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:SOAP-ENC=""http://schemas.xmlsoap.org/soap/encoding/"">";
strMethodPkg += @"<SOAP-ENV:Body>";
strMethodPkg += @"<getCallRecordings xmlns=' http://tempuri.org/ '>";
strMethodPkg += @"<UserID>"+UID+"</UserID>";
strMethodPkg += @"<Password>"+Pass+"</Password>";
strMethodPkg += @"</getCallRecordings>";
strMethodPkg += @"</SOAP-ENV:Body>";
strMethodPkg += @"</SOAP-ENV:Envelope>";
objHTTP.open("Post", "http://ip-pabx.com/webservice/CallRecording.asmx?wsdl", false, "", "");
objHTTP.setRequestHeader("Content-Type", "text/xml");
objHTTP.setRequestHeader("SOAPAction", "http://tempuri.org/getCallRecordings");
objHTTP.send(strMethodPkg);
string xmlDataReturned = objHTTP.responseText;
XmlDocument doc = new XmlDocument();
doc.LoadXml(xmlDataReturned);
return xmlDataReturned;
}
Fields Returned:
sno
callfrom
callto
tempfinaldate1
wav_file
Outgoing call generation :
WebService Name
http://ip-pabx.com/webservice/Outgoingcall.asmx
Method for Out going call generation
This method is used to make the call through IP-PABX. The user is required to give UserID, Password and Number he’ll get a Call to the desired Number.
Method Signature
public string Outgoingcallgeneration (string UID,string number,string pass)
Example Usage
We are providing a sample code in .NET that accesses and uses this service.
public string OutGoingCall()
{
MSXML.XMLHTTPRequest objHTTP=(MSXML.XMLHTTPRequest)
Activator.CreateInstance(Type.GetTypeFromProgID("Microsoft.XMLHTTP"));
string strMethodPkg;
strMethodPkg = @"<SOAP-ENV:Envelope SOAP-ENV:encodingStyle=""http://schemas.xmlsoap.org/soap/encoding/"" xmlns:SOAP-ENV=""http://schemas.xmlsoap.org/soap/envelope/"" xmlns:xsd=""http://www.w3.org/2001/XMLSchema"" xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:SOAP-ENC=""http://schemas.xmlsoap.org/soap/encoding/"">";
strMethodPkg += @"<SOAP-ENV:Body>";
strMethodPkg += @"<Outgoingcallgeneration xmlns=' http://tempuri.org/ '>";
strMethodPkg += @"<UID>"+UID+"</UID>";
strMethodPkg += @"<number>"+numb+"</number>";
strMethodPkg += @"<pass>"+pass+"</pass>
strMethodPkg += @"</Outgoingcallgeneration>";
strMethodPkg += @"</SOAP-ENV:Body>";
strMethodPkg += @"</SOAP-ENV:Envelope>";
objHTTP.open("Post", "http://ip-pabx.com/webservice/Outgoingcall.asmx?wsdl", false, "", "");
objHTTP.setRequestHeader("Content-Type", "text/xml");
objHTTP.setRequestHeader("SOAPAction", "http://tempuri.org/Outgoingcallgeneration");
objHTTP.send(strMethodPkg);
string xmlDataReturned = objHTTP.responseText;
XmlDocument doc = new XmlDocument();
doc.LoadXml(xmlDataReturned);
return xmlDataReturned;
}
Fields Returned:
It's returned the string
if the call is connected it returned "Authentication accepted"
if the call is not connected it returned "Connection to server lost."
tempfinaldate1
wav_file
Missed Call Logs :
WebService Name
http://ip-pabx.com/webservice/missedCall.asmx
Method for Getting Missed Call Logs
This method returns the information of missed Calls of a user in the form of an array. The user is required to give OrderID,disposition and he’ll get a Missed Call Log information .
Method Signature
public string[][] getMissCalls(string OID, string disposition)
Example Usage
We are providing a sample code in .NET that accesses and uses this service.
public string[][] MissedCall()
{
MSXML.XMLHTTPRequest objHTTP=(MSXML.XMLHTTPRequest)
Activator.CreateInstance(Type.GetTypeFromProgID("Microsoft.XMLHTTP"));
string strMethodPkg;
strMethodPkg = @"<SOAP-ENV:Envelope SOAP-ENV:encodingStyle=""http://schemas.xmlsoap.org/soap/encoding/"" xmlns:SOAP-ENV=""http://schemas.xmlsoap.org/soap/envelope/"" xmlns:xsd=""http://www.w3.org/2001/XMLSchema"" xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:SOAP-ENC=""http://schemas.xmlsoap.org/soap/encoding/"">";
strMethodPkg += @"<SOAP-ENV:Body>";
strMethodPkg += @"<getMissCalls xmlns=' http://tempuri.org/ '>";
strMethodPkg += @"<OID>"+oid+"</OID>";
strMethodPkg += @"<disposition>"+disp+"</disposition>";
strMethodPkg += @"</getMissCalls>";
strMethodPkg += @"</SOAP-ENV:Body>";
strMethodPkg += @"</SOAP-ENV:Envelope>";
objHTTP.open("Post", "http://ip-pabx.com/webservice/missedCall.asmx?wsdl", false, "", "");
objHTTP.setRequestHeader("Content-Type", "text/xml");
objHTTP.setRequestHeader("SOAPAction", "http://tempuri.org/getMissCalls");
objHTTP.send(strMethodPkg);
string xmlDataReturned = objHTTP.responseText;
XmlDocument doc = new XmlDocument();
doc.LoadXml(xmlDataReturned);
return xmlDataReturned;
}
Fields Returned:
OID
calldate
src
disposition
amount
cost
callid
User Login Information :
WebService Name
http://ip-pabx.com/webservice/loginUserInfo.asmx
Method for Getting Login User Information
This method returns the information of login user in the form of an array. The user is required to give User ID, Password and he’ll get a login user information .
Method Signature
public string[][] getLoginUserInfo(string UID, string Pass)
Example Usage
We are providing a sample code in .NET that accesses and uses this service.
public string[][] UserInfo()
{
MSXML.XMLHTTPRequest objHTTP=(MSXML.XMLHTTPRequest)
Activator.CreateInstance(Type.GetTypeFromProgID("Microsoft.XMLHTTP"));
string strMethodPkg;
strMethodPkg = @"<SOAP-ENV:Envelope SOAP-ENV:encodingStyle=""http://schemas.xmlsoap.org/soap/encoding/"" xmlns:SOAP-ENV=""http://schemas.xmlsoap.org/soap/envelope/"" xmlns:xsd=""http://www.w3.org/2001/XMLSchema"" xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:SOAP-ENC=""http://schemas.xmlsoap.org/soap/encoding/"">";
strMethodPkg += @"<SOAP-ENV:Body>";
strMethodPkg += @"<getLoginUserInfo xmlns=' http://tempuri.org/ '>";
strMethodPkg += @"<UID>"+UID+"</UID>";
strMethodPkg += @"<Pass>"+Pass+"</Pass>";
strMethodPkg += @"</getLoginUserInfo>";
strMethodPkg += @"</SOAP-ENV:Body>";
strMethodPkg += @"</SOAP-ENV:Envelope>";
objHTTP.open("Post", " http://ip-pabx.com/webservice/loginUserInfo.asmx?wsdl", false, "", "");
objHTTP.setRequestHeader("Content-Type", "text/xml");
objHTTP.setRequestHeader("SOAPAction", "http://tempuri.org/getLoginUserInfo");
objHTTP.send(strMethodPkg);
string xmlDataReturned = objHTTP.responseText;
XmlDocument doc = new XmlDocument();
doc.LoadXml(xmlDataReturned);
return xmlDataReturned;
}
Fields Returned:
UserName
Company
telHome
cell
UID
pass
ipaddress
dateTime
Voicemail Information :
WebService Name
http://ip-pabx.com/webservice/voicemail.asmx
Method for Voicemail Information
This method is used to Provide the Voicemail Information using IP-PABX. The user is required to give Extension, Password and he’ll get all the Voicemail Information of the desired Extension.
Method Signature
public string[][] getvoicemail(string ext,string pass)
Example Usage
We are providing a sample code in .NET that accesses and uses this service.
public string[][] VoiceMail()
{
MSXML.XMLHTTPRequest objHTTP=(MSXML.XMLHTTPRequest)
Activator.CreateInstance(Type.GetTypeFromProgID("Microsoft.XMLHTTP"));
string strMethodPkg;
strMethodPkg = @"<SOAP-ENV:Envelope SOAP-ENV:encodingStyle=""http://schemas.xmlsoap.org/soap/encoding/"" xmlns:SOAP-ENV=""http://schemas.xmlsoap.org/soap/envelope/"" xmlns:xsd=""http://www.w3.org/2001/XMLSchema"" xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:SOAP-ENC=""http://schemas.xmlsoap.org/soap/encoding/"">";
strMethodPkg += @"<SOAP-ENV:Body>";
strMethodPkg += @"<getvoicemail xmlns=' http://tempuri.org/ '>";
strMethodPkg += @"<ext>"+extension+"</ext>";
strMethodPkg += @"<pass>"+Pass+"</pass>";
strMethodPkg += @"</getvoicemail>";
strMethodPkg += @"</SOAP-ENV:Body>";
strMethodPkg += @"</SOAP-ENV:Envelope>";
objHTTP.open("Post", " http://ip-pabx.com/webservice/voicemail.asmx?wsdl", false, "", "");
objHTTP.setRequestHeader("Content-Type", "text/xml");
objHTTP.setRequestHeader("SOAPAction", "http://tempuri.org/getvoicemail");
objHTTP.send(strMethodPkg);
string xmlDataReturned = objHTTP.responseText;
XmlDocument doc = new XmlDocument();
doc.LoadXml(xmlDataReturned);
return xmlDataReturned;
}
Fields Returned:
It's returned the string Array
CallerID
Duration
Date
Time
Extension
Add Device Information :
WebService Name
http://ip-pabx.com/webservice/device.asmx
Method for Add Device
This method is used to Add the device Information using IP-PABX. The user is required to give UID, Password,Device Name,MACAddress and he’ll add device Information which he want.
Method Signature
public bool addDevice(string UID,string Pass,string Device,string MACAddress)
Example Usage
We are providing a sample code in .NET that accesses and uses this service.
public bool AddDevice()
{
MSXML.XMLHTTPRequest objHTTP=(MSXML.XMLHTTPRequest)
Activator.CreateInstance(Type.GetTypeFromProgID("Microsoft.XMLHTTP"));
string strMethodPkg;
strMethodPkg = @"<SOAP-ENV:Envelope SOAP-ENV:encodingStyle=""http://schemas.xmlsoap.org/soap/encoding/"" xmlns:SOAP-ENV=""http://schemas.xmlsoap.org/soap/envelope/"" xmlns:xsd=""http://www.w3.org/2001/XMLSchema"" xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:SOAP-ENC=""http://schemas.xmlsoap.org/soap/encoding/"">";
strMethodPkg += @"<SOAP-ENV:Body>";
strMethodPkg += @"<addDevice xmlns=' http://tempuri.org/ '>";
strMethodPkg += @"<UID>"+UID+"</UID>";
strMethodPkg += @"<Pass>"+Pass+"</Pass>";
strMethodPkg += @"<Device>"+Device+"</Device>
strMethodPkg += @"<MACAddress>"+MACAddress+"</MACAddress>
strMethodPkg += @"</addDevice>";
strMethodPkg += @"</SOAP-ENV:Body>";
strMethodPkg += @"</SOAP-ENV:Envelope>";
objHTTP.open("Post",
"http://www.ip-pabx.com/webservice/device.asmx?wsdl", false, "",
"");
objHTTP.setRequestHeader("Content-Type", "text/xml");
objHTTP.setRequestHeader("SOAPAction", "http://tempuri.org/addDevice");
objHTTP.send(strMethodPkg);
string xmlDataReturned = objHTTP.responseText;
XmlDocument doc = new XmlDocument();
doc.LoadXml(xmlDataReturned);
return xmlDataReturned;
}
Fields Returned:
It's returned the bool
If Device add then it return True
If Device add then it return False
Get Device Information :
WebService Name
http://ip-pabx.com/webservice/device.asmx
Method for Getting Device Information
This method is used to get the device Information using IP-PABX. The user is required to give UID, Password and he’ll get all his device Information which he has.
Method Signature
public string[][] getdevice(string UID, string Pass)
Example Usage
We are providing a sample code in .NET that accesses and uses this service.
public string[][] GetDevice()
{
MSXML.XMLHTTPRequest objHTTP=(MSXML.XMLHTTPRequest)
Activator.CreateInstance(Type.GetTypeFromProgID("Microsoft.XMLHTTP"));
string strMethodPkg;
strMethodPkg = @"<SOAP-ENV:Envelope SOAP-ENV:encodingStyle=""http://schemas.xmlsoap.org/soap/encoding/"" xmlns:SOAP-ENV=""http://schemas.xmlsoap.org/soap/envelope/"" xmlns:xsd=""http://www.w3.org/2001/XMLSchema"" xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:SOAP-ENC=""http://schemas.xmlsoap.org/soap/encoding/"">";
strMethodPkg += @"<SOAP-ENV:Body>";
strMethodPkg += @"<getdevice xmlns=' http://tempuri.org/ '>";
strMethodPkg += @"<UID>"+UID+"</UID>";
strMethodPkg += @"<Pass>"+Pass+"</Pass>";
strMethodPkg += @"</getdevice>";
strMethodPkg += @"</SOAP-ENV:Body>";
strMethodPkg += @"</SOAP-ENV:Envelope>";
objHTTP.open("Post", "http://ip-pabx.com/webservice/device.asmx?wsdl", false, "", "");
objHTTP.setRequestHeader("Content-Type", "text/xml");
objHTTP.setRequestHeader("SOAPAction", "http://tempuri.org/getdevice");
objHTTP.send(strMethodPkg);
string xmlDataReturned = objHTTP.responseText;
XmlDocument doc = new XmlDocument();
doc.LoadXml(xmlDataReturned);
return xmlDataReturned;
}
Fields Returned:
It's returned in the form of string array
UID
Name
MACAddress
Device
Port1
Port2
Port3
Number List :
WebService Name
http://ip-pabx.com/webservice/numberlist.asmx
Method for Getting List of Numbers
This method is used to get the number list of the user using IP-PABX. The user is required to give UID, Password and he’ll get all his number list.
Method Signature
public string[][] getnumberlist(string uid, string pass)
Example Usage
We are providing a sample code in .NET that accesses and uses this service.
public string[][] NumberList()
{
MSXML.XMLHTTPRequest objHTTP=(MSXML.XMLHTTPRequest)
Activator.CreateInstance(Type.GetTypeFromProgID("Microsoft.XMLHTTP"));
string strMethodPkg;
strMethodPkg = @"<SOAP-ENV:Envelope SOAP-ENV:encodingStyle=""http://schemas.xmlsoap.org/soap/encoding/"" xmlns:SOAP-ENV=""http://schemas.xmlsoap.org/soap/envelope/"" xmlns:xsd=""http://www.w3.org/2001/XMLSchema"" xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:SOAP-ENC=""http://schemas.xmlsoap.org/soap/encoding/"">";
strMethodPkg += @"<SOAP-ENV:Body>";
strMethodPkg += @"<getnumberlist xmlns=' http://tempuri.org/ '>";
strMethodPkg += @"<uid>"+UID+"</uid>";
strMethodPkg += @"<pass>"+Pass+"</pass>";
strMethodPkg += @"</getnumberlist>";
strMethodPkg += @"</SOAP-ENV:Body>";
strMethodPkg += @"</SOAP-ENV:Envelope>";
objHTTP.open("Post", "http://ip-pabx.com/webservice/numberlist.asmx?wsdl", false, "", "");
objHTTP.setRequestHeader("Content-Type", "text/xml");
objHTTP.setRequestHeader("SOAPAction", "http://tempuri.org/getnumberlist");
objHTTP.send(strMethodPkg);
string xmlDataReturned = objHTTP.responseText;
XmlDocument doc = new XmlDocument();
doc.LoadXml(xmlDataReturned);
return xmlDataReturned;
}
Fields Returned:
It's returned in the form of string array
did
id
date
didname
Extension List :
WebService Name
http://ip-pabx.com/webservice/Extension.asmx
Method for Getting Extension List
This method is used to get the list of Extension of the user using IP-PABX. The user is required to give UID, Password and he’ll get all his device Information which he has.
Method Signature
public string[][] getextension(string uid,string pass)
Example Usage
We are providing a sample code in .NET that accesses and uses this service.
public string[][] ExtensionList()
{
MSXML.XMLHTTPRequest objHTTP=(MSXML.XMLHTTPRequest)
Activator.CreateInstance(Type.GetTypeFromProgID("Microsoft.XMLHTTP"));
string strMethodPkg;
strMethodPkg = @"<SOAP-ENV:Envelope SOAP-ENV:encodingStyle=""http://schemas.xmlsoap.org/soap/encoding/"" xmlns:SOAP-ENV=""http://schemas.xmlsoap.org/soap/envelope/"" xmlns:xsd=""http://www.w3.org/2001/XMLSchema"" xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:SOAP-ENC=""http://schemas.xmlsoap.org/soap/encoding/"">";
strMethodPkg += @"<SOAP-ENV:Body>";
strMethodPkg += @"<getextension xmlns=' http://tempuri.org/ '>";
strMethodPkg += @"<uid>"+UID+"</uid>";
strMethodPkg += @"<pass>"+Pass+"</pass>";
strMethodPkg += @"</getextension>";
strMethodPkg += @"</SOAP-ENV:Body>";
strMethodPkg += @"</SOAP-ENV:Envelope>";
objHTTP.open("Post", "http://ip-pabx.com/webservice/Extension.asmx?wsdl", false, "", "");
objHTTP.setRequestHeader("Content-Type", "text/xml");
objHTTP.setRequestHeader("SOAPAction", "http://tempuri.org/getextension");
objHTTP.send(strMethodPkg);
string xmlDataReturned = objHTTP.responseText;
XmlDocument doc = new XmlDocument();
doc.LoadXml(xmlDataReturned);
return xmlDataReturned;
}
Fields Returned:
It's returned in the form of string array
username
name
Add Extension :
WebService Name
http://ip-pabx.com/webservice/Extension.asmx
Method for Adding Extension
This method is used to add Extension of the user using IP-PABX. The user is required to give UID, Password,number of Extension
Method Signature
public bool addExtension(string uid, string pass, int noExt)
Example Usage
We are providing a sample code in .NET that accesses and uses this service.
public bool AddExt()
{
MSXML.XMLHTTPRequest objHTTP=(MSXML.XMLHTTPRequest)
Activator.CreateInstance(Type.GetTypeFromProgID("Microsoft.XMLHTTP"));
string strMethodPkg;
strMethodPkg = @"<SOAP-ENV:Envelope SOAP-ENV:encodingStyle=""http://schemas.xmlsoap.org/soap/encoding/"" xmlns:SOAP-ENV=""http://schemas.xmlsoap.org/soap/envelope/"" xmlns:xsd=""http://www.w3.org/2001/XMLSchema"" xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:SOAP-ENC=""http://schemas.xmlsoap.org/soap/encoding/"">";
strMethodPkg += @"<SOAP-ENV:Body>";
strMethodPkg += @"<addExtension xmlns=' http://tempuri.org/ '>";
strMethodPkg += @"<uid>"+UID+"</uid>";
strMethodPkg += @"<pass>"+Pass+"</pass>";
strMethodPkg += @"<noExt>"+ext+"</noExt>
strMethodPkg += @"</addExtension>";
strMethodPkg += @"</SOAP-ENV:Body>";
strMethodPkg += @"</SOAP-ENV:Envelope>";
objHTTP.open("Post", "http://ip-pabx.com/webservice/Extension.asmx?wsdl", false, "", "");
objHTTP.setRequestHeader("Content-Type", "text/xml");
objHTTP.setRequestHeader("SOAPAction", "http://tempuri.org/addExtension");
objHTTP.send(strMethodPkg);
string xmlDataReturned = objHTTP.responseText;
XmlDocument doc = new XmlDocument();
doc.LoadXml(xmlDataReturned);
return xmlDataReturned;
}
Fields Returned:
It's returned the bool
If Device add then it return True
If Device add then it return False
Delete Number :
WebService Name
http://ip-pabx.com/webservice/deletenumber.asmx
Method for Deleting Number
This method is used to delete the number of the user using IP-PABX. The user is required to give UID, Password,number
Method Signature
public bool DeleteNum(string uid,string pass,string number)
Example Usage
We are providing a sample code in .NET that accesses and uses this service.
public bool DelNumber()
{
MSXML.XMLHTTPRequest objHTTP=(MSXML.XMLHTTPRequest)
Activator.CreateInstance(Type.GetTypeFromProgID("Microsoft.XMLHTTP"));
string strMethodPkg;
strMethodPkg = @"<SOAP-ENV:Envelope SOAP-ENV:encodingStyle=""http://schemas.xmlsoap.org/soap/encoding/"" xmlns:SOAP-ENV=""http://schemas.xmlsoap.org/soap/envelope/"" xmlns:xsd=""http://www.w3.org/2001/XMLSchema"" xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:SOAP-ENC=""http://schemas.xmlsoap.org/soap/encoding/"">";
strMethodPkg += @"<SOAP-ENV:Body>";
strMethodPkg += @"<DeleteNum xmlns=' http://tempuri.org/ '>";
strMethodPkg += @"<uid>"+UID+"</uid>";
strMethodPkg += @"<pass>"+Pass+"</pass>";
strMethodPkg += @"<number>"+no+"</number>
strMethodPkg += @"</DeleteNum>";
strMethodPkg += @"</SOAP-ENV:Body>";
strMethodPkg += @"</SOAP-ENV:Envelope>";
objHTTP.open("Post", "http://ip-pabx.com/webservice/deletenumber.asmx?wsdl", false, "", "");
objHTTP.setRequestHeader("Content-Type", "text/xml");
objHTTP.setRequestHeader("SOAPAction", "http://tempuri.org/DeleteNum");
objHTTP.send(strMethodPkg);
string xmlDataReturned = objHTTP.responseText;
XmlDocument doc = new XmlDocument();
doc.LoadXml(xmlDataReturned);
return xmlDataReturned;
}
Fields Returned:
It's returned in the form of bool
if it return true ,it's means number han been deleted.
if it return False,it's means number has not been deleted .
Our API's allow you to interface and integrate your software with our hosted Ip-pabx.
If you need more API's related to the functions, Please contact sales@ip-pabx.com
