Re: [SR-Users] Core dump on diameter CCR request

2018-11-12 Thread Venkatesh Macha
Thank you for your reply. 

Daniel, 

Here is the full backtrace of Kamailio. 
Full_backtrace.txt
  

Carsten, 

I am using the latest kamailio git master branch. 

version: kamailio 5.3.0-dev0 (x86_64/linux) 37c2e5 


Mojtaba, 

I suspect I am doing some configuration related mistake, please have a look
at my diameter.xml and could you please let me know if i am doing anything
wrong. 

diameter.xml
  

Here i'm trying to connect to the OCS server to query the balance units for
user. 
I can see diameter connection is established, I can see it on logs and
Wireshark (got DIAMETER_SUCCESS) 

But while starting the Kamailio server i'm receiving few errors. Does those
erros cause any problems. 

Nov 12 18:03:50 ip-10-195-0-38 /usr/local/sbin/kamailio[30869]: INFO: cdp
[peerstatemachine.c:524]: I_Snd_Conn_Req(): I_Snd_Conn_Req(): Peer
185.22X.XX.XX 
Nov 12 18:03:50 ip-10-195-0-38 /usr/local/sbin/kamailio[30869]: INFO: cdp
[receiver.c:868]: peer_connect(): peer_connect(): Trying to connect to
185.22X.XX.XX port 38XX 
Nov 12 18:03:50 ip-10-195-0-38 /usr/local/sbin/kamailio[30869]: INFO: cdp
[receiver.c:937]: peer_connect(): peer_connect(): Peer 185.22X.XX.XX:3870
connected 
Nov 12 18:03:50 ip-10-195-0-38 /usr/local/sbin/kamailio[30867]: ERROR: cdp
[peerstatemachine.c:675]: add_peer_application(): Too many applications for
this peer (max 0), not adding Application 4:0. 

Please look at the kamailio_startup_messages.txt for full log. 

kamailio_startup_messages.kamailio_startup_messages

  

I am using AWS with Elastic IP and kamailio is behind the NAT. In my
diameter.xml also kamilio Peer have public IP to bind. 

Thank you in Advance, 
Venkey. 



--
Sent from: http://sip-router.1086192.n5.nabble.com/Users-f3.html

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Core dump on diameter CCR request

2018-11-12 Thread Venkatesh Macha
Thank you for your reply. 

Daniel, 

Here is the full backtrace of Kamailio. 
Full_backtrace.txt
  

Carsten, 

I am using the latest kamailio git master branch. 

version: kamailio 5.3.0-dev0 (x86_64/linux) 37c2e5 


Mojtaba, 

I suspect I am doing some configuration related mistake, please have a look
at my diameter.xml and could you please let me know if i am doing anything
wrong. 

diameter.xml
  

Here i'm trying to connect to the OCS server to query the balance units for
user. 
I can see diameter connection is established, I can see it on logs and
Wireshark (got DIAMETER_SUCCESS) 

But while starting the Kamailio server i'm receiving few errors. Does those
erros cause any problems. 

Nov 12 18:03:50 ip-10-195-0-38 /usr/local/sbin/kamailio[30869]: INFO: cdp
[peerstatemachine.c:524]: I_Snd_Conn_Req(): I_Snd_Conn_Req(): Peer
185.22X.XX.XX 
Nov 12 18:03:50 ip-10-195-0-38 /usr/local/sbin/kamailio[30869]: INFO: cdp
[receiver.c:868]: peer_connect(): peer_connect(): Trying to connect to
185.22X.XX.XX port 38XX 
Nov 12 18:03:50 ip-10-195-0-38 /usr/local/sbin/kamailio[30869]: INFO: cdp
[receiver.c:937]: peer_connect(): peer_connect(): Peer 185.22X.XX.XX:3870
connected 
Nov 12 18:03:50 ip-10-195-0-38 /usr/local/sbin/kamailio[30867]: ERROR: cdp
[peerstatemachine.c:675]: add_peer_application(): Too many applications for
this peer (max 0), not adding Application 4:0. 

Please look at the kamailio_startup_messages.txt for full log. 

kamailio_startup_messages.kamailio_startup_messages

  

I am using AWS with Elastic IP and kamailio is behind the NAT. In my
diameter.xml also kamilio Peer have public IP to bind. 

Thank you in Advance, 
Venkey. 



--
Sent from: http://sip-router.1086192.n5.nabble.com/Users-f3.html

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Core dump on diameter CCR request

