[Freeswitch-users] called number rewrite

Alex Crow acrow at integrafin.co.uk
Wed Apr 13 20:47:51 MSD 2011


On 13/04/11 00:23, budi wibowo wrote:
> hi
> is it possible for freeswitch to change / rewrite called number.
> say, i call 1234567 and FS will change the called number to 44444444
>
>
> thx
>
> budi
>
>

You can also do this with regex, so eg match incoming digits and take, 
say, the last two and put something else in front.

eg

<condition field="destination_number" expression="60([1-5])">
<action application="bridge" data="sofia/external/76$1 at host"/>

or indeed

<action application="transfer" data"76$1 XML default/>
</condition>

For an incoming call, 1st to send to another system, second to send into 
the default dialplan. The variable $1 comes from what is matched inside 
the () brackets. Here any number 601-5 would call 761-5.

Cheers

Alex

-- 
This message is intended only for the addressee and may contain
confidential information.  Unless you are that person, you may not
disclose its contents or use it in any way and are requested to delete
the message along with any attachments and notify us immediately.

"Transact" is operated by Integrated Financial Arrangements plc
Domain House, 5-7 Singer Street, London  EC2A 4BQ
Tel: (020) 7608 4900 Fax: (020) 7608 5300
(Registered office: as above; Registered in England and Wales under number: 3727592)
Authorised and regulated by the Financial Services Authority (entered on the FSA Register; number: 190856)




More information about the FreeSWITCH-users mailing list