Discussion:
Using SOAP to set user values
Sven Evensen
2012-11-07 14:43:32 UTC
Permalink
As far as I can tell, when creating a sipx user via SOAP, the only
fields available are:

<xsd:complexType name="User">
<xsd:sequence>
<xsd:element name="userName" type="xsd:string" minOccurs="1"
maxOccurs="1" />
<xsd:element name="pintoken" type="xsd:string"
nillable="true" maxOccurs="1" />
<xsd:element name="lastName" type="xsd:string"
nillable="true" maxOccurs="1" />
<xsd:element name="firstName" type="xsd:string"
nillable="true" maxOccurs="1" />
<xsd:element name="sipPassword" type="xsd:string"
nillable="true" maxOccurs="1" />
<xsd:element name="aliases" type="xsd:string"
nillable="true" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="emailAddress" type="xsd:string"
nillable="true" maxOccurs="1" />
<xsd:element name="groups" type="xsd:string" nillable="true"
minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="permissions" type="xsd:string"
nillable="true" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="branchName" type="xsd:string"
nillable="true" maxOccurs="1" />
</xsd:sequence>
</xsd:complexType>

There are a few additional fields I would like to set, e.g. fax
number, voicemail notification, operator (in personal att). Are these
fields available using SOAP at all?

Regards,
Sven
--
*Sven Evensen, Operations Consultant*

*OnRelay*

Elizabeth House │ 39 York Road, London SE1 7NQ, UK │ +44 (0) 207 902 8123 │
mailto:***@onrelay.com <***@onrelay.com> │ www.onrelay.com


This electronic message transmission contains information from OnRelay,
Ltd., that may be confidential or privileged. The information is intended
solely for the recipient and use by any other party is not authorised. If
you are not the intended recipient, be aware that any disclosure, copying,
distribution or use of the contents of this information or any attachment,
is prohibited. If you have received this electronic transmission in error,
please notify us immediately by electronic mail (***@onrelay.com) and
delete this message, along with any attachments, from your computer.
Registered in England No 04006093 Š Registered Office 1st Floor, 236 Gray's
Inn Road, London WC1X 8HB
Kyle Haefner
2012-11-07 20:12:41 UTC
Permalink
Sven,

What you can do with SOAP and what you can do with REST is kind of a mess
right now I've had you mix and match both to get what I need done (though I
just looked and it doesn't seem that the fields your want are supported in
REST either). I found that modifying/adding to the REST API much easier,
as it uses a plugin architecture, while I think you'd have to recompile all
of sipxconfig for SOAP.

The CDR plugin is a good one to get started with this.

http://wiki.sipfoundry.org/display/sipXecs/Call+Detail+Records+Web+Service


Kyle
Post by Sven Evensen
As far as I can tell, when creating a sipx user via SOAP, the only
<xsd:complexType name="User">
<xsd:sequence>
<xsd:element name="userName" type="xsd:string" minOccurs="1" maxOccurs="1" />
<xsd:element name="pintoken" type="xsd:string" nillable="true" maxOccurs="1" />
<xsd:element name="lastName" type="xsd:string" nillable="true" maxOccurs="1" />
<xsd:element name="firstName" type="xsd:string" nillable="true" maxOccurs="1" />
<xsd:element name="sipPassword" type="xsd:string" nillable="true" maxOccurs="1" />
<xsd:element name="aliases" type="xsd:string" nillable="true" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="emailAddress" type="xsd:string" nillable="true" maxOccurs="1" />
<xsd:element name="groups" type="xsd:string" nillable="true" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="permissions" type="xsd:string" nillable="true" minOccurs="0" maxOccurs="unbounded" />
<xsd:element name="branchName" type="xsd:string" nillable="true" maxOccurs="1" />
</xsd:sequence>
</xsd:complexType>
There are a few additional fields I would like to set, e.g. fax
number, voicemail notification, operator (in personal att). Are these
fields available using SOAP at all?
Regards,
Sven
--
*Sven Evensen, Operations Consultant*
*OnRelay*
Elizabeth House │ 39 York Road, London SE1 7NQ, UK │ +44 (0) 207 902 8123│
www.onrelay.com
This electronic message transmission contains information from OnRelay,
Ltd., that may be confidential or privileged. The information is intended
solely for the recipient and use by any other party is not authorised. If
you are not the intended recipient, be aware that any disclosure, copying,
distribution or use of the contents of this information or any attachment,
is prohibited. If you have received this electronic transmission in error,
delete this message, along with any attachments, from your computer.
Registered in England No 04006093 Š Registered Office 1st Floor, 236 Gray's
Inn Road, London WC1X 8HB
--
Kyle Haefner, M.S.
Communication Systems Programmer
Colorado State University
Fort Collins, CO
Phone: 970-491-1012
Email: ***@colostate.edu

01010010 01100101 01100001 01101100 00100000 01101101 01100101 01101110
00100000 01110000 01110010 01101111 01100111 01110010 01100001 01101101
00100000 01101001 01101110 00100000 01100010 01101001 01101110 01100001
01110010 01111001 00101110
Loading...