Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<is_rtcp_exist> exception raised, and config file provided #55

Closed
lchabert opened this issue Mar 21, 2016 · 5 comments
Closed

<is_rtcp_exist> exception raised, and config file provided #55

lchabert opened this issue Mar 21, 2016 · 5 comments

Comments

@lchabert
Copy link

Hello,

Thanks for this project, but i have some trouble when i try to configure captagent 6 with RTCP collector feature.

I have activated protocol and socket for rtcp on captagent.xml

<load module="protocol_rtcp" register="local"/>
<load module="socket_pcap" register="local"/>

Set my socket_pcap.xml to grab rtcp :

  <profile name="socketspcap_rtcp" description="RTCP Socket" enable="true" serial="2014010402">
            <settings>
                <param name="dev" value="any"/>
                <param name="promisc" value="true"/>
                <param name="reasm" value="false"/>
                <param name="capture-filter" value="rtcp"/>
                <param name="capture-plan" value="rtcp_capture_plan.cfg"/>
                <param name="filter">
                    <value>portrange 10000-20000</value>
                </param>
            </settings>
        </profile>

and also a capture-plan, on capture-plan folder. (cloned yesterday).

But when i try to start captagent with RCTP, i have some errors:

captagent -f captagent.xml 
[NOTICE] Loaded core config
[ERR] conf_function.c:451 find_export_record: <is_rtcp_exist> not found 

parse error (41,21-22): unknown command, missing loadmodule?

ERROR: bad config file (1 errors)
WARNING: run_actions: null action list (rec_level=4)

What does means "is_rtcp_exist" ? How i can fix this issue ?
Module is ok and path OK too:

ls /usr/local/lib/captagent/modules/protocol_rtcp.*
/usr/local/lib/captagent/modules/protocol_rtcp.a  /usr/local/lib/captagent/modules/protocol_rtcp.la  /usr/local/lib/captagent/modules/protocol_rtcp.so

FYI: I'm running captagent on Centos7.

Thanks.

@lmangani
Copy link
Member

Hi,

Please try adding database_hash and protocol_sip to the recipe

<load module="protocol_sip" register="local"/>
<load module="database_hash" register="local"/>

@lchabert
Copy link
Author

Hi,

Same error when i load this two modules.

Below, my complete captagent.xml:

<?xml version="1.0"?>
<document type="captagent/xml">
    <configuration name="core.conf" description="CORE Settings" serial="2014024212">
        <settings>
        <param name="debug" value="3"/>
        <param name="version" value="2"/>
        <param name="serial" value="2014056501"/>
        <param name="uuid" value="00781a4a-5b69-11e4-9522-bb79a8fcf0f3"/>
        <param name="daemon" value="false"/>
        <param name="syslog" value="false"/>
        <param name="pid_file" value="/var/run/captagent.pid"/>
        <!-- Configure using installation path if different from default -->
        <param name="module_path" value="/usr/local/lib/captagent/modules"/>
        <param name="config_path" value="/usr/local/etc/captagent"/>
        <param name="capture_plans_path" value="/usr/local/etc/captagent/captureplans"/>
        <param name="backup" value="/usr/local/etc/captagent/backup"/>
        <param name="chroot" value="/var/lib/captagent"/>
        </settings>
    </configuration>
    <configuration name="modules.conf" description="Modules">
        <modules>
        <load module="transport_hep" register="local"/>
        <load module="protocol_sip" register="local"/>
        <load module="protocol_rtcp" register="local"/>                                       
        <load module="socket_pcap" register="local"/>
        <load module="database_hash" register="local"/>
        </modules>
    </configuration>
</document>```

@adubovikov
Copy link
Member

database_hash should be loaded before protocol_sip

@lchabert
Copy link
Author

Hum ok, it works on this order.

Last one error: "Couldnot find this call", proabably not related to module order.

@lmangani
Copy link
Member

Please feel free to re-open if needed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants