Hi all,
I know that it's possible to use a variable in XLOG for print out the IP
Source.
But is it possible to work on @IP_SRC (use if, avp, etc.) in ser.cfg ? I
can work with search() but it's not very flexible to have dynamic test
with database for example.
My SER version is 0.9.6.
Regards,
Adrien
Hi!
During REGISTER processing I call add_path_received() in the outbound proxy.
Now if the INVITE is routed from main proxy to the client (via the OBP),
the OBP as to read the received parameter from the Ruote header and use
this value as destination URI. Is there a function available to perfomr
this action or do I have to do it manually (parsing Route header to the
get parameter)?
thanks
klaus
Hello,
I just upgraded a server from 1.4 to 1.5. I am getting this error
when loading LCR. Did something change, or am I losing my mind?
n
Apr 7 12:09:27 atl-sipgateway1 kamailio: ERROR:core:main: bad config
file (2 errors)
Apr 7 12:11:06 atl-sipgateway1 kamailio:
ERROR:core:set_mod_param_regex: parameter <fr_inv_timer_avp> not found
in module <lcr>
Apr 7 12:11:06 atl-sipgateway1 kamailio: CRITICAL:core:yyerror: parse
error in config file, line 74, column 20-21: Can't set module
parameter
Apr 7 12:11:06 atl-sipgateway1 kamailio:
ERROR:core:set_mod_param_regex: parameter <fr_inv_timer> not found in
module <lcr>
Apr 7 12:11:06 atl-sipgateway1 kamailio: CRITICAL:core:yyerror: parse
error in config file, line 78, column 18-19: Can't set module
parameter
Here is my config for a working server.
## Enable LCR ##
loadmodule "lcr.so"
modparam("lcr","db_url","mysql://blah:blah@localhost/kamailio")
modparam("lcr|tm", "fr_inv_timer_avp", "$avp(i:704)")
modparam("^auth$|lcr", "rpid_avp", "$avp(i:302)")
modparam("lcr","gw_uri_avp", "$avp(i:709)")
modparam("lcr","ruri_user_avp", "$avp(i:500)")
modparam("lcr","fr_inv_timer",30)
modparam("lcr","flags_avp", "$avp(i:712)")
modparam("lcr","lcr_hash_size", 1024)
modparam("lcr","fetch_rows", 5000)
modparam("lcr","ping_interval", 180)
modparam("lcr","ping_from","sip:something.com")
The docs no longer make any reference to fr_inv_timer or
fr_inv_timer_avp.. but I have a working 1.5 server running with this
config... but my newly installed one won't start.
thanks,
Geoff
hi all
please, can you tell me is this scenario correct
i want to use ser as a load balancer for two asterisk servers.
i have two users which are registred in both astersik servers with the same
extensions (sip.conf and extensions.conf are the same for the asterisk
servers)
i have a user registred in the ser server.
i imagine load balancer like: when the ser user calls an asterisk
extension .the ser redirect this call to one of the asterisk.when the ser
user recall the extension the ser will redirect the call to the other
asterisk
please tell me if i am wrong and if possible give me the correct scenario.
thank you
I am running into a situation where the nathelper module is causing openser/kamailio to crash. The crash occurs when opensbc sends and invite to openser with an extra CR in the message body. I already contacted the opensbc folks about this. I just wanted you all to be aware that this could cause serious service interruptions.
Error log:
kernel: [599650.771067] kamailio[25461]: segfault at 18 ip b7a0a6c7 sp bfbaaa70 error 4 in nathelper.so[b79f7000+18000]
Sample invite sent to kamailio.. Please look at the extra CR/LF after Supported. The nathelper module crashes after this.
INVITE sip:phonenumber@chgw.commx.net SIP/2.0
From: "South Test" <sip:phonenumber@orig.domain.com;user=phone>;tag=392385664-1238777567965-
To: <sip:phonenumber@chgw.commx.net>
Via: SIP/2.0/UDP opensbc:5060;branch=z9hG4bKdec1a187dd1ede1193b6b6f3163a7dda;uas-addr=openser;rport
CSeq: 913493359 INVITE
Call-ID: BW1252479650304091860611707(a)orig.domain.com-0x000a
Contact: <sip:+18135146513@opensbc>
Max-Forwards: 9
Accept: multipart/mixed, application/dtmf-relay, application/media_control+xml, application/sdp
Allow: ACK, BYE, CANCEL, INFO, INVITE, OPTIONS, PRACK, REFER, NOTIFY, UPDATE
Proxy-Require: privacy
Supported: 100rel
Content-Type: application/sdp
Content-Length: 214
v=0
o=BroadWorks 3675 1 IN IP4 gw1.domain.com
s=-
c=IN IP4 opensbc
t=0 0
m=audio 10074 RTP/AVP 18 0 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
Hello,
I am modifying my LCR setup and just wanted to get some confirmation that I
am following best practices. I am a
I am loading up 18,500 routes into the table which all belong to a single
group. There will be a single route in a second group which all non-matches
will fail over to.
That being said, this is what my configuration looks like:
modparam("lcr","lcr_hash_size", 20000)
modparam("lcr","fetch_rows", 5000)
This server has 8G of RAM and I am currently using 4M of private memory
(#define PKG_MEM_POOL_SIZE 4*1024*1024 ).
Thanks,
Geoff
thank you ovidiu
I do not have an init scrip, I start and stop using the "kamctl stop|start" which is a bash script.Is this the one that you are referring to?
I intend to listen on the same port but in another IP, each instance will use a different ip, so I have to change the listening ip only.
regards
jp
----- Original Message ----
From: Ovidiu Sas <osas(a)voipembedded.com>
To: Juan Perez <jperezsip2008(a)yahoo.com>
Cc: Iñaki Baz Castillo <ibc(a)aliax.net>; users(a)lists.kamailio.org
Sent: Friday, April 3, 2009 3:53:25 PM
Subject: Re: [Kamailio-Users] another instance of kamailio on the same machine
All you need is to follow this simple steps:
1. make a clean install of kamailio
2. define your config files for each service:
- kamailio1.cfg
- kamailio2.cfg
3. create two seprate init scripts: kamailio1 and kamailio2
4. make sure that each init script is using the appropriate config
file (use option -f <my_config file>)
5. make sure that you are not listening on the same sockets for both
servers (i.e. set one server on port 506 and the second one on port
5070)
6. If you are creating pid files, make sure that the pid files are
different for each service
That's it. You don't need any symbolic links.
Regards,
Ovidiu Sas
On Fri, Apr 3, 2009 at 4:46 PM, Juan Perez <jperezsip2008(a)yahoo.com> wrote:
>
> understood.
>
> so I just need 2 softlinks?
>
>
>
>
> ----- Original Message ----
> From: Iñaki Baz Castillo <ibc(a)aliax.net>
> To: users(a)lists.kamailio.org
> Sent: Friday, April 3, 2009 3:43:24 PM
> Subject: Re: [Kamailio-Users] another instance of kamailio on the same machine
>
> El Viernes 03 Abril 2009, Juan Perez escribió:
>> hi guys , I tried to do it and it wont start
>>
>> my setup is:
>> centos5
>> kamailio 1.4
>>
>> I installed kamailio originally in /usr/local/install-dir/
>> Now I created a folder named "install-dir2" and created these 3 soft links:
>>
>> /usr/local/install-dir2/etc2/kamailio2/kamailio2.cfg --> /usr/local/install-dir/etc/kamailio/kamailio.cfg
>
> Why do you do it? ^^^^^^^^
> Doing that kamailio2.cfg is a link to kamailio.cfg, so when you run:
>
> kamailio2 -f /usr/local/install-dir2/etc2/kamailio2/kamailio2.cfg
>
> You are loading /usr/local/install-dir/etc/kamailio/kamailio.cfg !!!
>
> This is, kamailio2 is trying to bind the same sockets so it cannot start.
>
>
> --
> Iñaki Baz Castillo <ibc(a)aliax.net>
>
> _______________________________________________
> Kamailio (OpenSER) - Users mailing list
> Users(a)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(a)lists.kamailio.org
> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
> http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
>
hi
To install another instance of kamailio listening in another IP, does one need to do something in particular aside from install it in another directory?
Also, when it is time to run the script to create the mysql tables, how can I tell the script to create a db named "openser2" to avoid deleting the existing one named by default "openser" ? Just by changing the line DBNAME=openser in kamctlrc to DBNAME=openser2?
thank you
jp