Documentation on automatic provisioning

Forum for the 3CX SIP phone client (Sip phone) User to User - Answers are provided by the community. 3CX does NOT provide technical support via this forum.

Moderators: kevin, 3CX staff

Documentation on automatic provisioning

Postby frinklabs » Fri Feb 11, 2011 6:43 pm

The 3CXPhone looks great and the price is right.

It is alleged on the main features page that this can be automatically provisioned.

I cannot find any documentation on the format of what I am guessing is an xml file that you can feed it from a web server.

Can this phone be auto-provisioned?
frinklabs
New User
 
Posts: 11
Joined: Fri Feb 11, 2011 6:35 pm

Re: Documentation on automatic provisioning

Postby davidbenwell » Fri Feb 11, 2011 7:41 pm

Hi

Dependant upon which IP Phones you use, you certainly can get 3CX Phone System to automatically provision the phones.
If you let me know what make and model of IP Phones that you intend to use, Ill provide you with some info on how to set this up.
Dave Benwell - 3CX Certified Professional

Image

Office: 01702 66 88 36
Skype: it-communications

3CX Phone System licensing - Special Offers
Online Shop - Video How-To Guides

Image
davidbenwell
3CX Valued Professional
3CX Valued Professional
 
Posts: 622
Joined: Tue Apr 27, 2010 11:06 am
Location: Essex

Re: Documentation on automatic provisioning

Postby frinklabs » Fri Feb 11, 2011 8:02 pm

When I say "3CXPhone" I mean the software phone from 3CX - not the PBX

I thought this was implicit by the fact that this was posted in the "3CX VoIP Phone" category but maybe not?

It is this page which alleges the auto provisioning capability: http://www.3cx.com/VOIP/voip-phone.html

Unfortunately all the documentation links from there are simplistic at best.

Thanks!
frinklabs
New User
 
Posts: 11
Joined: Fri Feb 11, 2011 6:35 pm

Re: Documentation on automatic provisioning

Postby davidbenwell » Fri Feb 11, 2011 8:24 pm

Hi

I will now produce a Video How-To Guide on how to setup the 3CX Soft Phone for automatic provisioning.

WIll post the URL here for the video in about 15 minutes.

this will cover the full details
Dave Benwell - 3CX Certified Professional

Image

Office: 01702 66 88 36
Skype: it-communications

3CX Phone System licensing - Special Offers
Online Shop - Video How-To Guides

Image
davidbenwell
3CX Valued Professional
3CX Valued Professional
 
Posts: 622
Joined: Tue Apr 27, 2010 11:06 am
Location: Essex

Re: Documentation on automatic provisioning

Postby frinklabs » Fri Feb 11, 2011 8:30 pm

That's overkill.

Can't we just have the syntax of the XML file parameters?
frinklabs
New User
 
Posts: 11
Joined: Fri Feb 11, 2011 6:35 pm

Re: Documentation on automatic provisioning

Postby davidbenwell » Fri Feb 11, 2011 8:41 pm

The provisioning file is created by the 3CX Phone System for each extension and is created on the fly

However for your info below is a copy of the configuration file as requested.

{Public IP Address}
{3CX Phone Server Internal "Local IP address"}
{Public IP Address}
{Extension Password}
{Extension Pin Number "For Voice Mail"}

the above i changed to remove the user details