2018-11-12 Thread Venkatesh Macha
Thank you for your reply. 

Daniel, 

Here is the full backtrace of Kamailio. 
Full_backtrace.txt
  

Carsten, 

I am using the latest kamailio git master branch. 

version: kamailio 5.3.0-dev0 (x86_64/linux) 37c2e5 


Mojtaba, 

I suspect I am doing some configuration related mistake, please have a look
at my diameter.xml and could you please let me know if i am doing anything
wrong. 

diameter.xml
  

Here i'm trying to connect to the OCS server to query the balance units for
user. 
I can see diameter connection is established, I can see it on logs and
Wireshark (got DIAMETER_SUCCESS) 

But while starting the Kamailio server i'm receiving few errors. Does those
erros cause any problems. 

Nov 12 18:03:50 ip-10-195-0-38 /usr/local/sbin/kamailio[30869]: INFO: cdp
[peerstatemachine.c:524]: I_Snd_Conn_Req(): I_Snd_Conn_Req(): Peer
185.22X.XX.XX 
Nov 12 18:03:50 ip-10-195-0-38 /usr/local/sbin/kamailio[30869]: INFO: cdp
[receiver.c:868]: peer_connect(): peer_connect(): Trying to connect to
185.22X.XX.XX port 38XX 
Nov 12 18:03:50 ip-10-195-0-38 /usr/local/sbin/kamailio[30869]: INFO: cdp
[receiver.c:937]: peer_connect(): peer_connect(): Peer 185.22X.XX.XX:3870
connected 
Nov 12 18:03:50 ip-10-195-0-38 /usr/local/sbin/kamailio[30867]: ERROR: cdp
[peerstatemachine.c:675]: add_peer_application(): Too many applications for
this peer (max 0), not adding Application 4:0. 

Please look at the kamailio_startup_messages.txt

kamailio_startup_messages

  

I am using AWS with Elastic IP and kamailio is behind the NAT. In my
diameter.xml also kamilio Peer have public IP to bind. 

Thank you in Advance, 
Venkey. 



--
Sent from: http://sip-router.1086192.n5.nabble.com/Users-f3.html

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Core dump on diameter CCR request

2018-11-12 Thread Venkatesh Macha
Thank you for your reply.

Daniel, 

Here is the full backtrace of Kamailio.
Full_backtrace.txt
  


Carsten, 

I am using the latest kamailio git master branch.

version: kamailio 5.3.0-dev0 (x86_64/linux) 37c2e5


Mojtaba, 

I suspect I am doing some configuration related mistake, please have a look
at my diameter.xml and could you please let me know if i am doing anything
wrong.

diameter.xml 

Here i'm trying to connect to the OCS server to query the balance units for
user.
I can see diameter connection is established, I can see it on logs and
Wireshark (got DIAMETER_SUCCESS)

But while starting the Kamailio server i'm receiving few errors. Does those
erros cause any problems.

Nov 12 18:03:50 ip-10-195-0-38 /usr/local/sbin/kamailio[30869]: INFO: cdp
[peerstatemachine.c:524]: I_Snd_Conn_Req(): I_Snd_Conn_Req(): Peer
185.22X.XX.XX
Nov 12 18:03:50 ip-10-195-0-38 /usr/local/sbin/kamailio[30869]: INFO: cdp
[receiver.c:868]: peer_connect(): peer_connect(): Trying to connect to
185.22X.XX.XX port 38XX
Nov 12 18:03:50 ip-10-195-0-38 /usr/local/sbin/kamailio[30869]: INFO: cdp
[receiver.c:937]: peer_connect(): peer_connect(): Peer 185.22X.XX.XX:3870
connected
Nov 12 18:03:50 ip-10-195-0-38 /usr/local/sbin/kamailio[30867]: ERROR: cdp
[peerstatemachine.c:675]: add_peer_application(): Too many applications for
this peer (max 0), not adding Application 4:0.

Please look at the kamailio_startup_messages.txt for full log.

kamailio_startup_messages.kamailio_startup_messages

  

I am using AWS with Elastic IP and kamailio is behind the NAT. In my
diameter.xml also kamilio Peer have public IP to bind.

Thank you in Advance, 
Venkey.




--
Sent from: http://sip-router.1086192.n5.nabble.com/Users-f3.html

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Core dump on diameter CCR request

2018-11-12 Thread Carsten Bock
Hi,

Also, what version of Kamailio are you using?

Thanks,
Carsten



Am Mo., 12. Nov. 2018, 09:50 hat Mojtaba  geschrieben:

> Hello,
> We developed OCS based on these module in Kamailio: ims_charging,
> ims_ocs, ims_dimameter_server and worker process written in Q_HSS. We
> have not this issue.
> Are you sure ims_charging is connected to any ocs proccess like ims_ocs?
> Because CCR/CCA and other related message is transfered between them.
> With Regards.
> Mojtaba Esfandiari.S
>
> On Mon, Nov 12, 2018 at 11:48 AM Daniel-Constantin Mierla
>  wrote:
> >
> > Hello,
> >
> > get the full backtrace with gdb from the core file -- it should reveal
> > where the crash happened.
> >
> > Also, it might be good to open an issue in bug tracker from
> > github.com/kamailio/kamailio in order to track it properly.
> >
> > Cheers,
> > Daniel
> >
> >
> > On 11.11.18 12:52, Venkatesh Macha wrote:
> > > Hi all,
> > >
> > > I am trying to implement Diameter charging with Kamailio. I am
> following
> > > below tutorial
> > >
> https://www.kamailio.org/events/2016-KamailioWorld/Day2/15-Carsten.Bock-Diameter-Charging-With-Kamailio.pdf
> > >
> > > But whenever I try to do the Ro_CCR from the INVITE block, Kamailio is
> > > crashing and generating the core dump. I am new to diameter. I might be
> > > doing something wrong here.
> > >
> > > please someone help me here.
> > >
> > > Please find the *diameter.xml* and *Diameter_core_dump_full_debug.txt*
> file.
> > >
> > > diameter.xml
> > > 
> > > Diameter_core_dump_full_Debug.txt
> > > <
> http://sip-router.1086192.n5.nabble.com/file/t6374/Diameter_core_dump_full_Debug.txt
> >
> > >
> > >
> > > Here is my kamailio.cfg :
> > >
> > > loadmodule "cdp"
> > > loadmodule "cdp_avp"
> > > loadmodule "ims_charging"
> > > loadmodule "ims_dialog"
> > >
> > > modparam("cdp","config_file","/etc/kamailio/diameter.xml")
> > > modparam("cdp", "debug_heavy", 1)
> > > # - ims_diameter_ro params -
> > > #modparam("ims_charging", "single_ro_session_per_dialog", 1)
> > > modparam("ims_charging", "origin_host", "10.195.0.38");
> > > modparam("ims_charging", "origin_realm", "10.195.0.38");
> > > modparam("ims_charging", "destination_realm", "mydomain.com");
> > > modparam("ims_charging","interim_update_credits",30);
> > > modparam("ims_charging","timer_buffer",5);
> > > # -- ims_dialog params --
> > > modparam("ims_dialog", "dlg_flag", 8)
> > >
> > >
> > > While starting the kamailio, i am getting following errors:
> > > Nov 11 11:40:03 ip-10-195-0-38 /usr/local/sbin/kamailio[25653]: ERROR:
> cdp
> > > [peerstatemachine.c:675]: add_peer_application(): Too many
> applications for
> > > this peer (max 0), not adding Application 4:0.
> > >
> > > Before crashing kamailio showing following error:
> > >
> > > Nov 11 11:39:49 ip-10-195-0-38 /usr/local/sbin/kamailio[25571]: INFO:
> {1
> > > 18325 INVITE Nf6-dl2WeXF.LJhXotiRsuMhijsNx45o} 

Re: [SR-Users] Core dump on diameter CCR request

2018-11-12 Thread Mojtaba
Hello,
We developed OCS based on these module in Kamailio: ims_charging,
ims_ocs, ims_dimameter_server and worker process written in Q_HSS. We
have not this issue.
Are you sure ims_charging is connected to any ocs proccess like ims_ocs?
Because CCR/CCA and other related message is transfered between them.
With Regards.
Mojtaba Esfandiari.S

On Mon, Nov 12, 2018 at 11:48 AM Daniel-Constantin Mierla
 wrote:
