[Freeswitch-users] secondary outbound gateway - how to prefix?

Shaun Stokes shaun.stokes at itec-support.co.uk
Mon Jul 17 05:22:08 UTC 2017


You've put a 1 before \d so the matched number should be 11 digits including the 1. This will match destination numbers prefixed with 9, the $1 variable will be the rest of the number after the 9 prefix.

-----Original Message-----
From: FreeSWITCH-users [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of jungle boogie
Sent: 17 July 2017 02:07
To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org>
Subject: [Freeswitch-users] secondary outbound gateway - how to prefix?

Hi All,

I would like to have a secondary gateway added to freeswitch. To have it used for outbound calling, I need to prefix the dialstring with something like a 9 followed by the 10 digit number.

I think that's what this page is explaining:
https://freeswitch.org/confluence/display/FREESWITCH/Configuring+FreeSWITCH

<condition field="destination_number" expression="^9(1\d{10})$">

Will that use the gateway if the telephone number is prefixed with a 9?

Thanks!

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

______________________________________________________________________
This message has been checked for all known viruses by MessageLabs Virus Scanning Service.
______________________________________________________________________
[http://www.itec-support.co.uk/wp-content/uploads/2016/07/email_logo.jpg]
Shaun Stokes - Infrastructure Analyst

T :     01453 700713
E :     shaun.stokes at itec-support.co.uk
W :     www.itec-support.co.uk

Registered Address :- ITEC Support, Suite 2 Prospect House, Bath Road, Stroud, Gloucestershire GL5 3QF
Company No. 06908001

CONFIDENTIALITY NOTICE
This communication and the information it contains are intended for the person or organisation to which it is addressed. Its contents are confidential and may be protected in law. Unauthorised use, copying or disclosure of any of it may be unlawful. If you are not the intended recipient, please contact us immediately.
The contents of any attachments in this e-mail may contain software viruses, which could damage your own computer system. While ITEC Support has taken every reasonable precaution to minimise this risk, we cannot accept liability for any damage which you sustain as a result of software viruses. You should carry out your own virus checking procedure before opening any attachment.

______________________________________________________________________
This message has been checked for all known viruses by  MessageLabs Virus Scanning Service.
______________________________________________________________________


More information about the FreeSWITCH-users mailing list