hi all,
is it possible to run openser and asterisks in one box,
I have googled but all the result I got have rewritehostport("X.X.X.X:5060) with a diffrent IP than the server IP,
I am assuming either they have 2 network card or refering to another host .
but will it be possible to put them togather? if so how,
thanks, please help
Hi Metshet
Sure it is possible. You can specify with the listen= or port= statement the Transport:IP:port or just the port respectively.
The option, to modify the SIP port should also exisit in Asterisk.
Sebastian
PS: See e.g. http://www.kamailio.org/dokuwiki/doku.php/core-cookbook:1.5.x#listen for listen in Kamailio 1.5
________________________________
From: users-bounces@lists.kamailio.org [mailto:users-bounces@lists.kamailio.org] On Behalf Of Metshet Seleshi Sent: Friday, 17. April 2009 15:27 To: users@lists.kamailio.org Subject: [Kamailio-Users] run openser and asterisks in one box hi all,
is it possible to run openser and asterisks in one box,
I have googled but all the result I got have rewritehostport("X.X.X.X:5060) with a diffrent IP than the server IP, I am assuming either they have 2 network card or refering to another host . but will it be possible to put them togather? if so how, thanks, please help
Hi Metshet,
in the sip.conf located usually in /etc/asterisk/sip.conf look for the parameters
bindport=5060 bindaddr=0.0.0.0
You can adjust the port and/or the ip the asterisk listen. You can take two paths: - Alias interfaces, having the same box w/ several ip address. - Let asterisk use a different port
In both ways you need let kamailio know what ip/port need to talk to asterisk.
Personally I like to have several ip addresess in one box, this way I can talk directly to asterisk and kamailio in their native sip port.
Regards,
Rafael
On Apr 17, 2009, at 9:33 AM, Schumann Sebastian wrote:
Hi Metshet
Sure it is possible. You can specify with the listen= or port= statement the Transport:IP:port or just the port respectively.
The option, to modify the SIP port should also exisit in Asterisk.
Sebastian
PS: See e.g. http://www.kamailio.org/dokuwiki/doku.php/core-cookbook:1.5.x#listen for listen in Kamailio 1.5
From: users-bounces@lists.kamailio.org [mailto:users-bounces@lists.kamailio.org ] On Behalf Of Metshet Seleshi Sent: Friday, 17. April 2009 15:27 To: users@lists.kamailio.org Subject: [Kamailio-Users] run openser and asterisks in one box
hi all,
is it possible to run openser and asterisks in one box,
I have googled but all the result I got have rewritehostport("X.X.X.X:5060) with a diffrent IP than the server IP,
I am assuming either they have 2 network card or refering to another host .
but will it be possible to put them togather? if so how,
thanks, please help
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
Hi, I am trying to use get_profile_size in the dialog module. but copy and paste from the kamailio 1.5.0 module http://kamailio.org/docs/modules/1.5.x/dialog.html#id2531307 get_profile_size("caller","$fu"); xlog("currently, the user %fu has $avp(size) active outgoing calls\n"); doesn't work at all. then finally decide to use pv.so and got following setting:
modparam("dialog", "dlg_flag", 4) modparam("pv", "varset", "size=i:44")
get_profile_size("caller","$fu", "$shv(size)");
but even this doesn't work either: Apr 17 22:56:33 sip1m01 /usr/sbin/kamailio[7201]: ERROR:core:fix_actions: fixing failed (code=-6) at cfg line 373 Apr 17 22:56:33 sip1m01 /usr/sbin/kamailio[7201]: ERROR:core:main: failed to fix configuration with err code -6
can anybody tell me how to call this properly ?
Jinsong
This is a bug in 1.5.0. It is in the process of being patched.
Jinsong Hu wrote:
Hi, I am trying to use get_profile_size in the dialog module. but copy and paste from the kamailio 1.5.0 module http://kamailio.org/docs/modules/1.5.x/dialog.html#id2531307
get_profile_size("caller","$fu"); xlog("currently, the user %fu has $avp(size) active outgoing calls\n");
doesn't work at all. then finally decide to use pv.so and got following setting:
modparam("dialog", "dlg_flag", 4) modparam("pv", "varset", "size=i:44")
get_profile_size("caller","$fu", "$shv(size)");
but even this doesn't work either: Apr 17 22:56:33 sip1m01 /usr/sbin/kamailio[7201]: ERROR:core:fix_actions: fixing failed (code=-6) at cfg line 373 Apr 17 22:56:33 sip1m01 /usr/sbin/kamailio[7201]: ERROR:core:main: failed to fix configuration with err code -6
can anybody tell me how to call this properly ?
Jinsong
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
Here is again the patch attached. Try it and let me know if works. I will commit it on 1.5 branch once I get another report that is working (I did my tests...).
Thanks, Daniel
On 04/18/2009 01:20 AM, Alex Balashov wrote:
This is a bug in 1.5.0. It is in the process of being patched.
Jinsong Hu wrote:
Hi, I am trying to use get_profile_size in the dialog module. but copy and paste from the kamailio 1.5.0 module http://kamailio.org/docs/modules/1.5.x/dialog.html#id2531307
get_profile_size("caller","$fu"); xlog("currently, the user %fu has $avp(size) active outgoing calls\n");
doesn't work at all. then finally decide to use pv.so and got following setting:
modparam("dialog", "dlg_flag", 4) modparam("pv", "varset", "size=i:44")
get_profile_size("caller","$fu", "$shv(size)");
but even this doesn't work either: Apr 17 22:56:33 sip1m01 /usr/sbin/kamailio[7201]: ERROR:core:fix_actions: fixing failed (code=-6) at cfg line 373 Apr 17 22:56:33 sip1m01 /usr/sbin/kamailio[7201]: ERROR:core:main: failed to fix configuration with err code -6
can anybody tell me how to call this properly ?
Jinsong
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
2009/4/20 Daniel-Constantin Mierla miconda@gmail.com:
Here is again the patch attached. Try it and let me know if works. I will commit it on 1.5 branch once I get another report that is working (I did my tests...).
Daniel, sorry for the delay. Is this patch the same you sent some days ago? I could test it yet.
On 04/20/2009 12:04 PM, Iñaki Baz Castillo wrote:
2009/4/20 Daniel-Constantin Mierla miconda@gmail.com:
Here is again the patch attached. Try it and let me know if works. I will commit it on 1.5 branch once I get another report that is working (I did my tests...).
Daniel, sorry for the delay. Is this patch the same you sent some days ago? I could test it yet.
yes, it is. However, checking meanwhile the inbox I got one positive report. I will commit it in minutes to sip-router and kamailio 1.5, then you can take it from repos and test.
Cheers, Daniel
2009/4/20 Daniel-Constantin Mierla miconda@gmail.com:
yes, it is. However, checking meanwhile the inbox I got one positive report. I will commit it in minutes to sip-router and kamailio 1.5, then you can take it from repos and test.
Ok, thanks a lot.
fyi: I committed the patch on svn 1.5 branch. You can do update from there.
Thanks, Daniel
On 04/20/2009 11:53 AM, Daniel-Constantin Mierla wrote:
Here is again the patch attached. Try it and let me know if works. I will commit it on 1.5 branch once I get another report that is working (I did my tests...).
Thanks, Daniel
On 04/18/2009 01:20 AM, Alex Balashov wrote:
This is a bug in 1.5.0. It is in the process of being patched.
Jinsong Hu wrote:
Hi, I am trying to use get_profile_size in the dialog module. but copy and paste from the kamailio 1.5.0 module http://kamailio.org/docs/modules/1.5.x/dialog.html#id2531307
get_profile_size("caller","$fu"); xlog("currently, the user %fu has $avp(size) active outgoing calls\n");
doesn't work at all. then finally decide to use pv.so and got following setting:
modparam("dialog", "dlg_flag", 4) modparam("pv", "varset", "size=i:44")
get_profile_size("caller","$fu", "$shv(size)");
but even this doesn't work either: Apr 17 22:56:33 sip1m01 /usr/sbin/kamailio[7201]: ERROR:core:fix_actions: fixing failed (code=-6) at cfg line 373 Apr 17 22:56:33 sip1m01 /usr/sbin/kamailio[7201]: ERROR:core:main: failed to fix configuration with err code -6
can anybody tell me how to call this properly ?
Jinsong
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users