>
> Hello,
>
> get the full backtrace with gdb from the core file -- it should reveal
> where the crash happened.
>
> Also, it might be good to open an issue in bug tracker from
> github.com/kamailio/kamailio in order to track it properly.
>
> Cheers,
> Daniel
>
>
> On 11.11.18 12:52, Venkatesh Macha wrote:
> > Hi all,
> >
> > I am trying to implement Diameter charging with Kamailio. I am following
> > below tutorial
> > https://www.kamailio.org/events/2016-KamailioWorld/Day2/15-Carsten.Bock-Diameter-Charging-With-Kamailio.pdf
> >
> > But whenever I try to do the Ro_CCR from the INVITE block, Kamailio is
> > crashing and generating the core dump. I am new to diameter. I might be
> > doing something wrong here.
> >
> > please someone help me here.
> >
> > Please find the *diameter.xml* and *Diameter_core_dump_full_debug.txt* file.
> >
> > diameter.xml
> > 
> > Diameter_core_dump_full_Debug.txt
> > 
> >
> >
> > Here is my kamailio.cfg :
> >
> > loadmodule "cdp"
> > loadmodule "cdp_avp"
> > loadmodule "ims_charging"
> > loadmodule "ims_dialog"
> >
> > modparam("cdp","config_file","/etc/kamailio/diameter.xml")
> > modparam("cdp", "debug_heavy", 1)
> > # - ims_diameter_ro params -
> > #modparam("ims_charging", "single_ro_session_per_dialog", 1)
> > modparam("ims_charging", "origin_host", "10.195.0.38");
> > modparam("ims_charging", "origin_realm", "10.195.0.38");
> > modparam("ims_charging", "destination_realm", "mydomain.com");
> > modparam("ims_charging","interim_update_credits",30);
> > modparam("ims_charging","timer_buffer",5);
> > # -- ims_dialog params --
> > modparam("ims_dialog", "dlg_flag", 8)
> >
> >
> > While starting the kamailio, i am getting following errors:
> > Nov 11 11:40:03 ip-10-195-0-38 /usr/local/sbin/kamailio[25653]: ERROR: cdp
> > [peerstatemachine.c:675]: add_peer_application(): Too many applications for
> > this peer (max 0), not adding Application 4:0.
> >
> > Before crashing kamailio showing following error:
> >
> > Nov 11 11:39:49 ip-10-195-0-38 /usr/local/sbin/kamailio[25571]: INFO: {1
> > 18325 INVITE Nf6-dl2WeXF.LJhXotiRsuMhijsNx45o} 

Re: [SR-Users] Core dump on diameter CCR request

2018-11-12 Thread Daniel-Constantin Mierla
Hello,

get the full backtrace with gdb from the core file -- it should reveal
where the crash happened.

Also, it might be good to open an issue in bug tracker from
github.com/kamailio/kamailio in order to track it properly.

Cheers,
Daniel


On 11.11.18 12:52, Venkatesh Macha wrote:
> Hi all, 
>
> I am trying to implement Diameter charging with Kamailio. I am following
> below tutorial
> https://www.kamailio.org/events/2016-KamailioWorld/Day2/15-Carsten.Bock-Diameter-Charging-With-Kamailio.pdf
>
> But whenever I try to do the Ro_CCR from the INVITE block, Kamailio is
> crashing and generating the core dump. I am new to diameter. I might be
> doing something wrong here. 
>
> please someone help me here.
>
> Please find the *diameter.xml* and *Diameter_core_dump_full_debug.txt* file.
>
> diameter.xml
>   
> Diameter_core_dump_full_Debug.txt
> 
>   
>
>
> Here is my kamailio.cfg :
>
> loadmodule "cdp"
> loadmodule "cdp_avp"
> loadmodule "ims_charging"
> loadmodule "ims_dialog"
>
> modparam("cdp","config_file","/etc/kamailio/diameter.xml")
> modparam("cdp", "debug_heavy", 1)
> # - ims_diameter_ro params -
> #modparam("ims_charging", "single_ro_session_per_dialog", 1)
> modparam("ims_charging", "origin_host", "10.195.0.38");
> modparam("ims_charging", "origin_realm", "10.195.0.38");
> modparam("ims_charging", "destination_realm", "mydomain.com");
> modparam("ims_charging","interim_update_credits",30);
> modparam("ims_charging","timer_buffer",5);
> # -- ims_dialog params --
> modparam("ims_dialog", "dlg_flag", 8)
>
>
> While starting the kamailio, i am getting following errors:
> Nov 11 11:40:03 ip-10-195-0-38 /usr/local/sbin/kamailio[25653]: ERROR: cdp
> [peerstatemachine.c:675]: add_peer_application(): Too many applications for
> this peer (max 0), not adding Application 4:0.
>
> Before crashing kamailio showing following error:
>
> Nov 11 11:39:49 ip-10-195-0-38 /usr/local/sbin/kamailio[25571]: INFO: {1
> 18325 INVITE Nf6-dl2WeXF.LJhXotiRsuMhijsNx45o}