Categories
Asterisk Support Elastix Support Knowledge Base Support

Multiple Dynamic features with Asterisk Applicationmaps

Dynamic features are very useful for allowing users access to custom features during calls. These can be loaded individually via the dialplan, but in freepbx based solutions this will mean a bit of hacking of the dialplan using overides and making sure all still works afterwards, or as a global varible.

The easiest way is to load them as a global as is done with apprecord, But if you want to add lots of features then you will have to use a Application Map group. This is done by editing the features_applicationmap_custom.conf  file so it looks like below for example, at the top are your application maps then your group

testfeature => #9,callee,Playback,tt-monkeys 
calleehangup => #8,callee,Hangup()
callerhangup => #7,caller,Hangup()
[mymapgroup]
testfeature => #9
calleehangup => #8
callerhangup => #7
apprecord => *1

DO NOT FORGET to add the apprecord to your group.

You then need to edit the globals_custom.conf file and add a line like below

DYNAMIC_FEATURES => mymapgroup

Then reload asterisk and issue the command “features show”

Dynamic Feature           Default Current
---------------           ------- -------
callerhangup              no def  #7     
calleehangup              no def  #8     
testfeature               no def  #9     
apprecord                 no def  *1     
Feature Groups:
---------------
===> Group: mymapgroup
===> --> apprecord (*1,caller,Macro,one-touch-record)
===> --> callerhangup (#7)
===> --> calleehangup (#8)

and to check that they are loaded as a global variable do “dialplan show globals” and near or at the top you will see:-

 DYNAMIC_FEATURES=mymapgroup

And thats all there is to it.

Categories
Calls and Lines Connectivity

SIP2SIM Mobile extensions

The SIP2SIM service is a very simple concept which provides you with control of your mobile communications. It is ideal for an office of any size and even for more technical home users.

The service consists of a SIM card, which you put in a mobile phone and it makes that phone appear as if it is a SIP extension (e.g. SIP phone) on a phone system of your choice.

meerkat

Not a SIP application

It is important to realise that we are not talking about a SIP application on a smart phone which then uses mobile data or WiFi. With this service your mobile phone is working as a mobile phone on the GSM mobile network making and receiving proper mobile voice calls. The SIP part is what we do in the back end to pass the calls to and from your SIP server.

An extension on your office phone system

The basic service allows you to specify, on our control pages, the server name, login and password for a SIP server. This could be your office phone system whether an asterisk box, or a FireBrick or whatever. As long as it handles normal UDP SIP with G.711 a-law audio then we will register as a phone and allow calls both ways.

This means your phone can simply be an office extension, like any other.

  • Call office extensions using short extension numbers from your mobile phone.
  • Office policies on callable numbers, such as premium rate, enforced like any other extension.
  • Office voicemail system working, just like any other extension.
  • Office call logging, just like any other extension.
  • Office call recording, just like any other extension.
  • Use in hunt groups, just like any other extension.
  • Even use features like call steal to transfer calls if you want, or in-band DTMF to control call transfer and related features.

Manage costs

The costs are very simple for using the SIM in the UK on O2. Higher costs apply for roaming SIMs, even roaming to other UK networks.

  • £5+VAT to purchase the SIM card.
  • £2+VAT pcm once activated (activates on first use).
  • 2p+VAT per minute for calls either way.
  • 2p+VAT per text either way.
  • 2p+VAT per MB for data usage either way.
  • No minimum term – just monthly rolling contract.

Calls are charged per second, and data per kilobyte. Charges apply to the SIP2SIM service separately from any charges you may have for text or voice calls using your VoIP/SMS provider.

In some cases a SIM will be set up with a free trial which allows some usage without assigning to an account or setting up an account. For these trial SIMs, once assigned to an account an activation fee of 1p+VAT is charged and usage charges commence as normal.

OFCOM call charges

The SIP2SIM service is not a service that allows calls to telephone numbers in the national dialling plan. It allows calls to be passed to a VoIP/SIP gateway of your choice. Any ability to make calls to normal telephone numbers is provided by that VoIP provider (which may be our VoIP service). As such, special rules on costs of 01, 02, 03 numbers, rules on 0800 numbers being free, and rules on charges for other special and premium rate numbers do not apply to the SIP2SIM part of the service. The cost or the SIP2SIM service applies regardless of the number you dial.

Telephone numbers

Just like a SIP handset, the service does not come with any sort of telephone number.

You can, if you wish, have the phone register on a VoIP provider’s service. This would mean you get calls to a number operated by the VoIP provider, and can make calls from that number, just like any other SIP phone. If registered with your own telephone system, it would have internal extension numbering, and even direct dial in numbering as you have chosen to configure on your phone system.

There is no question of porting numbers to or from the service, it has no numbers.

We can, of course, provide telephone numbers as part of our VoIP service if you wish, and we can even pre-configure these to connect with your SIM as part of the order process.

International roaming

The SIMs are available with world wide roaming. Costs are higher when roaming, obviously. The following are charges for use within EU. See full roaming price list for more details.

  • £5+VAT to purchase the SIM card.
  • £2+VAT pcm once activated (activates on first use).
  • 10p+VAT per minute for calls either way.
  • 5p+VAT per text either way.
  • 10p+VAT per MB for data usage either way.
  • No minimum term – just monthly rolling contract.

In the UK and rest of EU, calls are charged per second, and data per kilobyte. Charges apply to the SIP2SIM service separately from any charges you may have for text or voice calls using your VoIP/SMS provider.

UK roaming for the best coverage of the UK

The SIMs can even roam in the UK. This means the SIM can change its identity automatically – being an O2 SIM when O2 is available (at the lowest costs), but switching to a foreign identity (Dutch Vodafone) to roam on to other UK networks. Whist costs are then higher this means you stay in touch even when there is no O2 signal.

When the SIM is using the O2 profile and on O2 in the UK, the UK prices apply. When using the EU profile on any UK network (including O2) or elsewhere in the EU, the EU roaming prices (as above) apply. If on EU profile on O2, it will normally switch back to O2 profile automatically within a few minutes. Currently the SIM will not roam to Three in the UK.

Text

Texts are operated separately. Our text interface using HTTP can send texts to the phone, and texts from the phone can be posted to an HTTP gateway of your choice. If you have an A&A VoIP telephone number then texts can be associated with that number directly (not all of our numbers ranges can handle inbound texts).

Mobile Data

Data currently allows simple NAT, unfiltered, Internet access. We hope to offer data via A&A in the future.

Third Party SIP services

The service involves entering SIP registration details in to our control pages. Where these are the details of your own SIP server such as an office phone system, you can make the decision as to whether or not you trust us with those SIP details in order to provide the SIP2SIM service. We will, of course, use all reasonable skill and care to ensure the details remain confidential and are not disclosed.

We have, however, designed the service so that it can work with a wide variety of third party SIP services, not just in the UK but in various countries. There are a lot of unusual systems out there and we continue to work to ensure that such services operate with SIP2SIM. However, using third party SIP details may well be in breach of your terms with the third party SIP provider as it means giving us your SIP details. It is up to you to check the terms and we would not suggest anyone breaks a contract they have. You may find that the provider is happy to trust us, especially if they do any other work with us, so it is worth asking. We are also happy to discuss contracts with other providers for the SIP2SIM service and we may be able to provide them with branded SIMs to sell to their customers.

Unfortunately we cannot guarantee that the service will always work with all other providers, and whilst we aim to resolve any technical issues (with reference to the standards), if a provider simply will not deal with our service and blocks us there is little we can do.

The Sip2Sim service is provided by Andrews and Arnold Ltd  and can be purchased direct from them or via ourselves where we will assist with setting up the service for you.

Categories
Elastix Support Knowledge Base Technical

Setting the server domain in elastix correct for scripted email

We run many scripts on customer servers to email cdrs, backups etc, one problem with some mail servers is the mail gets rejected as it comes from root@elastixserver.yourdomain.com by default to fix this is simple and only takes a few lines.

Postfix MTA offers smtp_generic_maps parameter. You can specify lookup tables that replace local mail addresses by valid Internet addresses when mail leaves the machine via SMTP.

Open your main.cf file

# vi /etc/postfix/main.cf

Append following parameter

smtp_generic_maps = hash:/etc/postfix/generic

Save and close the file. Open /etc/postfix/generic file:

# vi /etc/postfix/generic

Make sure root@elastixserver.yourdomain.com change to elastixserver@yourdomain.com add :

root@elastixserver.yourdomain.com  elastixserver@yourdomain.com

Save and close the file. Create or update generic postfix table:

# postmap /etc/postfix/generic

Restart postfix:

# /etc/init.d/postfix restart

When mail is sent to a remote host via SMTP this replaces root@elastixserver.yourdomain.com by elastixserver@yourdomain.com mail address. You can use this trick to replace address with your ISP address if you are connected via local SMTP.

To set up gmail for delivery look at this

Categories
Knowledge Base

Simple Script to import Asterisk Database entries

This is a very simple script to add entries in bulk to the asterisk internal database.

You colate your entries in a simple csv file as below

family,key1,val99
family,key2,val98

then this simple script needs to be written and then run to update the astdb

#!/bin/sh
input=db.csv
while read line
do
 fam=$(echo $line | cut -d',' -f1)
 key=$(echo $line | cut -d',' -f2)
 value=$(echo $line | cut -d',' -f3)
 asterisk -rx "database put $fam $key $value"
done < "$input"

As can be seen its short and simple, but as it does what its meant to do and can save lots of time when building or migrating Asterisk  servers.

It could be easily changed to remove entries if required.

 

Categories
Peripherals Products

Algo 8128 SIP/VoIP Strobe light

Algo

The Algo 8128 SIP Strobe light is the ideal solution for visual ringing in such areas as noisy factories, cafeterias, and public areas.

Or alternatively it can also be used as a silent visual alert where loud ringing may be disruptive in areas such as hospitals, theatres and, churches etc.

Other applications include emergency and security notification where the press of a single phone key can be used to activate one or many strobe lights. And it can also be integrated within a Call Centre system to provide visual notification when queues and waiting times are exceeding there maximum thresholds

Algo 8128 SIP Strobe Light Key Features

  • 360° Visibility
    Flash patterns are visible in every direction or may be chosen specifically for ceiling and wall mount applications.
  • PoE SIP Endpoint with Web Interface
    Integrates easily into a VoIP Unified Communications environment, hosted or premise PBX.
  • Auto-Multicast
    Trigger one – trigger many. Multiple strobes may be operated simultaneously and synchronously using just one SIP extension.
  • Colourful Options
    Available blue, red, and amber caps to distinguish events in the workplace.
  • LEDs for High Intensity and Long Life
    The 8 brilliant LEDs splash 198 candela light in all directions with greater efficiency than xenon strobes.

Please call or email for pricing and avalibility

Categories
Asterisk Support Elastix Support Knowledge Base

Sip Config for Aretta CBeyond and Voiceflex with Asterisk

Since Version 1.8 in Asterisk we have seen some issues with DID calls from some suppliers.

The tell tail sign is that even though you have an inbound route that matches the DID it will still say in the verbose screen that nothing matched it in the inbound context, For example:-

Call from 'USERNAME' (XXX.XX.XXX.XX:5060) to extension '01234123412' rejected because extension not found in context 'from‐trunk'

and if you do “dialplan show 01234123412@from-trunk” sure enough there is one.

After much searching and experimentation below is a working freepbx config that has been tested with 1.8 and 11 and proves to be working with the suppliers above.

OUTBOUND

[peername]
username=USERNAME
type=peer
trustrpid=yes
sendrpid=yes
secret=PASSWORD
qualify=no
outboundproxy=sip.hostname.com
nat=yes
insecure=very
host=sip.hostname.com
fromdomain=sip.hostname.com
dtmfmode=auto
disallow=all
context=from-trunk
canreinvite=no
allow=ulaw
allow=alaw

INBOUND

[username]
type=peer
host=sip.hostname.com
dtmfmode=auto
disallow=all
context=from-trunk
canreinvite=no
allow=ulaw
allow=alaw

;registration string
USERNAME:PASSWORD@peername/USERNAME
Categories
Asterisk Support Elastix Support Knowledge Base

IAX2 Cause code

Here is a table of the IAX2 to assist with debugging IAX2 call issues

More IAX2 information can be found here and the RFC is here


CSV
 download is here
Number Cause Reference
1 Unassigned/unallocated number [RFC5457]
2 No route to specified transit network [RFC5457]
3 No route to specified transit network [RFC5457]
4-5 Unassigned
6 Channel unacceptable [RFC5457]
7 Call awarded and delivered [RFC5457]
8-15 Unassigned
16 Normal call clearing [RFC5457]
17 User busy [RFC5457]
18 No user response [RFC5457]
19 No answer [RFC5457]
20 Unassigned
21 Call rejected [RFC5457]
22 Number changed [RFC5457]
23-26 Unassigned
27 Destination out of order [RFC5457]
28 Invalid number format/incomplete number [RFC5457]
29 Facility rejected [RFC5457]
30 Response to status enquiry [RFC5457]
31 Normal, unspecified [RFC5457]
32-33 Unassigned
34 No circuit/channel available [RFC5457]
35-37 Unassigned
38 Network out of order [RFC5457]
39-40 Unassigned
41 Temporary failure [RFC5457]
42 Switch congestion [RFC5457]
43 Access information discarded [RFC5457]
44 Requested channel not available [RFC5457]
45 Pre-empted (causes.h only) [RFC5457]
46 Unassigned
47 Resource unavailable, unspecified (Q.931 only) [RFC5457]
48-49 Unassigned
50 Facility not subscribed (causes.h only) [RFC5457]
51 Unassigned
52 Outgoing call barred (causes.h only) [RFC5457]
53 Unassigned
54 Incoming call barred (causes.h only) [RFC5457]
55-56 Unassigned
57 Bearer capability not authorized [RFC5457]
58 Bearer capability not available [RFC5457]
59-62 Unassigned
63 Service or option not available (Q.931 only) [RFC5457]
64 Unassigned
65 Bearer capability not implemented [RFC5457]
66 Channel type not implemented [RFC5457]
67-68 Unassigned
69 Facility not implemented [RFC5457]
70 Only restricted digital information bearer capability is available (Q.931 only) [RFC5457]
71-78 Unassigned
79 Service or option not available (Q.931 only) [RFC5457]
80 Unassigned
81 Invalid call reference [RFC5457]
82 Identified channel does not exist (Q.931 only) [RFC5457]
83 A suspended call exists, but this call identity does not (Q.931 only) [RFC5457]
84 Call identity in use (Q.931 only) [RFC5457]
85 No call suspended (Q.931 only) [RFC5457]
86 Call has been cleared (Q.931 only) [RFC5457]
87 Unassigned
88 Incompatible destination [RFC5457]
89-90 Unassigned
91 Invalid transit network selection (Q.931 only) [RFC5457]
92-94 Unassigned
95 Invalid message, unspecified [RFC5457]
96 Mandatory information element missing (Q.931 only) [RFC5457]
97 Message type nonexistent/not implemented [RFC5457]
98 Message not compatible with call state [RFC5457]
99 Information element nonexistent [RFC5457]
100 Invalid information element contents [RFC5457]
101 Message not compatible with call state [RFC5457]
102 Recovery on timer expiration [RFC5457]
103 Mandatory information element length error (causes.h only) [RFC5457]
104-110 Unassigned
111 Protocol error, unspecified [RFC5457]
112-126 Unassigned
127 Internetworking, unspecified [RFC5457]
128-255 Unassigned

 

Categories
QueueMetrics Support Software

QueueMetrics,  The Advanced Call Center Software Solution Suite. Measure your targets, conversion rates and agent activities. Create accurate reports and statistics. Set security and privacy on individual queues. Support virtual and multi-tenant production environments.

But above all Improve your business.

 

This slideshow requires JavaScript.

QueueMetrics Features:

  • Live administrator and supervisor call center status panel.
  • Area code breakdowns inclusive of calling and waiting time.
  • Agent billable and payable time with total sales, contacts and conversion statistics.
  • Live agent page with queue statistics and agent controls.
  • Total unanswered calls with disconnection time and position.
  • Complete call distribution statistic, including sales and contacts, by week, day or hour.
  • Administrator message broadcasting and SMS functionality.
  • Full agent availability with session and pauses details and history.
  • Inbound ACD call attempts with metrics available by operator, terminal and queue.
  • Detailed call information including the Asterisk Call ID and recorded call.
  • Total of answered calls including call length and waiting time metrics.
  • Inclusive SLA of answered and unanswered calls and disconnection causes.
  • Extensive Quality Assessment module.
  • Send automated nightly PDF/XLS exports by e-mail.
  • Hundreds of metrics computed.

Operations Managers can:

  • See accurate reports of all call center activities.
  • Run reports by single and by user-created queue groups.
  • Measure agents activities, business targets and conversion rates.
  • Fully configure security and privacy, queue-by-queue.

Team Leaders can:

  • Create real time call and agent reporting.
  • See agent status and real­time activities.
  • Remotely listen to live calls as they are handled.
  • Watch agent screens through a VNC client.

Agents can:

  • See the calls they’re handling and integrate with external CRM.
  • Pass data gathered from IVR menus or Caller­ID.
  • Set call status codes for all inbound and outbound traffic.
  • Log­on, log­off, go on pause and set pause reason codes.

IT Managers can:

  • Support single-server or Asterisk® clusters.
  • Support database and flat-file storage.
  • Tune Asterisk® interaction to minimize the load on the Asterisk® server.
  • Avoid patching or changing an existing Asterisk® installation.

To download a product feature sheet click here or call us for a quote.

Categories
Elastix Support Security

SSLv3 Poodle and Elastix

Google has just disclosed SSL POODLE vulnerability which is a design flaw in SSLv3.  By default SSLv3 is enabled by default in Elastix and many other servers, Since it is a design flaw in the protocol itself and not an implementation bug, there will be no patches. Only way to mitigate this is to disable SSLv3 in your web server or application using SSL.

How to test for SSL POODLE vulnerability?

The following simple script will test, its a re-write of Redhats that would give a false negative if the script fails in anyway giving a false sense of security.

#!/bin/bash
chmod 755 /usr/share/doc/bash-3.2/scripts/timeout
ret=$(echo Q | /usr/share/doc/bash-3.2/scripts/timeout 5 openssl s_client -connect "127.0.0.1:${2-443}" -ssl3)
if echo "${ret}" | grep -q 'Protocol.*SSLv3'; then
 if echo "${ret}" | grep -q 'Cipher.*0000'; then
 echo "SSL 3.0 disabled"
 else
 echo "SSL 3.0 enabled"
 fi
else
 echo "SSL disabled or other error"
fi

The outputs will be similar to below on Elastix

[root@elastix24 ~]# ./sslv3.sh 
depth=0 /C=--/ST=SomeState/L=SomeCity/O=SomeOrganization/OU=SomeOrganizationalUnit/CN=localhost.localdomain/emailAddress=root@localhost.localdomain
verify error:num=18:self signed certificate
verify return:1
depth=0 /C=--/ST=SomeState/L=SomeCity/O=SomeOrganization/OU=SomeOrganizationalUnit/CN=localhost.localdomain/emailAddress=root@localhost.localdomain
verify error:num=10:certificate has expired
notAfter=Jun 15 18:30:20 2014 GMT
verify return:1
depth=0 /C=--/ST=SomeState/L=SomeCity/O=SomeOrganization/OU=SomeOrganizationalUnit/CN=localhost.localdomain/emailAddress=root@localhost.localdomain
notAfter=Jun 15 18:30:20 2014 GMT
verify return:1
DONE
SSL 3.0 enabled

As we can see its enabled.

Now edit the file  /etc/httpd/conf.d/ssl.conf

and change line 100 (in Elastix 2.4)

from SLProtocol all -SSLv2    to  SLProtocol all -SSLv2 -SSLv3

The restart the httpd service.

then test again and you should get

13033:error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure:s3_pkt.c:1086:SSL alert number 40
13033:error:1409E0E5:SSL routines:SSL3_WRITE_BYTES:ssl handshake failure:s3_pkt.c:530:
SSL disabled or other error

If you want to read the background here is the relevant document

Click to access ssl-poodle.pdf

Categories
Asterisk Support Elastix Support Knowledge Base Security

Elastix 2.4 ARI vulnerability Patch

The recent vulnerability in the Asterisk and Freepbx ARI login.php file is not addressed in an update to ARI in the unembedded freepbx on Elastix 2.4.

This will mean that your systems will still be vulnerable.

We have produced a patch that you can apply to address this. The patch can be downloaded  from https://s3.amazonaws.com/filesandpatches/ari.patch and applied as detailed below.

logon to the server console

cd /var/www/html/recordings/includes
cp login.php /root/login.php.ari
wget https://s3.amazonaws.com/filesandpatches/ari.patch
patch < ari.patch 

Then to check either login to server ARI interface or 

cat login.php |grep json

and you should get the following output

$buf = json_decode($_COOKIE['ari_auth'],true);
$data = json_decode($crypt->decrypt($data,$ARI_CRYPT_PASSWORD),true);
$data = $crypt->encrypt(json_encode($data),$ARI_CRYPT_PASSWORD);
$buf = json_encode(array($data,$chksum));


also check to see if you have the file in the fw_ari directory.

ls -l /var/www/html/admin/modules/fw_ari/htdocs_ari/includes

if there is a login.php there then copy over the patched version.

cp /var/www/html/recordings/includes/login.php  /var/www/html/admin/modules/fw_ari/htdocs_ari/includes/login.php

After these actions check that the file ownership is still correct

if not 

chown asterisk:asterisk /var/www/html/recordings/includes/login.php 

This patch also applies to any older version of ARI out there.

also to be on the lookout for two suspicious files, named “c.sh” or “c2.pl” respectively. If you see these two files remove them immediately!

More details here. http://community.freepbx.org/t/critical-freepbx-rce-vulnerability-all-versions-cve-2014-7235/24536 or here http://support.freepbx.org/node/92822