Hello Sherif,
You don't need to include any other configuration files unless you really know what you are doing. You can create profiles from vBilling interface. Navigate to FreeSWITCH -> New Profile and fill in the form. We are not using mod_cdr_csv. We are storing all the cdr(s) in the database using mod_xml_cdr. If you create your own profiles and gateways, I am afraid you won't be able to use vBilling.

For any vBilling issues, please post them to http://forum.vbilling.org/ and someone would help you out.

Thanks.

On Sun, Jan 8, 2012 at 1:06 AM, Sherif Omran <sherifomran2000@yahoo.com> wrote:
Dear Guys,

I installed the vbilling sucessfully (no errors) in the freeswitch log. Here are my recommendations:

1- vBilling creates a file called freeswitch.xml by default auto-install script. If you want to use it you have to add the following line in between lines 176 and 177 because it does not load any profiles by default

<X-PRE-PROCESS cmd="include" data="autoload_configs/*.xml"/>


Alternatively: I would recommend to create a file called vBilling.xml with the following contents



<include>

<!--
vBilling Custom Defines. START
-->

<X-PRE-PROCESS cmd="set" data="vBilling_xml_curl_url=http://localhost/xmlcurl/index.php"/>
<X-PRE-PROCESS cmd="set" data="vBilling_xml_curl_binding=configuration|directory"/>

<X-PRE-PROCESS cmd="set" data="vBilling_xml_cdr_url=http://localhost/xmlcurl/index.php"/>
<X-PRE-PROCESS cmd="set" data="event_socket_listen_ip=127.0.0.1"/>
<X-PRE-PROCESS cmd="set" data="event_socket_listen_port=8021"/>
<X-PRE-PROCESS cmd="set" data="event_socket_password=ClueCon"/>
<!--
vBilling Custom Defines. END
-->


<section name="configuration" description="Various Configuration">
 <X-PRE-PROCESS cmd="include" data="autoload_configs/*.conf.xml"/>

<configuration name="xml_curl.conf" description="cURL XML Gateway">
<bindings>
<binding name="production">
<param name="gateway-url" value="$${vBilling_xml_curl_url}" bindings="$${vBilling_xml_curl_binding}"/>
</binding>
</bindings>
</configuration>
</section>

<section name="dialplan" description="Regex/XML Dialplan">
<context name="default">
<extension name="vBilling">
<condition field="destination_number" expression="^(\d+)$">
<action application="lua" data="/usr/local/freeswitch/scripts/vBilling.luac"/>
<action application="bridge" data="${vBilling_bridge_data}"/>
</condition>
</extension>
</context>
</section>
</include>


In freeswitch.conf

Add the following line

    <X-PRE-PROCESS cmd="include" data="vBilling.xml"/>

after the line saying

  <section name="configuration" description="Various Configuration">

In Switch.conf

<param name="switchname" value="vBilling"/>

<param name="dump-cores" value="no"/>


Now it should be correctly installed. If you run ./freeswitch -nonat
you should not find any errors. Then run sofia status and you should see your profiles loaded.


However,

1) in my case, when i do a call and i check it being registered in the log/cdr-csv/Master.csv  , I still can not find it in the vBilling system? did i miss any configuration? Should I create a user first in vBilling system before testing a call?

2) ZRTP function stops?

any clue?

regards,
Sherif Omran