Howto Set default language for an application ?
Hello, I'm trying to set up my first FreeSWITCH server but I don't know where to set the default language corresponding to the following line in conf/dialplan/default.xml :
<extension name="Local_Extension"> ... <action application="bridge" data="loopback/app=voicemail:default ${domain_name} ${dialed_extension}"/> ... </extension>
I have tried this :
<extension name="Local_Extension"> ... *<action application="set" data="default_language=fr"/>* ... <action application="bridge" data="loopback/app=voicemail:default ${domain_name} ${dialed_extension}"/> ... </extension>
From what I have understood it is normal that it doesn't work as the bridge to a loopback would use it's own settings, but I don't have a clue where to set it of app=voicemail Is there a way to set the default language per SIP connection ? I have got an english and a french SIP line and would like to make calls going to the english line have english instructions for leaving a message on the voicemail and the calls to the french line to have french instructions for leaving a message on the voicemail. Thank you Richard
Hello, Can anybody help me and tell me how do install a module FreeSwitch with Lazarus-Pascal.. And there is any other way beside socket and it is have to be with socket what module activated Saludos. Fredy G.
Hello Freddy, I don't think there's an ESL client library for lazarus/pascal. My best guess is that you can reuse the one written in C if lazarus can P/Invoke system libraries (I'm not familiar with Lazarus at all). Second choice (and a harder one) would be to create your own ESL client. This involves listening on a socket port, parse the events sent by FS and send commands back to freeswitch using sockets. You can take a look at the Java ESL client library source code (org.freeswitch.esl.client) as a reference in case you decide to embark yourself in this titanic task. http://wiki.freeswitch.org/wiki/Java_ESL Good luck! From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Fredy Gonzales Sent: Wednesday, December 14, 2011 2:08 PM To: FreeSWITCH Users Help Subject: [Freeswitch-users] Lazarus - FreeSwitch Hello, Can anybody help me and tell me how do install a module FreeSwitch with Lazarus-Pascal.... And there is any other way beside socket and it is have to be with socket what module activated Saludos. Fredy G.
Might 0mq help, they might have bindings. On Dec 15, 2011 6:24 PM, "Hector Geraldino" <Hector.Geraldino@ip-soft.net> wrote: Hello Freddy,**** ** ** I don’t think there’s an ESL client library for lazarus/pascal. My best guess is that you can reuse the one written in C if lazarus can P/Invoke system libraries (I’m not familiar with Lazarus at all). **** ** ** Second choice (and a harder one) would be to create your own ESL client. This involves listening on a socket port, parse the events sent by FS and send commands back to freeswitch using sockets. You can take a look at the Java ESL client library source code (org.freeswitch.esl.client) as a reference in case you decide to embark yourself in this titanic task.**** ** ** http://wiki.freeswitch.org/wiki/Java_ESL**** ** ** Good luck!**** ** ** *From:* freeswitch-users-bounces@lists.freeswitch.org [mailto: freeswitch-users-bounces@lists.freeswitch.org] *On Behalf Of *Fredy Gonzales *Sent:* Wednesday, December 14, 2011 2:08 PM *To:* FreeSWITCH Users Help *Subject:* [Freeswitch-users] Lazarus - FreeSwitch**** Hello, Can anybody help me and tell me how do install a module FreeSwitch with Lazarus-Pasc... _________________________________________________________________________ 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
Hello again, I'm sorry about the two e-mails asking the same question, I did not think the first one had been sent. I have found a work around but need your advice as I do not know why it was not done this way in the first place ! Old code (default in default.xml) :
<action application="bridge" data="loopback/app=voicemail:default ${domain_name} ${dialed_extension}"/>
Replacement code :
<action application="voicemail" data="default ${domain_name} ${dialed_extension}"/>
What is the difference between the two ? Why is the bridge application used to transfer to voicemail ? Is the replacement code the wrong approach ? Is it a question of how much ressources are used ? If so what is the real impact ? Even if my approach is correct, I'm still interested in knowing if there is a way to set the voicemail application default language. Thank you, Richard Le 14.12.11 19:50, fsrichard@ghz.fr a écrit :
Hello,
I'm trying to set up my first FreeSWITCH server but I don't know where to set the default language corresponding to the following line in conf/dialplan/default.xml :
<extension name="Local_Extension"> ... <action application="bridge" data="loopback/app=voicemail:default ${domain_name} ${dialed_extension}"/> ... </extension>
I have tried this :
<extension name="Local_Extension"> ... *<action application="set" data="default_language=fr"/>* ... <action application="bridge" data="loopback/app=voicemail:default ${domain_name} ${dialed_extension}"/> ... </extension>
From what I have understood it is normal that it doesn't work as the bridge to a loopback would use it's own settings, but I don't have a clue where to set it of app=voicemail
Is there a way to set the default language per SIP connection ?
I have got an english and a french SIP line and would like to make calls going to the english line have english instructions for leaving a message on the voicemail and the calls to the french line to have french instructions for leaving a message on the voicemail.
Thank you
Richard
_________________________________________________________________________ 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
Hello, Just in cas any one is interested I got an answer from the IRC.
<action application="bridge" data="{default_language=fr}loopback/app=voicemail:default ${domain_name} ${dialed_extension}"/>
:) Le 15.12.11 10:45, fsrichard@ghz.fr a écrit :
Hello again, I'm sorry about the two e-mails asking the same question, I did not think the first one had been sent.
I have found a work around but need your advice as I do not know why it was not done this way in the first place !
Old code (default in default.xml) :
<action application="bridge" data="loopback/app=voicemail:default ${domain_name} ${dialed_extension}"/>
Replacement code :
<action application="voicemail" data="default ${domain_name} ${dialed_extension}"/>
What is the difference between the two ? Why is the bridge application used to transfer to voicemail ? Is the replacement code the wrong approach ? Is it a question of how much ressources are used ? If so what is the real impact ?
Even if my approach is correct, I'm still interested in knowing if there is a way to set the voicemail application default language.
Thank you,
Richard
Le 14.12.11 19:50, fsrichard@ghz.fr a écrit :
Hello,
I'm trying to set up my first FreeSWITCH server but I don't know where to set the default language corresponding to the following line in conf/dialplan/default.xml :
<extension name="Local_Extension"> ... <action application="bridge" data="loopback/app=voicemail:default ${domain_name} ${dialed_extension}"/> ... </extension>
I have tried this :
<extension name="Local_Extension"> ... *<action application="set" data="default_language=fr"/>* ... <action application="bridge" data="loopback/app=voicemail:default ${domain_name} ${dialed_extension}"/> ... </extension>
From what I have understood it is normal that it doesn't work as the bridge to a loopback would use it's own settings, but I don't have a clue where to set it of app=voicemail
Is there a way to set the default language per SIP connection ?
I have got an english and a french SIP line and would like to make calls going to the english line have english instructions for leaving a message on the voicemail and the calls to the french line to have french instructions for leaving a message on the voicemail.
Thank you
Richard
_________________________________________________________________________ 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
_________________________________________________________________________ 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
participants (4)
-
Avi Marcus
-
Fredy Gonzales
-
fsrichard@ghz.fr
-
Hector Geraldino