<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.5626" name=GENERATOR></HEAD>
<BODY
style="WORD-WRAP: break-word; webkit-nbsp-mode: space; webkit-line-break: after-white-space">
<DIV dir=ltr align=left><SPAN class=071431219-03102008><FONT face=Arial
color=#0000ff size=2>Michael,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=071431219-03102008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=071431219-03102008><FONT face=Arial
color=#0000ff size=2>Thanks a lot for the answers, it answers my questions, I
guess the next thing would be downloading and trying FS :)</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=071431219-03102008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=071431219-03102008><FONT face=Arial
color=#0000ff size=2>Also, as I saw in the wiki, there is no built in support
for mysql right? The solution that was suggested was setting up a cron
to import the csv files into mysql, is this still what's available or are there
any updates on this?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=071431219-03102008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=071431219-03102008><FONT face=Arial
color=#0000ff size=2>Thank,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=071431219-03102008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=071431219-03102008><FONT face=Arial
color=#0000ff size=2>Vito A.</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B>
freeswitch-users-bounces@lists.freeswitch.org
[mailto:freeswitch-users-bounces@lists.freeswitch.org] <B>On Behalf Of
</B>Michael Jerris<BR><B>Sent:</B> Friday, October 03, 2008 7:06
AM<BR><B>To:</B> freeswitch-users@lists.freeswitch.org<BR><B>Subject:</B> Re:
[Freeswitch-users] Newbie Questions<BR></FONT><BR></DIV>
<DIV></DIV><BR>
<DIV>
<DIV>On Oct 3, 2008, at 4:54 AM, Vito Andolini wrote:</DIV><BR
class=Apple-interchange-newline>
<BLOCKQUOTE type="cite">
<DIV>
<DIV><SPAN class=571264508-03102008><FONT face=Arial size=2>Hi
All,</FONT></SPAN></DIV>
<DIV><SPAN class=571264508-03102008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=571264508-03102008><FONT face=Arial size=2>I am familiar with
Asterisk and doing some testing for my next project. I have had some
difficulties Asterisk, and now researching FreeSwitch hoping that it has some
out-of-the box answers for my questions.
<DIV><SPAN class=571264508-03102008><FONT face=Arial
size=2></FONT></SPAN> </DIV></FONT></SPAN><SPAN
class=571264508-03102008><FONT face=Arial size=2></FONT></SPAN></DIV>
<DIV><SPAN class=571264508-03102008><FONT face=Arial size=2>Basically I want
to implement a Click 2 Call service. Very simple, user types in his/her
number on a website, that number is called, after it's answered, the company
number is called and they are bridged together.</FONT></SPAN></DIV>
<DIV><SPAN class=571264508-03102008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=571264508-03102008><FONT face=Arial size=2>1) Is there a way
to communicate with FreeSwitch programatically and issue commands such as
initiate calls etc ? (ver much like manager API in
Asterisk)</FONT></SPAN></DIV></DIV></BLOCKQUOTE>
<DIV><BR></DIV>
<DIV>There is an interface that we call the fsapi interface that can be accessed
in many ways, including over a socket method similar to a combination of AMI and
FAGI:</DIV>
<DIV><BR></DIV>
<DIV><A
href="http://wiki.freeswitch.org/wiki/Event_Socket">http://wiki.freeswitch.org/wiki/Event_Socket</A></DIV>
<DIV><BR></DIV>
<DIV>and xmlrpc:</DIV>
<DIV><BR></DIV>
<DIV><A
href="http://wiki.freeswitch.org/wiki/Freeswitch_XML-RPC">http://wiki.freeswitch.org/wiki/Freeswitch_XML-RPC</A><SPAN
class=Apple-style-span
style="FONT-FAMILY: Arial; webkit-text-stroke-width: -1"></SPAN></DIV>
<DIV><SPAN class=Apple-style-span
style="FONT-FAMILY: Arial; webkit-text-stroke-width: -1"></SPAN> </DIV>
<BLOCKQUOTE type="cite">
<DIV>
<DIV><SPAN class=571264508-03102008><FONT face=Arial size=2>2) If you
initiate a call from the software and then once its answered call a 2nd
number. How do you bridge them?</FONT></SPAN></DIV></DIV></BLOCKQUOTE>
<DIV><BR></DIV>You can do this all in one command:</DIV>
<DIV><BR></DIV>
<DIV><A
href="http://wiki.freeswitch.org/wiki/Mod_commands#originate">http://wiki.freeswitch.org/wiki/Mod_commands#originate</A></DIV>
<DIV><BR></DIV>
<DIV>
<BLOCKQUOTE type="cite">
<DIV>
<DIV><SPAN class=571264508-03102008><FONT face=Arial size=2>3) After the
2 numbers talk and hang up. How does your cdr look like? Do you have 2 cdr's
that correspond to both calls or just 1 after both numbers are bridged
together? This is one of the problems I can't solve with Asterisk as it
generates only 1 cdr after the 2 calss are bridged. The reason for this
request is, in case of a Click2Call service, you are charged for both calls by
your SIP provider therefore you need to be able to track both calls for
invoices/payments etc.</FONT></SPAN></DIV></DIV></BLOCKQUOTE>
<DIV><BR></DIV>
<DIV>We can do either per leg or combined cdr's</DIV>
<DIV><BR></DIV>
<DIV><A
href="http://wiki.freeswitch.org/wiki/Channel_Variables#process_cdr">http://wiki.freeswitch.org/wiki/Channel_Variables#process_cdr</A></DIV>
<DIV><BR></DIV>
<DIV>We have multiple supported formats for cdr:</DIV>
<DIV><BR></DIV>
<DIV><A
href="http://wiki.freeswitch.org/wiki/Mod_xml_cdr">http://wiki.freeswitch.org/wiki/Mod_xml_cdr</A></DIV>
<DIV><A
href="http://wiki.freeswitch.org/wiki/Mod_cdr_csv">http://wiki.freeswitch.org/wiki/Mod_cdr_csv</A></DIV>
<DIV> </DIV>
<BLOCKQUOTE type="cite">
<DIV>
<DIV><SPAN class=571264508-03102008><FONT face=Arial size=2>4) Is there a way
to programatically know if a call has been asnwered or not and act based upon
that. I understand the cdr contains that information. But what I want is, if
the call is not answered maybe I can play a prerecorded message or take them
to the voicemail or whatnot. So I need a way to do a flow-control based on if
the call has been asnwered or not in the dialplan. Does that exist? If so can
you point me to some resources?</FONT></SPAN></DIV></DIV></BLOCKQUOTE><BR></DIV>
<DIV>There are several approaches you could take to this. You could do
this all in dialplan if there is not any real forking other than if the call
worked. You can use the variables:</DIV>
<DIV><BR></DIV>
<DIV><A
href="http://wiki.freeswitch.org/wiki/Channel_Variables#hangup_after_bridge">http://wiki.freeswitch.org/wiki/Channel_Variables#hangup_after_bridge</A></DIV>
<DIV><A
href="http://wiki.freeswitch.org/wiki/Channel_Variables#continue_on_fail">http://wiki.freeswitch.org/wiki/Channel_Variables#continue_on_fail</A></DIV>
<DIV><BR></DIV>
<DIV>and just playing the sounds in the dial-plan after a bridge
line.</DIV>
<DIV><BR></DIV>
<DIV><BR></DIV>
<DIV>Mike</DIV>
<P><FONT face=Arial size=2>No virus found in this incoming message.<BR>Checked
by AVG - http://www.avg.com<BR>Version: 8.0.173 / Virus Database: 270.7.5/1702 -
Release Date: 10/2/2008 9:35 PM<BR></FONT></P>
<P><FONT face=Arial size=2></FONT></P></BODY></HTML>