<?xml version="1.0" encoding="utf-8" ?>
- <tconfig>
<Extension>15</Extension>
<AuthID>15</AuthID>
<AuthPass>{Extension Password}</AuthPass>
<VMAILPIN>{Extension Pin Number "For Voice Mail"}</VMAILPIN>
<PBXLocalAddr>{3CX Phone Server Internal "Local IP address"}</PBXLocalAddr>
<PBXPublicAddr>{Public IP Address}</PBXPublicAddr>
<PBXSipPort>5060</PBXSipPort>
<UseStun />
<StunServer />
<StunServerPort>3478</StunServerPort>
<StunServer1 />
<StunServerPort1>3478</StunServerPort1>
<StunServer2 />
<StunServerPort2>3478</StunServerPort2>
<Codecs />
<Voicemail>99</Voicemail>
<SIPTransport />
<RTPTransport />
<DtmfRFC2833 />
<DtmfInband />
<DtmfSipinfo />
<DtmfPayload />
<RegistrationTime />
<UseTunnel>0</UseTunnel>
<TunnelPort>5090</TunnelPort>
<TunnelPass>abc</TunnelPass>
<AssPhoneIntegration>0</AssPhoneIntegration>
<UseProxy />
<ProxyAddr />
<ProvLink>http://192.168.1.253:80/management/provisioning/TcxProvFiles/3cxProv_110211192619_15.xml</ProvLink>
</tconfig>

Dave Benwell - 3CX Certified Professional

Image

Office: 01702 66 88 36
Skype: it-communications

3CX Phone System licensing - Special Offers
Online Shop - Video How-To Guides

Image
davidbenwell
3CX Valued Professional
3CX Valued Professional
 
Posts: 622
Joined: Tue Apr 27, 2010 11:06 am
Location: Essex

Re: Documentation on automatic provisioning

Postby frinklabs » Fri Feb 11, 2011 8:50 pm

Exactly what I was looking for - thanks!

Meanwhile, this page: http://www.3cx.com/VOIP/sip-phone.html

says: "Via a URL the phone can be told to read all the SIP configuration settings from 3CX Phone System or an HTTP server" (my emphasis)

Those that don't have a 3CX Phone System will definitely need documentation to provision via just HTTP. I was kinda surprised that this information wasn't already available.

Thanks for responding so quickly and I hope you have a great weekend!
frinklabs
New User
 
Posts: 11
Joined: Fri Feb 11, 2011 6:35 pm

Re: Documentation on automatic provisioning

Postby frinklabs » Mon Feb 14, 2011 5:45 pm

How that I have the format of the provisioning file, is there a way to load it into the 3CXPhone from the command line? Or specify a provisioning URL from the command line?

I have searched around and found two command line options documented (dial and safemode) - are there more?

I am attempting to automate the installation of this phone for my users to make it as seamless as possible If I can make it so they don't have to go into the phone and type in a provisioning URL and then save it, or enter any other stuff, I will be a hero.

Make me look good - publish ALL the documentation (if there is any).

Thanks!
frinklabs
New User
 
Posts: 11
Joined: Fri Feb 11, 2011 6:35 pm

Re: Documentation on automatic provisioning

Postby frinklabs » Tue Feb 15, 2011 7:48 pm

Given that there does not appear to be any (publicly-available) technical documentation, I have developed a different (and even more seamless) strategy for deploying this excellent piece of software without an HTTP server or use of the XML file.

Long-story-short, I have a batch file that runs the MSI installer in quiet mode then forces a hand-crafted INI file into the application settings folder after extracting the user's extension and name (for the caller ID) from Active Directory.

If anyone is interested, reply and I'll post the gory details.

Meanwhile, someone more paranoid than me might suspect the documentation is being suppressed to force use of the 3CX PBX software. Good luck with that.
frinklabs
New User
 
Posts: 11
Joined: Fri Feb 11, 2011 6:35 pm

Re: Documentation on automatic provisioning

Postby Vali_3CX » Wed Feb 16, 2011 9:22 pm

frinklabs wrote:Meanwhile, someone more paranoid than me might suspect the documentation is being suppressed to force use of the 3CX PBX software.

Hi
3CXPhone is freeware and, as we stated since the beginning, it's purpose is to be, I repeat, "a standard SIP phone". And, as being one of its developers, I think it is. The only 3CX-specific feature is its embedded 3CX Tunnel client. If it would a matter of paranoia, me or other 3CX moderators here would delete David's post above containing the XML structure.

No, it's not about paranoia or secrecy - the truth is, indeed, we will have to improve or update 3CXPhone's documentation, there are quite many "undocummented" features which we tried to explain them here, on the forum, or on the blog, everytime somebody has a problem which could be resolved using any of them.

So, back to what David shown: yes, you may create such kind of XML and put it on any server you want - as our documentation already said. Only notice:
- from STUNs, only StunServer+StunServerPort are used, 1 and 2 are ignored;
- AssPhoneIntegration is ignored
- ProvLink is optional, and if specified should point to a similar XML file.
- Technically, all parameters are optional (being replaced by phone's default values) but, obviously, server and credentials are required.
Also, the .xml extension is not important, only the XML format - depending on your needs, you may configure on your server some .php scripts to dynamically generate appropriate XML content.

Regards
vali
3CXPhone software developer
Vali_3CX
3CX Support
3CX Support
 
Posts: 901
Joined: Fri Dec 12, 2008 4:11 pm
Location: Nicosia, Cyprus

Re: Documentation on automatic provisioning

Postby frinklabs » Thu Feb 17, 2011 3:52 pm

I don't think the problem is with the technical support - the community responds quickly and with the information needed.

It ssems to be about managing expectations -- I'd guess that the marketing 'droids weren't properly programmed when they alleged on the features page that "Via a URL the phone can be told to read all the SIP configuration settings from 3CX Phone System or an HTTP server" -- without the post in this thread with the XML format, that "or" should be "and"

So far the only way to get the URL into the softphone is by entering it into the Provisioning URL location in the settings screen. I was hoping for a command-line option to load that URL but it wasn't forthcoming.

So now I have reverse-engineered and brute-forced the INI file which is much easier for me and my users. It is such a simple thing to do that I probably don't even need to share the methodology here as anyone who needs to provision that way probably already knows how. But if anyone wants to see it, I'll post it here.

Thanks!
frinklabs
New User
 
Posts: 11
Joined: Fri Feb 11, 2011 6:35 pm

Re: Documentation on automatic provisioning

Postby intervox » Thu Jul 21, 2011 11:04 pm

Hi Frinklabs,

I am currently look for a provisioning method. From previous post, you mentionned to have developed a batch file that runs the MSI installer in quiet mode then forces a hand-crafted INI file into the application settings folder after extracting the user's extension and name (for the caller ID) from Active Directory.

Can you post a detailed procedure for it please. Can you tell me what does the batch file and the INI file contains please.
intervox
New User
 
Posts: 1
Joined: Thu Jul 21, 2011 10:56 pm

Re: Documentation on automatic provisioning

Postby frinklabs » Tue Aug 02, 2011 7:24 pm

Here's the batch file:

Code: Select all
@echo off
cls
echo.
echo Retrieving user information
echo.

REM This section retrieves the user's phone extension from the domain controller,
REM and assumes the user's extension has been set as the "telephone" variable in
REM Active Directory
REM You can replace this with whatever procedure you want, to set the EXT
REM environment variable to the user's extension

set ADMINUSER=adminuser
set ADMINPASSWORD=adminpassword

del \\server\c$\tmp.ldf
q:\itadmi~1\pstools\psexec /accepteula -u %ADMINUSER% -p %ADMINPASSWORD% \\server cmd /c ldifde -f c:\tmp.ldf -a cn=administrator,cn=users,dc=server %%ADMINPASSWORD -d "CN=Users,DC=SERVER" -r "(sAMAccountName=%USERNAME%)" > nul 2> nul
for /f "tokens=1* delims=: " %%a in ('"type \\server\C$\tmp.ldf | find "cn: ""') do @set CLID=%%b
for /f "tokens=1* delims=: " %%a in ('"type \\server\C$\tmp.ldf | find "telephone""') do @set EXT=%%b

if %EXT% LEQ 99 goto noarg
if %EXT% GEQ 206 goto noarg

echo.
echo.
echo Extension: %EXT%
echo CallerID : %CLID%
echo.
echo.
echo If prompted, click "Run" to allow the program to install
echo.
echo.
echo.
Q:\applic~1\3cxphone\3cxphone5.msi /quiet
echo.
echo Customizing phone settings for extension %EXT%
echo.
mkdir "c:%HOMEPATH%\locals~1\applic~1\3CX VoIP Phone"
echo [Profile0] > "C:%HOMEPATH%\locals~1\applic~1\3CXVOI~1\3CXVoipPhone.ini"
echo Name=8%EXT% >> "C:%HOMEPATH%\locals~1\applic~1\3CXVOI~1\3CXVoipPhone.ini"
echo AuthUser=8%EXT% >> "C:%HOMEPATH%\locals~1\applic~1\3CXVOI~1\3CXVoipPhone.ini"
echo AuthID=8%EXT% >> "C:%HOMEPATH%\locals~1\applic~1\3CXVOI~1\3CXVoipPhone.ini"
echo CallerID=%USERNAME% >> "C:%HOMEPATH%\locals~1\applic~1\3CXVOI~1\3CXVoipPhone.ini"
echo PBXVoicemail=6%EXT% >> "C:%HOMEPATH%\locals~1\applic~1\3CXVOI~1\3CXVoipPhone.ini"
type q:\applic~1\3cxphone\3CXVoipPhone.txt >> "C:%HOMEPATH%\locals~1\applic~1\3CXVOI~1\3CXVoipPhone.ini"
goto end

:noarg
echo.
echo We were unable to extract the telephone extension for username %USERNAME%
echo.
:end


Here's the contents of 3CXVoipPhone.txt - be sure to set PBXAddr and TunnelRemAddr to the correct IP:

Code: Select all
Enabled=1
AuthPass=
PBXAddr=192.168.1.1
PBXRemoteAddr=
ServerProxy=
DtmfRFC2833=1
DtmfInband=0
DtmfSipinfo=0
DtmfPayload=101
SipTransport=0
RegistrationTime=2
Codecs=PCMU;PCMA;GSM;
VideoCodecs=H.263 (ffdshow)
VideoFormats=QCIF;CIF;SQCIF;CIF4;
LocalPBX=1
RTPTransport=0
ProvisioningURL=http://
UseTunnel=0
UseProxy=0
TunnelPass=abc
TunnelRemAddr=192.168.1.1
TunnelPort=5090
PBXPort=0
STUNServer=stun.3cx.com
AutoProvisioning=0
VoicemailConfirmed=1
SoundVolume=0
CLSID={198C9CFF-8226-4A62-B858-D4B721E9D5F9}
[General]
VideoCamera=
VideoAutoSend=1
VideoSendWhenInactive=1
UseVideo=0
EchoCancellation=0
NoiseReduction=0
ActiveBLFBank=0
SndMicGUID=Primary Sound Capture Driver
SndPlayGUID=Primary Sound Driver
SndRingGUID=Primary Sound Driver
Skin=3CXPhone.cxs
ActiveProfile=-1
RunAtWinStartup=0
ShowDebugWindow=0
LangFile=
SipTraceLog=0
LocalRecording=0
MP3Recording=0
TunnelLog=0
ExpandPlus=1
NoFocusSteal=0
OnComputerLocked=0
OnScreensaverStarts=0
SpeakerVol=0
RingingVol=0
MicVol=0
xpos=336
ypos=124
Brightness=-22
Contrast=133
Saturation=108
Sharpness=25
RTPFirstPort=40000
RTPLastPort=40049
LocalPort=-1
AmPmClock=0
frinklabs
New User
 
Posts: 11
Joined: Fri Feb 11, 2011 6:35 pm


Return to 3CX VoIP Phone (Community-led, no tech support)


Who is online

Users browsing this forum: No registered users and 1 guest

Announcements: