<proxy>

USECALLMANAGER.nz

</proxy>

HTTP Provisioning and Services

HTTP is used by the phone to download its configuration, background image and ring-tone and also for providing XML services.

Provisioning

The phone will automatically try connecting to port 6970 on the server specified as the tftp-server-name in the DHCP response first before falling-back to TFTP on failure. A sample tftpboot directory containing templates for SEPMAC.cnf.xml, Softkeys.xml, FeaturePolicy.xml, DialTemplate.xml, AppDialRules.xml, background images and ring-tones can be downloaded from the URL below.

file_download tftpboot-1.0.tar.gz (122K) event 06/05/2020 security SHA256:3fee40026d8b730ed9dad21cb39102c0c7416d7b0e68b0917230ecf5e4af7cf7.

Listen 6970 <Virtualhost *:6970> DocumentRoot /var/lib/tftpboot <Directory /var/lib/tftpboot> Options +FollowSymlinks Require all granted </Directory> <IfModule rewrite_module> RewriteEngine on # Keep firmware in a separate directory (optional) RewriteRule ^/(.+\.loads)$ /firmware/$1 [nocase,last] RewriteRule ^/(.+\.sbn)$ /firmware/$1 [nocase,last] # Keep locales in a separate directory (optional) RewriteRule ^/(.+)/(.+-sip\.jar)$ /locales/$1/$2 [last,nocase] RewriteRule ^/(.+)/(.+-tones\.xml)$ /locales/$1/$2 [last,nocase] # Keep ring-tones in a separate directory (optional) RewriteRule ^/(Ringlist)(\.xml|-wb\.xml)(\.sgn)?$ /ringtones/$1$2$3 [last,nocase] RewriteRule ^/(.+)(\.raw|\.rwb)(\.sgn)?$ /ringtones/$1$2$3 [last,nocase] # Rename Desktops to wallpapers (optional) RewriteRule ^/Desktops/(.+)/(List.xml)(\.sgn)?$ /wallpapers/$1/$2$3 [last,nocase] RewriteRule ^/Desktops/(.+)/(.+\.png)(\.sgn)?$ /wallpapers/$1/$2$3 [last,nocase] </IfModule> </Virtualhost>

XML Services

Example configuration for a WSGI application providing phone XML services. There are two <VirtualHost> below, one for services using HTTP on 6972 and the other for secure services using HTTPS on 6973. Any ports can be used.

See Phone Services for more information.

# For <servicesURL>, <directoryURL> and <authenticationURL> <Virtualhost *:6972> DocumentRoot /var/www/services <Directory /var/www/services> Require all granted </Directory> <IfModule wsgi_module> WSGIDaemonProcess services user=www-data group=www-data home=/var/www/services threads=5 WSGIProcessGroup services WSGIScriptAlias / /var/www/services/application.wsgi </IfModule> </Virtualhost> # For <secureServicesURL>, <secureDirectoryURL> and <secureAuthenticationURL> <Virtualhost *:6973> DocumentRoot /var/www/services <Directory /var/www/services> Require all granted </Directory> <IfModule ssl_module> SSLEngine on </IfModule> <IfModule wsgi_module> WSGIDaemonProcess services-ssl user=www-data group=www-data home=/var/www/services threads=5 WSGIProcessGroup services-ssl WSGIScriptAlias / /var/www/services/application.wsgi </IfModule> </Virtualhost>