OpenSIPS 2.3 and Homer 5 configuration

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

OpenSIPS 2.3 and Homer 5 configuration

Jeffrey Zhao
Dear Sir/Madam
Happy new year!!

I am trying to configure OpenSIPS 2.3 with Homer 5 using HEP protocol.
Homer is installed using: https://github.com/sipcapture/homer-installer/blob/opensips-2.3/homer_installer.sh

What I want to achieve is to let OpenSIPS to send traced SIP message to Homer using HEP protocol, just like what freeswitch did with Homer.
Is there any document or example I can follow to complete this target?

I read and follow the below link to make the configuration, but obviously it is outdated, and module parameters in the example is already outdated.

https://github.com/sipcapture/homer/wiki/Examples%3A-OpenSIPS
Section:OpenSIPs - config for trace node.

Then, I followed the SIPTrace module document and configure, but OpenSIPS doesn't try to connect homer.
What am I missing?

Thank you very much!

Best Regards.
Jeffrey

loadmodule "proto_hep.so"
loadmodule "siptrace.so"


modparam("siptrace", "trace_on", 1)
modparam("proto_hep", "hep_id",  "[hid]172.21.253.243")
modparam("siptrace", "trace_id", "[tid]uri=hep:hid")

route{

        $var(trace_id) = "tid";
        $var(user) = "[hidden email]";
        sip_trace("$var(trace_id)", "t", "sip|xlog|rest", "$var(user)");

        ......
        if (is_method("REGISTER"))
        {


                sip_trace("$var(trace_id)", "t", "sip|xlog|rest", "$var(user)");


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: OpenSIPS 2.3 and Homer 5 configuration

Bogdan-Andrei Iancu-2
Hi Jeffrey,

Do you have a HEP listener configured in your OpenSIPS:

    listen=hep_udp:opensips_IP:some_hep_port

Best regards,
Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  http://www.opensips-solutions.com
OpenSIPS Summit 2018
  http://www.opensips.org/events/Summit-2018Amsterdam
On 01/02/2018 06:55 AM, Jeffrey Zhao wrote:
Dear Sir/Madam
Happy new year!!

I am trying to configure OpenSIPS 2.3 with Homer 5 using HEP protocol.

What I want to achieve is to let OpenSIPS to send traced SIP message to Homer using HEP protocol, just like what freeswitch did with Homer.
Is there any document or example I can follow to complete this target?

I read and follow the below link to make the configuration, but obviously it is outdated, and module parameters in the example is already outdated.

Section:OpenSIPs - config for trace node.

Then, I followed the SIPTrace module document and configure, but OpenSIPS doesn't try to connect homer.
What am I missing?

Thank you very much!

Best Regards.
Jeffrey

loadmodule "proto_hep.so"
loadmodule "siptrace.so"


modparam("siptrace", "trace_on", 1)
modparam("proto_hep", "hep_id",  "[hid]172.21.253.243")
modparam("siptrace", "trace_id", "[tid]uri=hep:hid")

route{

        $var(trace_id) = "tid";
        $var(user) = [hidden email];
        sip_trace("$var(trace_id)", "t", "sip|xlog|rest", "$var(user)");

        ......
        if (is_method("REGISTER"))
        {


                sip_trace("$var(trace_id)", "t", "sip|xlog|rest", "$var(user)");



_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: OpenSIPS 2.3 and Homer 5 configuration

Jeffrey Zhao
Dear Bogdan
Bingo!!
It works after I add below two lines.
Actually, I realize that if hep listener is not defined, opensips won't restart normally.

listen=hep_udp:172.21.253.242:6666
listen=hep_tcp:172.21.253.242:6666

Now opensips send SIP trace to homer server using TCP.
Is there any config method to send using UDP, or HEP only use TCP?

Thanks.



------------------ Original ------------------
From:  "bogdan";<[hidden email]>;
Date:  Jan 3, 2018
To:  "OpenSIPS users mailling list"<[hidden email]>; "Jeffrey Zhao"<[hidden email]>;
Subject:  Re: [OpenSIPS-Users] OpenSIPS 2.3 and Homer 5 configuration

Hi Jeffrey,

Do you have a HEP listener configured in your OpenSIPS:

    listen=hep_udp:opensips_IP:some_hep_port

Best regards,
Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  http://www.opensips-solutions.com
OpenSIPS Summit 2018
  http://www.opensips.org/events/Summit-2018Amsterdam
On 01/02/2018 06:55 AM, Jeffrey Zhao wrote:
Dear Sir/Madam
Happy new year!!

I am trying to configure OpenSIPS 2.3 with Homer 5 using HEP protocol.

What I want to achieve is to let OpenSIPS to send traced SIP message to Homer using HEP protocol, just like what freeswitch did with Homer.
Is there any document or example I can follow to complete this target?

I read and follow the below link to make the configuration, but obviously it is outdated, and module parameters in the example is already outdated.

Section:OpenSIPs - config for trace node.

Then, I followed the SIPTrace module document and configure, but OpenSIPS doesn't try to connect homer.
What am I missing?

Thank you very much!

Best Regards.
Jeffrey

loadmodule "proto_hep.so"
loadmodule "siptrace.so"


modparam("siptrace", "trace_on", 1)
modparam("proto_hep", "hep_id",  "[hid]172.21.253.243")
modparam("siptrace", "trace_id", "[tid]uri=hep:hid")

route{

        $var(trace_id) = "tid";
        $var(user) = [hidden email];
        sip_trace("$var(trace_id)", "t", "sip|xlog|rest", "$var(user)");

        ......
        if (is_method("REGISTER"))
        {


                sip_trace("$var(trace_id)", "t", "sip|xlog|rest", "$var(user)");



_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: OpenSIPS 2.3 and Homer 5 configuration

Bogdan-Andrei Iancu-2
Hi Jeffrey,

If you define only the UDP HEP listener :
    listen=hep_udp:172.21.253.242:6666
and use no TCP enforcement int the HEP id defintion
    modparam("proto_hep", "hep_id",  "[hid]172.21.253.243")
does it still uses TCP for HEP ??

Regards,
Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  http://www.opensips-solutions.com
OpenSIPS Summit 2018
  http://www.opensips.org/events/Summit-2018Amsterdam
On 01/03/2018 06:03 PM, Jeffrey Zhao wrote:
Dear Bogdan
Bingo!!
It works after I add below two lines.
Actually, I realize that if hep listener is not defined, opensips won't restart normally.

listen=hep_udp:172.21.253.242:6666
listen=hep_tcp:172.21.253.242:6666

Now opensips send SIP trace to homer server using TCP.
Is there any config method to send using UDP, or HEP only use TCP?

Thanks.



------------------ Original ------------------
From:  "bogdan";[hidden email];
Date:  Jan 3, 2018
To:  "OpenSIPS users mailling list"[hidden email]; "Jeffrey Zhao"[hidden email];
Subject:  Re: [OpenSIPS-Users] OpenSIPS 2.3 and Homer 5 configuration

Hi Jeffrey,

Do you have a HEP listener configured in your OpenSIPS:

    listen=hep_udp:opensips_IP:some_hep_port

Best regards,
Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  http://www.opensips-solutions.com
OpenSIPS Summit 2018
  http://www.opensips.org/events/Summit-2018Amsterdam
On 01/02/2018 06:55 AM, Jeffrey Zhao wrote:
Dear Sir/Madam
Happy new year!!

I am trying to configure OpenSIPS 2.3 with Homer 5 using HEP protocol.

What I want to achieve is to let OpenSIPS to send traced SIP message to Homer using HEP protocol, just like what freeswitch did with Homer.
Is there any document or example I can follow to complete this target?

I read and follow the below link to make the configuration, but obviously it is outdated, and module parameters in the example is already outdated.

Section:OpenSIPs - config for trace node.

Then, I followed the SIPTrace module document and configure, but OpenSIPS doesn't try to connect homer.
What am I missing?

Thank you very much!

Best Regards.
Jeffrey

loadmodule "proto_hep.so"
loadmodule "siptrace.so"


modparam("siptrace", "trace_on", 1)
modparam("proto_hep", "hep_id",  "[hid]172.21.253.243")
modparam("siptrace", "trace_id", "[tid]uri=hep:hid")

route{

        $var(trace_id) = "tid";
        $var(user) = [hidden email];
        sip_trace("$var(trace_id)", "t", "sip|xlog|rest", "$var(user)");

        ......
        if (is_method("REGISTER"))
        {


                sip_trace("$var(trace_id)", "t", "sip|xlog|rest", "$var(user)");



_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: OpenSIPS 2.3 and Homer 5 configuration

Jeffrey Zhao
Dear Bogdan
If I only define UDP HEP listener, I will see errors in log file like below:
That's the reason why I add a TCP HEP listener.
To be honest, I can't understand why we need to define HEP listener since opensips send SIP trace to homer as a client.
Thanks.

Jan  3 23:47:14 OpenSIPS12 OpenSIPS12[30056]: ERROR:proto_hep:msg_send: trying to using proto hep_tcp/9 which is not initialized!
Jan  3 23:47:14 OpenSIPS12 OpenSIPS12[30056]: ERROR:proto_hep:send_hep_message: Cannot send hep message!
Jan  3 23:47:14 OpenSIPS12 OpenSIPS12[30056]: ERROR:siptrace:send_trace_proto_duplicate: failed to forward message to destination!
Jan  3 23:47:14 OpenSIPS12 OpenSIPS12[30056]: ERROR:siptrace:save_siptrace: Failed to duplicate with hep to <172.21.253.243:9060>

------------------ Original ------------------
From:  "bogdan";<[hidden email]>;
Date:  Jan 4, 2018
To:  "Jeffrey Zhao"<[hidden email]>;
Cc:  "OpenSIPS users mailling list"<[hidden email]>;
Subject:  Re: [OpenSIPS-Users] OpenSIPS 2.3 and Homer 5 configuration

Hi Jeffrey,

If you define only the UDP HEP listener :
    listen=hep_udp:172.21.253.242:6666
and use no TCP enforcement int the HEP id defintion
    modparam("proto_hep", "hep_id",  "[hid]172.21.253.243")
does it still uses TCP for HEP ??

Regards,
Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  http://www.opensips-solutions.com
OpenSIPS Summit 2018
  http://www.opensips.org/events/Summit-2018Amsterdam
On 01/03/2018 06:03 PM, Jeffrey Zhao wrote:
Dear Bogdan
Bingo!!
It works after I add below two lines.
Actually, I realize that if hep listener is not defined, opensips won't restart normally.

listen=hep_udp:172.21.253.242:6666
listen=hep_tcp:172.21.253.242:6666

Now opensips send SIP trace to homer server using TCP.
Is there any config method to send using UDP, or HEP only use TCP?

Thanks.



------------------ Original ------------------
From:  "bogdan";[hidden email];
Date:  Jan 3, 2018
To:  "OpenSIPS users mailling list"[hidden email]; "Jeffrey Zhao"[hidden email];
Subject:  Re: [OpenSIPS-Users] OpenSIPS 2.3 and Homer 5 configuration

Hi Jeffrey,

Do you have a HEP listener configured in your OpenSIPS:

    listen=hep_udp:opensips_IP:some_hep_port

Best regards,
Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  http://www.opensips-solutions.com
OpenSIPS Summit 2018
  http://www.opensips.org/events/Summit-2018Amsterdam
On 01/02/2018 06:55 AM, Jeffrey Zhao wrote:
Dear Sir/Madam
Happy new year!!

I am trying to configure OpenSIPS 2.3 with Homer 5 using HEP protocol.

What I want to achieve is to let OpenSIPS to send traced SIP message to Homer using HEP protocol, just like what freeswitch did with Homer.
Is there any document or example I can follow to complete this target?

I read and follow the below link to make the configuration, but obviously it is outdated, and module parameters in the example is already outdated.

Section:OpenSIPs - config for trace node.

Then, I followed the SIPTrace module document and configure, but OpenSIPS doesn't try to connect homer.
What am I missing?

Thank you very much!

Best Regards.
Jeffrey

loadmodule "proto_hep.so"
loadmodule "siptrace.so"


modparam("siptrace", "trace_on", 1)
modparam("proto_hep", "hep_id",  "[hid]172.21.253.243")
modparam("siptrace", "trace_id", "[tid]uri=hep:hid")

route{

        $var(trace_id) = "tid";
        $var(user) = [hidden email];
        sip_trace("$var(trace_id)", "t", "sip|xlog|rest", "$var(user)");

        ......
        if (is_method("REGISTER"))
        {


                sip_trace("$var(trace_id)", "t", "sip|xlog|rest", "$var(user)");



_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: OpenSIPS 2.3 and Homer 5 configuration

Bogdan-Andrei Iancu-2
OK, try to enforce UDP as protocol in the definition of the HEP ID (as TCP is the default):
    listen=hep_udp:172.21.253.242:6666
    modparam("proto_hep", "hep_id",  "[hid]172.21.253.243;transport=udp")

A listener is mandatory for any TCP oriented protocol (this is the way the TCP layer works right now in OpenSIPS).

Regards,
Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  http://www.opensips-solutions.com
OpenSIPS Summit 2018
  http://www.opensips.org/events/Summit-2018Amsterdam
On 01/03/2018 06:33 PM, Jeffrey Zhao wrote:
Dear Bogdan
If I only define UDP HEP listener, I will see errors in log file like below:
That's the reason why I add a TCP HEP listener.
To be honest, I can't understand why we need to define HEP listener since opensips send SIP trace to homer as a client.
Thanks.

Jan  3 23:47:14 OpenSIPS12 OpenSIPS12[30056]: ERROR:proto_hep:msg_send: trying to using proto hep_tcp/9 which is not initialized!
Jan  3 23:47:14 OpenSIPS12 OpenSIPS12[30056]: ERROR:proto_hep:send_hep_message: Cannot send hep message!
Jan  3 23:47:14 OpenSIPS12 OpenSIPS12[30056]: ERROR:siptrace:send_trace_proto_duplicate: failed to forward message to destination!
Jan  3 23:47:14 OpenSIPS12 OpenSIPS12[30056]: ERROR:siptrace:save_siptrace: Failed to duplicate with hep to <172.21.253.243:9060>

------------------ Original ------------------
From:  "bogdan";[hidden email];
Date:  Jan 4, 2018
To:  "Jeffrey Zhao"[hidden email];
Cc:  "OpenSIPS users mailling list"[hidden email];
Subject:  Re: [OpenSIPS-Users] OpenSIPS 2.3 and Homer 5 configuration

Hi Jeffrey,

If you define only the UDP HEP listener :
    listen=hep_udp:172.21.253.242:6666
and use no TCP enforcement int the HEP id defintion
    modparam("proto_hep", "hep_id",  "[hid]172.21.253.243")
does it still uses TCP for HEP ??

Regards,
Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  http://www.opensips-solutions.com
OpenSIPS Summit 2018
  http://www.opensips.org/events/Summit-2018Amsterdam
On 01/03/2018 06:03 PM, Jeffrey Zhao wrote:
Dear Bogdan
Bingo!!
It works after I add below two lines.
Actually, I realize that if hep listener is not defined, opensips won't restart normally.

listen=hep_udp:172.21.253.242:6666
listen=hep_tcp:172.21.253.242:6666

Now opensips send SIP trace to homer server using TCP.
Is there any config method to send using UDP, or HEP only use TCP?

Thanks.



------------------ Original ------------------
From:  "bogdan";[hidden email];
Date:  Jan 3, 2018
To:  "OpenSIPS users mailling list"[hidden email]; "Jeffrey Zhao"[hidden email];
Subject:  Re: [OpenSIPS-Users] OpenSIPS 2.3 and Homer 5 configuration

Hi Jeffrey,

Do you have a HEP listener configured in your OpenSIPS:

    listen=hep_udp:opensips_IP:some_hep_port

Best regards,
Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  http://www.opensips-solutions.com
OpenSIPS Summit 2018
  http://www.opensips.org/events/Summit-2018Amsterdam
On 01/02/2018 06:55 AM, Jeffrey Zhao wrote:
Dear Sir/Madam
Happy new year!!

I am trying to configure OpenSIPS 2.3 with Homer 5 using HEP protocol.

What I want to achieve is to let OpenSIPS to send traced SIP message to Homer using HEP protocol, just like what freeswitch did with Homer.
Is there any document or example I can follow to complete this target?

I read and follow the below link to make the configuration, but obviously it is outdated, and module parameters in the example is already outdated.

Section:OpenSIPs - config for trace node.

Then, I followed the SIPTrace module document and configure, but OpenSIPS doesn't try to connect homer.
What am I missing?

Thank you very much!

Best Regards.
Jeffrey

loadmodule "proto_hep.so"
loadmodule "siptrace.so"


modparam("siptrace", "trace_on", 1)
modparam("proto_hep", "hep_id",  "[hid]172.21.253.243")
modparam("siptrace", "trace_id", "[tid]uri=hep:hid")

route{

        $var(trace_id) = "tid";
        $var(user) = [hidden email];
        sip_trace("$var(trace_id)", "t", "sip|xlog|rest", "$var(user)");

        ......
        if (is_method("REGISTER"))
        {


                sip_trace("$var(trace_id)", "t", "sip|xlog|rest", "$var(user)");



_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users




_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users