Hi, I have user rigstered on FS as exp. 1232456.freeswitch.si. Problem is that I am also getting destination number in CDR as this, but I would like that destiantion number is just number so, in this calse 1232456. IS that possible? Thanks! Miha
On 7 March 2012 11:48, Miha Zoubek <miha@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
On 03/07/2012 01:26 PM, Christian Benke wrote:
On 7 March 2012 11:48, Miha Zoubek<miha@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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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
Hi @Christian, I have set in my dialplan <action application="set" data="accountcode=custom"/> in my dialplan fs set: 2012-03-07 13:47:11.179122 [NOTICE] switch_core_session.c:2365 Execute set(accountcode=custom) EXECUTE sofia/internal/018108500.fs_kabelvoip1@fs_kabelvoip1.fs1.softnet.si set(accountcode=custom) In my cdr.conf.xml file: <template name="custom">"","${caller_id_name}","${caller_id_number}","${destination_prvi}","${context}","${start_stamp}","${answer_stamp}","${end_stamp}","${duration}","${billsec}","${hangup_cause}","${uuid}","${bleg_uuid}","${accountcode}","${read_codec}","${write_codec}"</template> Must I comment this: <param name="default-template" value="example"/> Because for default template is stil executed? Thanks! Miha
I have set in my dialplan <action application="set" data="accountcode=custom"/>
in my dialplan fs set:
2012-03-07 13:47:11.179122 [NOTICE] switch_core_session.c:2365 Execute set(accountcode=custom) EXECUTE sofia/internal/018108500.fs_kabelvoip1@fs_kabelvoip1.fs1.softnet.si set(accountcode=custom)
In my cdr.conf.xml file:
<template name="custom">"","${caller_id_name}","${caller_id_number}","${destination_prvi}","${context}","${start_stamp}","${answer_stamp}","${end_stamp}","${duration}","${billsec}","${hangup_cause}","${uuid}","${bleg_uuid}","${accountcode}","${read_codec}","${write_codec}"</template>
Must I comment this: <param name="default-template" value="example"/>
Because for default template is stil executed?
Hmm, no, don't comment it out - if you want the "custom"-template to be used, set <param name="default-template" value="custom"/> The accountcode-variable on the other hand does not define which template is used, but it is a variable used in the cdr-files. In your "custom"-template it's the variable you defined between "${bleg_uuid}" and "${read_codec}" Regards, Christain
Hi guys, I use the actual git from today. I create a queue_dtmf extension: <extension name="voicebox_login" > <condition field="destination_number" expression="^08925007676$"> <action application="queue_dtmf" data="*W2233W1@100"/> <!-- <action application="start_dtmf" /> --> <action application="bridge" data="{ignore_early_media=true}loopback/015703730412/disa"/> </condition> </extension> fs does not wait until the connection is established. This problem occurs only with loopback. ignore_early_media = true shows no effect. I should route directly over a gateway, it works out. for example: <action application="bridge" data="{ignore_early_media=true}sofia/gateway/landline/015703730412"/> works correctly. Can your looks for this problem please? thanks. --------------- Du kannst mich jederzeit kostenlos per Festnetz erreichen unter: http://www.blindi.net/callback homepage: http://www.blindi.net blinde-misc mailingliste für blinde. anmeldung unter: http://www.blindi.net/mailman/listinfo/blinde-misc
Why do you need to use loopback? -MC On Wed, Mar 7, 2012 at 5:27 AM, Thomas Hoellriegel <admin@blindi.net> wrote:
Hi guys, I use the actual git from today. I create a queue_dtmf extension: <extension name="voicebox_login" > <condition field="destination_number" expression="^08925007676$"> <action application="queue_dtmf" data="*W2233W1@100"/> <!-- <action application="start_dtmf" /> --> <action application="bridge" data="{ignore_early_media=** true}loopback/015703730412/**disa"/>
</condition> </extension>
fs does not wait until the connection is established. This problem occurs only with loopback. ignore_early_media = true shows no effect. I should route directly over a gateway, it works out. for example: <action application="bridge" data="{ignore_early_media=**true}sofia/gateway/landline/**015703730412"/> works correctly. Can your looks for this problem please? thanks.
--------------- Du kannst mich jederzeit kostenlos per Festnetz erreichen unter: http://www.blindi.net/callback homepage: http://www.blindi.net blinde-misc mailingliste für blinde. anmeldung unter: http://www.blindi.net/mailman/**listinfo/blinde-misc<http://www.blindi.net/mailman/listinfo/blinde-misc>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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
Hi Michael,
Why do you need to use loopback? I have a Dialplan to route originated / DISA calls to different gateways. For example: 02 - 09 beginning areacodes to german Landlines. (landlinegateway) 032 is the Areacode for Voip-numers, "Voipnumbersgateway) 00 x is the longdistanceprifix, (internationalgateway) and 015 - 017 beginning all cellphone numbers. (cellphonegateway) I route these prefixes to different gateways. The problem: Unfortunately, I can only use loopback so the calls are distributed over these gateways.
Due to cost, I can not run anything over a gateway. -------------- Du kannst mich jederzeit kostenlos per Festnetz erreichen unter: http://www.blindi.net/callback homepage: http://www.blindi.net blinde-misc mailingliste für blinde. anmeldung unter: http://www.blindi.net/mailman/listinfo/blinde-misc
participants (4)
-
Christian Benke
-
Michael Collins
-
Miha Zoubek
-
Thomas Hoellriegel