Dear Kamailio experts I have a typical use case where I want Kamailio to behave as a B2BUA.
What I mean here is (assume Kamailio is using TCP for SIP call establishment)
1. For each call it should create a separate TCP connection with next proxy in path.
2. When call ends, it should close that connection. If that call is active for 10hrs, then connection should stay alive till 10hrs.
Please somebody help.
Thanks kamal
Hello,
how many active calls do you expect to have?
At this moment, kamailio does not create local sockets dynamically, they have to be specified in the configuration.
But if the number of active calls is not big, then you can create as many sockets as expected calls and then use force send socket to select on. You can use htable to keep the relation between a call and a local socket.
Cheers, Daniel
On 5/10/13 5:45 AM, Kamal Palei wrote:
Dear Kamailio experts I have a typical use case where I want Kamailio to behave as a B2BUA.
What I mean here is (assume Kamailio is using TCP for SIP call establishment)
- For each call it should create a separate TCP connection with next
proxy in path.
- When call ends, it should close that connection. If that call is
active for 10hrs, then connection should stay alive till 10hrs.
Hi Daniel Lets say I have more number of calls, say 50,000 or 100,000 calls at a time.
I need to have separate tcp connection for each call.
Is there any possibility I can achieve this without much code change in Kamailio.
Pls guide me. This is a must-do requirement for us.
Thanks kamal
On Fri, May 10, 2013 at 12:52 PM, Daniel-Constantin Mierla < miconda@gmail.com> wrote:
Hello,
how many active calls do you expect to have?
At this moment, kamailio does not create local sockets dynamically, they have to be specified in the configuration.
But if the number of active calls is not big, then you can create as many sockets as expected calls and then use force send socket to select on. You can use htable to keep the relation between a call and a local socket.
Cheers, Daniel
On 5/10/13 5:45 AM, Kamal Palei wrote:
Dear Kamailio experts I have a typical use case where I want Kamailio to behave as a B2BUA.
What I mean here is (assume Kamailio is using TCP for SIP call establishment)
- For each call it should create a separate TCP connection with next
proxy in path.
- When call ends, it should close that connection. If that call is
active for 10hrs, then connection should stay alive till 10hrs.
-- Daniel-Constantin Mierla - http://www.asipto.com http://twitter.com/#!/miconda - http://www.linkedin.com/in/**micondahttp://www.linkedin.com/in/miconda Kamailio Advanced Training, San Francisco, USA - June 24-27, 2013
______________________________**_________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/**cgi-bin/mailman/listinfo/sr-**usershttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
10 maj 2013 kl. 13:56 skrev Kamal Palei palei.kamal@gmail.com:
Hi Daniel Lets say I have more number of calls, say 50,000 or 100,000 calls at a time.
I need to have separate tcp connection for each call.
Just curious - why do you need this?
/O
Is there any possibility I can achieve this without much code change in Kamailio.
Pls guide me. This is a must-do requirement for us.
Thanks kamal
On Fri, May 10, 2013 at 12:52 PM, Daniel-Constantin Mierla miconda@gmail.com wrote: Hello,
how many active calls do you expect to have?
At this moment, kamailio does not create local sockets dynamically, they have to be specified in the configuration.
But if the number of active calls is not big, then you can create as many sockets as expected calls and then use force send socket to select on. You can use htable to keep the relation between a call and a local socket.
Cheers, Daniel
On 5/10/13 5:45 AM, Kamal Palei wrote: Dear Kamailio experts I have a typical use case where I want Kamailio to behave as a B2BUA.
What I mean here is (assume Kamailio is using TCP for SIP call establishment)
For each call it should create a separate TCP connection with next proxy in path.
When call ends, it should close that connection. If that call is active for 10hrs, then connection should stay alive till 10hrs.
-- Daniel-Constantin Mierla - http://www.asipto.com http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio Advanced Training, San Francisco, USA - June 24-27, 2013
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hi Olle I am simulating a particular setup. A simulator behind Kamailio initiates lots of call. The proxy ahead Kamailio needs message should come in separate connection.
I should have choosen b2bua initially, but so far Kamailio helped a lot to simulate the required environment. I really do not want to change from Kamailio.
Thats why I was wondering, if using Kamailio I can achieve this, it will be of real great deal for us.
thanks kamal
On Fri, May 10, 2013 at 5:27 PM, Olle E. Johansson oej@edvina.net wrote:
10 maj 2013 kl. 13:56 skrev Kamal Palei palei.kamal@gmail.com:
Hi Daniel Lets say I have more number of calls, say 50,000 or 100,000 calls at a time.
I need to have separate tcp connection for each call.
Just curious - why do you need this?
/O
Is there any possibility I can achieve this without much code change in Kamailio.
Pls guide me. This is a must-do requirement for us.
Thanks kamal
On Fri, May 10, 2013 at 12:52 PM, Daniel-Constantin Mierla < miconda@gmail.com> wrote:
Hello,
how many active calls do you expect to have?
At this moment, kamailio does not create local sockets dynamically, they have to be specified in the configuration.
But if the number of active calls is not big, then you can create as many sockets as expected calls and then use force send socket to select on. You can use htable to keep the relation between a call and a local socket.
Cheers, Daniel
On 5/10/13 5:45 AM, Kamal Palei wrote:
Dear Kamailio experts I have a typical use case where I want Kamailio to behave as a B2BUA.
What I mean here is (assume Kamailio is using TCP for SIP call establishment)
- For each call it should create a separate TCP connection with next
proxy in path.
- When call ends, it should close that connection. If that call is
active for 10hrs, then connection should stay alive till 10hrs.
-- Daniel-Constantin Mierla - http://www.asipto.com http://twitter.com/#!/miconda - http://www.linkedin.com/in/**micondahttp://www.linkedin.com/in/miconda Kamailio Advanced Training, San Francisco, USA - June 24-27, 2013
______________________________**_________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/**cgi-bin/mailman/listinfo/sr-**usershttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
I haven't tried this with Kamailio, so please read Daniel's comments.
I did not succeed in using Asterisk to set up multiple TCP connections, but managed to get SIPP to set up one conneciton per dialog. This was during testing the SNMPstats module in Kamailio.
/O
10 maj 2013 kl. 14:07 skrev Kamal Palei palei.kamal@gmail.com:
Hi Olle I am simulating a particular setup. A simulator behind Kamailio initiates lots of call. The proxy ahead Kamailio needs message should come in separate connection.
I should have choosen b2bua initially, but so far Kamailio helped a lot to simulate the required environment. I really do not want to change from Kamailio.
Thats why I was wondering, if using Kamailio I can achieve this, it will be of real great deal for us.
thanks kamal
On Fri, May 10, 2013 at 5:27 PM, Olle E. Johansson oej@edvina.net wrote:
10 maj 2013 kl. 13:56 skrev Kamal Palei palei.kamal@gmail.com:
Hi Daniel Lets say I have more number of calls, say 50,000 or 100,000 calls at a time.
I need to have separate tcp connection for each call.
Just curious - why do you need this?
/O
Is there any possibility I can achieve this without much code change in Kamailio.
Pls guide me. This is a must-do requirement for us.
Thanks kamal
On Fri, May 10, 2013 at 12:52 PM, Daniel-Constantin Mierla miconda@gmail.com wrote: Hello,
how many active calls do you expect to have?
At this moment, kamailio does not create local sockets dynamically, they have to be specified in the configuration.
But if the number of active calls is not big, then you can create as many sockets as expected calls and then use force send socket to select on. You can use htable to keep the relation between a call and a local socket.
Cheers, Daniel
On 5/10/13 5:45 AM, Kamal Palei wrote: Dear Kamailio experts I have a typical use case where I want Kamailio to behave as a B2BUA.
What I mean here is (assume Kamailio is using TCP for SIP call establishment)
For each call it should create a separate TCP connection with next proxy in path.
When call ends, it should close that connection. If that call is active for 10hrs, then connection should stay alive till 10hrs.
-- Daniel-Constantin Mierla - http://www.asipto.com http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio Advanced Training, San Francisco, USA - June 24-27, 2013
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hi Daniel Thanks for reply.
Just curious to know, how many number of calls we can achieve using the solution you have recommended.
Also the solution, you have recommended, I am not very clear on that how to do it. Kindly can you explain in detail.
Best Regards Kamal
On Fri, May 10, 2013 at 12:52 PM, Daniel-Constantin Mierla < miconda@gmail.com> wrote:
Hello,
how many active calls do you expect to have?
At this moment, kamailio does not create local sockets dynamically, they have to be specified in the configuration.
But if the number of active calls is not big, then you can create as many sockets as expected calls and then use force send socket to select on. You can use htable to keep the relation between a call and a local socket.
Cheers, Daniel
On 5/10/13 5:45 AM, Kamal Palei wrote:
Dear Kamailio experts I have a typical use case where I want Kamailio to behave as a B2BUA.
What I mean here is (assume Kamailio is using TCP for SIP call establishment)
- For each call it should create a separate TCP connection with next
proxy in path.
- When call ends, it should close that connection. If that call is
active for 10hrs, then connection should stay alive till 10hrs.
-- Daniel-Constantin Mierla - http://www.asipto.com http://twitter.com/#!/miconda - http://www.linkedin.com/in/**micondahttp://www.linkedin.com/in/miconda Kamailio Advanced Training, San Francisco, USA - June 24-27, 2013
______________________________**_________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/**cgi-bin/mailman/listinfo/sr-**usershttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hello,
there is a limit in the operating system of the ports that can be used - a port is short int value, 2^16.
If it is for testing purposes, perhaps you can create many virtual machines, with a load balancers in front of it.
Anyhow, it might be easier to patch kamailio not to reuse the connection, look at tcp*.{c,h} files.
Cheers, Daniel
On 5/11/13 6:27 AM, Kamal Palei wrote:
Hi Daniel Thanks for reply.
Just curious to know, how many number of calls we can achieve using the solution you have recommended.
Also the solution, you have recommended, I am not very clear on that how to do it. Kindly can you explain in detail.
Best Regards Kamal
On Fri, May 10, 2013 at 12:52 PM, Daniel-Constantin Mierla <miconda@gmail.com mailto:miconda@gmail.com> wrote:
Hello, how many active calls do you expect to have? At this moment, kamailio does not create local sockets dynamically, they have to be specified in the configuration. But if the number of active calls is not big, then you can create as many sockets as expected calls and then use force send socket to select on. You can use htable to keep the relation between a call and a local socket. Cheers, Daniel On 5/10/13 5:45 AM, Kamal Palei wrote: Dear Kamailio experts I have a typical use case where I want Kamailio to behave as a B2BUA. What I mean here is (assume Kamailio is using TCP for SIP call establishment) 1. For each call it should create a separate TCP connection with next proxy in path. 2. When call ends, it should close that connection. If that call is active for 10hrs, then connection should stay alive till 10hrs. -- Daniel-Constantin Mierla - http://www.asipto.com http://twitter.com/#!/miconda <http://twitter.com/#%21/miconda> - http://www.linkedin.com/in/miconda Kamailio Advanced Training, San Francisco, USA - June 24-27, 2013 * http://asipto.com/u/katu * _______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org <mailto:sr-users@lists.sip-router.org> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hi Daniel We need to modify Kamailio in a proper way to have separate connection per call. We need your guidance and we will share the details so that it will be useful for somebody else.
Now how do we proceed. My thought is 1. In Kamailio, there might be a structure or object that might be storing per call information. Let's call it *call_context*. Also there might be another data structure that might be storing registration information.Let's call it *reg_context*.
2. In tcp_main.c , tcp_do_connect() creates socket . So I want to store tcp_connection structure in call_context. So that there are separate sockets per call.
3. Same thing should be done for registration, like storing tcp_connection structure in per reg_context.
Now my question is it the right approach, or kindly advise what is the right approach.
If what I have mentioned is right approach, pls give some information regarding data structures and how can I store specific tcp_connection structure in a call_context or reg_context.
We are totally dependent on you. Kindly guide us. First time I will be modifying Kamailio code, kindly give more details, that will help us great way.
Thanks kamal
On Mon, May 13, 2013 at 1:18 PM, Daniel-Constantin Mierla <miconda@gmail.com
wrote:
Hello,
there is a limit in the operating system of the ports that can be used - a port is short int value, 2^16.
If it is for testing purposes, perhaps you can create many virtual machines, with a load balancers in front of it.
Anyhow, it might be easier to patch kamailio not to reuse the connection, look at tcp*.{c,h} files.
Cheers, Daniel
On 5/11/13 6:27 AM, Kamal Palei wrote:
Hi Daniel Thanks for reply.
Just curious to know, how many number of calls we can achieve using the solution you have recommended.
Also the solution, you have recommended, I am not very clear on that how to do it. Kindly can you explain in detail.
Best Regards Kamal
On Fri, May 10, 2013 at 12:52 PM, Daniel-Constantin Mierla < miconda@gmail.com> wrote:
Hello,
how many active calls do you expect to have?
At this moment, kamailio does not create local sockets dynamically, they have to be specified in the configuration.
But if the number of active calls is not big, then you can create as many sockets as expected calls and then use force send socket to select on. You can use htable to keep the relation between a call and a local socket.
Cheers, Daniel
On 5/10/13 5:45 AM, Kamal Palei wrote:
Dear Kamailio experts I have a typical use case where I want Kamailio to behave as a B2BUA.
What I mean here is (assume Kamailio is using TCP for SIP call establishment)
- For each call it should create a separate TCP connection with next
proxy in path.
- When call ends, it should close that connection. If that call is
active for 10hrs, then connection should stay alive till 10hrs.
-- Daniel-Constantin Mierla - http://www.asipto.com http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio Advanced Training, San Francisco, USA - June 24-27, 2013
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla - http://www.asipto.comhttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio Advanced Training, San Francisco, USA - June 24-27, 2013