[Freeswitch-users] Destination number
Christian Benke
benkokakao at gmail.com
Wed Mar 7 15:26:47 MSK 2012
On 7 March 2012 11:48, Miha Zoubek <miha at softnet.si> wrote:
> I would like that destiantion number is just number so, in this calse
> 1232456.
>
> IS that possible?
You have several options:
You can always manipulate destination_number to whatever you want it
to look like and use a different variable in the dialstring, e.g.:
<extension name="Local_Extension">
<condition>
<action application="set" data="dialed_extension=$1"/>
<action application="set"
data="destination_number=${regex(${dialed_extension}|^([0-9]{3,}).freeswitch.si$|%1)}"/>
<action application="bridge"
data="user/${dialed_extension}@${domain_name}"/>
</condition>
</extension>
You could use accountcode as an indicator:
http://wiki.freeswitch.org/wiki/Variable_accountcode
Or you can modify the values in the cdrs alltogether in
conf/autoload_configs/cdr_csv.conf.xml, see
http://wiki.freeswitch.org/wiki/Mod_cdr_csv
Best regards,
Christian
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list