called number rewrite
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
Sure... Just have freeswitch change it <extension name=²foo²> <condition field=²destination_number² expression=²^1234567$²> <action application=²transfer² data=²987654 XML default²/> <!-- OR --> <action application=²bridge² data=²sofia/default/10203040@somehost.com²/> </condition> </extension> Depending on what you are trying to do these will rewrite the destination number On 4/12/11 6:23 PM, "budi wibowo" <bwibowo@gmail.com> 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
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Thx anybody know how many mapping/rewrite can be performed by fs? (Based on experience) -----Original Message----- From: Ken Rice <krice@freeswitch.org> Sender: freeswitch-users-bounces@lists.freeswitch.org Date: Tue, 12 Apr 2011 19:52:46 To: FreeSWITCH Users Help<freeswitch-users@lists.freeswitch.org> Reply-To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Subject: Re: [Freeswitch-users] called number rewrite _______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Freeswitch is not a proxy, its a B2BUA... So there is speed penalties there... Many people are hesitant to quote numbers as performance is directly tied to your specific configuration... On 4/12/11 8:09 PM, "Budi wibowo" <bwibowo@gmail.com> wrote:
Thx anybody know how many mapping/rewrite can be performed by fs? (Based on experience)
-----Original Message----- From: Ken Rice <krice@freeswitch.org> Sender: freeswitch-users-bounces@lists.freeswitch.org Date: Tue, 12 Apr 2011 19:52:46 To: FreeSWITCH Users Help<freeswitch-users@lists.freeswitch.org> Reply-To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Subject: Re: [Freeswitch-users] called number rewrite
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
if this task is similar in mapping destination numbers to routes as in Class 5 exchanges, mod_lcr could be applicable here. -nandy On Wed, Apr 13, 2011 at 9:09 AM, Budi wibowo <bwibowo@gmail.com> wrote:
Thx anybody know how many mapping/rewrite can be performed by fs? (Based on experience)
-----Original Message----- From: Ken Rice <krice@freeswitch.org> Sender: freeswitch-users-bounces@lists.freeswitch.org Date: Tue, 12 Apr 2011 19:52:46 To: FreeSWITCH Users Help<freeswitch-users@lists.freeswitch.org> Reply-To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Subject: Re: [Freeswitch-users] called number rewrite
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
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@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)
participants (5)
-
Alex Crow
-
budi wibowo
-
Budi wibowo
-
Ken Rice
-
Nandy Dagondon