Re: [SR-Users] python_exec and parameters
That's correct, it accepts only one parameter for now. After many years our company has switched to kamailio, I'm actively working on new version of app_python, more flexible and usable than current one, many new features... I'm not ready to push new changes to current module due to raw alpha and unstable work. Right now. as workaround you can pass something like $_s($fu!!$tu) and then in python parse them with from_user, to_user = $param1.split("!!") 2017-02-09 11:31 GMT+03:00 Daniel-Constantin Mierla: > Hello, > > not very familiar with the app_python initial design, but when I added > kemi support in it for kamailio 5.0, I think I noticed the limitation of > 1 extra parameter. Probably you can encode your parameters in comma > separated value, so you can parse it easier in the python script, as > opposite to parsing the entire message buffer. > > An alternative may be getting the value for $fu or $tu if python offers > the api for getting/setting pseudo-variables -- these are for sure in > kemi exports to python. > > Of course, if anyone adds support for more parameters, then it will be > accepted inside kamailio repo. > > Cheers, > Daniel > > > On 08/02/2017 09:47, gmele wrote: > > Hello, > > > > in our Kamailio, we are using python_exec to execute script used to send > > push notifications to Google or Apple. > > > > Currenty, the method we call only accepts the message as parameter. We > then > > extract from the message the Call Id, to URI and from URI. > > > > Here is the python method signature: > > > > *def SendPushNotification(self, msg)* > > > > To extract the toUri and fromUri (and remove the sip:), we use python > regex > > : > > > > *uriPattern=re.compile(".*sips?:(.+@[^>;]+)")* > > > > This is working well 99% of the time, except sometimes (we don't know > why) > > where we get the error: > > > > *logger_LM_ERR(): Exception occurred: Traceback (most recent call last): > > File "mypythonExample.py", line XXX, in SendPushNotification > > requestUri = self.ExtractURIFromHeader(msg.getHeader("to")) > > File "mypythonExample.py", line XXX, in ExtractURIFromHeader > > m= self.uriPattern.match(header); > > TypeError: an integer is required* > > > > We tried to analyze the cause of this error, but we didn't find any > problem > > with the message itself (the message is complete, with the *to *and *from > > *correctly filled). > > > > So, to avoid using the python regex, we have decided to pass parameters > to > > the python script (callId, from and to URI): > > > > *def SendPushRequest(self, msg, fromUri, toUri, callid)* > > > > But it seems python_exec doesn't support more than 2 parameters ($mb and > > another one). Is this exact? If this is the case, how can we pass several > > parameters from kamailio.cfg? > > > > Thx for your help. > > > > Regards > > > > Giovanni > > > > > > > > > > > > -- > > View this message in context: http://sip-router.1086192.n5. > nabble.com/python-exec-and-parameters-tp155803.html > > Sent from the Users mailing list archive at Nabble.com. > > > > ___ > > 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 > www.twitter.com/miconda -- www.linkedin.com/in/miconda > Kamailio Advanced Training - Mar 6-8 (Europe) and Mar 20-22 (USA) - > www.asipto.com > Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com > > > ___ > 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
Re: [SR-Users] Commercial SBC or Kamailio
Hello. I can consider a variant developing a commercial hybrid system (kamailio + freeswitch). 2016-09-16 16:19 GMT+03:00 David Villasmil: > We've been using kamailio for years on a commercial environment as > registrar, and now we just removed the (very expensive) SBC to put kamailio > in its place... it can take big loads if configured properly... commercial > support is important if you don't have a real-world-expert with you. > > On Fri, Sep 16, 2016 at 5:28 AM, Yuriy Gorlichenko > wrote: > >> I think there need to be another reason to use kamailio instead of any >> other solution. >> In this thread main idea of question is >> If we will use kamailio will it be stable, fast and best usefull software >> instead of some ot free solution. >> >> I can answer yes because kamailio is one of the most flexible platforms >> of the world. >> I think it is hard to find any solution that will give you all >> possibilities that kamailio gives you. >> >> it can be any mode of your VoIP enviroment such as SBC, registrar, just a >> router, tprovider connector and etc etc etc. >> >> What if you will need extending features of your system? >> What if you will want to create some ifrastructure that will be with a >> specific enviroment? >> >> As this questions to yourself before making choise. >> >> Also yes. kamailio very stable. >> If you will see this list deeper you will see that 99% of questions >> regarding fails and etc was resovled by wrong configuration of end >> administrator but not software trouble. >> >> 2016-09-16 5:08 GMT+03:00 Infinicalls Infinicalls >> : >> >>> > >>> > What is best option if money is not the problem? >>> >>> If seriously money is not the problem, then I would suggest you to go >>> for Kamailio and look for commercial support. This would do more good >>> than starting off with a purely commercial product. >>> >>> >>> regards >>> Ganesh Kumar >>> >>> -- >>> --- >>> http://www.infinicalls.com >>> >>> ___ >>> 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
[SR-Users] Kamailio + rtpproxy + SRTP
I have some problem with SSL+rtpproxy, kamailio successfully decodes SIP, rtpproxy decodes SRTP frames, all is going to freeswitch unencrypted. FS transfers the call back, the call is going unencrypted though kamailio, kamailio encodes to SSL, but rtpproxy DOESN'T encodes RTP frames to SRTP. Hence, endpoint SIP equipment rejects the call with 488 Not Acceptable Here Scenario 1. Endpoint device -> SRTP -> kamailio -> RTP -> freeswitch 2. Freeswitch calls back 3. freeswitch -> RTP -> kamailio -> PROBLEM (SIP[TLS] + RTP (but not SRTP)) -> Endpoint device 4. Endpoint device -> 488 Not Acceptable Here -> Kamailio Could somebody point me what's wrong here? Thanks! ___ 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
Re: [SR-Users] Kamailio benchmark app_python + OPTIONS
Hi, Could you please include config and python script? 2016-06-12 12:03 GMT+03:00 Anonim Stefan: > One more detail would be that I set the granularity equal to the call > rate, but still I'm looking at the global average. > > ___ > 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
Re: [SR-Users] [sr-dev] Merry Christmas!
Thank you very much and Merry Christmas! 2014-12-24 23:04 GMT+03:00 Daniel-Constantin Mierla mico...@gmail.com: Another year getting slowly to the end, an excellent opportunity to thank to all old and new friends of Kamailio project, from contributing code to using it, helping on mailing lists and other places online, or advertising it across the world! Merry Christmas and Happy Winter Holidays! Daniel -- Daniel-Constantin Mierla http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda ___ sr-dev mailing list sr-...@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev ___ 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
Re: [SR-Users] Create and control a new dialog to different server during main dialog
Hello Daniel, 2014-12-12 12:01 GMT+03:00 Daniel-Constantin Mierla mico...@gmail.com: what do you mean by 'acccept' here, send a 200ok or a 100trying and hold the INVITE in memory for a while? Well, yes. Desired scenario is send '100 trying' and hold the current invite, then communicate to separate SIP server and then resume a transaction. If second, then see tmx module for t_suspend()/t_continue(). Thank you for pointing to. Uac is the module to generate new requests, you can handle the reply to it via reply_route and decide there what to do with parked INVITE. I know but for some reasons, I'm unable to costruct a new clear invite and manage it. If possible, I would use a different request (or even protocol, see evapi or jsonrpc-c modules) than invite instead of that new dialog. For example OPTIONS -- let's say you want to check if the initial caller is allowed to call, you can send the requests to a billing engine that gives the yes/no. Depending on the scenario, might be easier to go and code in C a module -- look at async, evapi, jsonrpc-c for examples on how to suspend and resume transactions from inside a module. I was thinking about to this solution after trying all of possible ways without writting a new module. Ok, will try to workaround this by some embedded language execution, then work on this module if so... Cheers, Daniel Thanks! -- Daniel-Constantin Mierla http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda ___ 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
[SR-Users] Create and control a new dialog to different server during main dialog
Hello, I want to achieve the following schema: 1. Accept an initial invite 2. Create separate dialog to different SIP server (probably with some headers from point 1) 3. Wait until that different SIP server will complete dialog. 4. Based on result of point 3, transfer invite from 1 to the next steps or decline a call. The problem I've experienced - how to create a separate dialog and control it inside main dialog? Thanks a lot! ___ 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
Re: [SR-Users] Planning to switch committing to github
Hello Daniel, In case of moving users to githup, what should be with current users? As I understand, should be githup'ed users? Thanks! 2014-12-08 11:44 GMT+03:00 Daniel-Constantin Mierla mico...@gmail.com: Hello, I setup the mirror of Kamailio github repository to kamailio.org, can be seen online at: - http://git.kamailio.org/gitlist/index.php/kamailio/ Mirroring is triggered by a push to github, so it is pretty much in real time. Right now the commit and mirroring flow is: - commit to git.sip-router.org triggers mirroring (push) to github, which triggers a mirroring (fetch) on git.kamailio.org Practically with a commit pushed directly to github, the first part of the above is skipped. All seems to be ok, my last commits were done to test the mirroring including the notification emails - I will send a separate message about what we can get there. The missing parts are the deployment of gitweb in order to have the links from archived email notifications still valid and pointing git.sip-router.org to kamailio mirror server. Considering all above, I propose to stop committing to git.sip-router.org and pushing to github starting either next Monday (Dec 15) (or Wednesday (Dec 17) if not ready by Monday). Existing developers have to send me the github username to add it to kamailio project. Any suggestions and comments are welcome! Cheers, Daniel -- Daniel-Constantin Mierla http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda ___ 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
Re: [SR-Users] app_java issue
Hello, Please take a look to: Sep 11 12:48:12 MAIFREEPBX /usr/local/sbin/kamailio[870]: ERROR: app_java [java_support.c:174]: handle_exception(): Exception:#012Exception in thread main java.lang.NoClassDefFoundError: KamailioPlugin#012No stacktrace availableException in thread main java.lang.ClassNotFoundException: KamailioPlugin#012at java.net.URLClassLoader$1.run(URLClassLoader.java:372)#012at java.net.URLClassLoader$1.run(URLClassLoader.java:361)#012at java.security.AccessController.doPrivileged(Native Method)#012at java.net.URLClassLoader.findClass(URLClassLoader.java:360)#012at java.lang.ClassLoader.loadClass(ClassLoader.java:424)#012at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)#012at java.lang.ClassLoader.loadClass(ClassLoader.java:357)Exception in thread main java.lang.NoClassDefFoundError: KamailioPlugin#012No stacktrace availableException in thread main java.lang.ClassNotFoundException: KamailioPlugin#012at java.net.URLClassLoader$1.run(URLClassLoader.java:372)#012at java.net.URLClassLoader$1.run(URLClassLoader.java:361)#012at java.security.AccessController.doPrivileged(Native Method)#012at java.net.URLClassLoader.findClass(URLClassLoader.java:360)#012at java.lang.ClassLoader.loadClass(ClassLoader.java:424)#012at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)#012at java.lang.ClassLoader.loadClass(ClassLoader.java:357) Sep 11 12:48:12 MAIFREEPBX /usr/local/sbin/kamailio[870]: ERROR: core [sr_module.c:970]: init_mod(): init_mod(): Error while initializing module app_java (/usr/local/lib64/kamailio/modules/app_java.so) To Daniel-Constantin, I didn't tested this yet but seems fine to me. Thank you for fix. 2014-09-11 20:57 GMT+04:00 Tom Johnson tjohn...@microautomation.com: Here is the log after the change. *From:* Daniel-Constantin Mierla [mailto:mico...@gmail.com] *Sent:* Thursday, September 11, 2014 11:55 AM *To:* Kamailio (SER) - Users Mailing List; Tom Johnson; Konstantin M. *Subject:* Re: [SR-Users] app_java issue Can you try with the patch from next commit: - http://git.sip-router.org/cgi-bin/gitweb.cgi?p=sip-router;a=commitdiff;h=a13e3b46dba4470deb748eec3b700386f453f6f9;hp=74f53b7d7f6ff00144152aff453e6b388447320c It has code indentation, as I needed to figure out the blocks there, effectively you have to change the line: buf = (char **)pkg_realloc(buf, (i+1) * sizeof(char *)); in: buf = (char **)pkg_realloc(buf, (i+2) * sizeof(char *)); inside the file modules/app_java/utils.c I cc-ed Konstantin, the author of the module, to review the change. Cheers, Daniel On 09/09/14 21:31, Tom Johnson wrote: Per my previous message, I determined that the module’s makefile was not properly finding the jdk/jre directories needed to compile. So, I temporarily hardcoded the paths in the makefile. However, now when I use the module, Kamailio crashes. Below is the lines from /var/log/messages: Sep 9 15:13:10 MAIFREEPBX kamailio: INFO: core [tcp_main.c:4836]: init_tcp(): init_tcp: using epoll_lt as the io watch method (auto detected) Sep 9 15:13:10 MAIFREEPBX kamailio: WARNING: core [daemonize.c:352]: daemonize(): pid file contains old pid, replacing pid Sep 9 15:13:10 MAIFREEPBX /usr/local/sbin/kamailio[12268]: INFO: rr [../outbound/api.h:54]: ob_load_api(): Failed to import bind_ob Sep 9 15:13:10 MAIFREEPBX /usr/local/sbin/kamailio[12268]: INFO: rr [rr_mod.c:159]: mod_init(): outbound module not available Sep 9 15:13:10 MAIFREEPBX /usr/local/sbin/kamailio[12268]: INFO: usrloc [hslot.c:53]: ul_init_locks(): locks array size 512 Sep 9 15:13:10 MAIFREEPBX /usr/local/sbin/kamailio[12268]: INFO: auth [auth_mod.c:350]: mod_init(): auth: qop set, but nonce-count (nc_enabled) support disabled Sep 9 15:13:10 MAIFREEPBX /usr/local/sbin/kamailio[12268]: INFO: app_java [java_mod.c:125]: mod_init(): Initializing Java VM with options: -Xdebug -verbose:gc,class,jni -Djava.compiler=NONE -Djava.class.path=/opt/microautomation/i3/I3Notifier.jar:/opt/kamailio/java/kamailio.jar:/opt/microautomation/i3/lib/log4j-1.2.16.jar Sep 9 15:13:10 MAIFREEPBX /usr/local/sbin/kamailio[12268]: INFO: app_java [java_mod.c:146]: mod_init(): app_java: Java VM initialization OK Sep 9 15:13:10 MAIFREEPBX /usr/local/sbin/kamailio[12268]: INFO: app_java [java_mod.c:198]: mod_init(): app_java: module initialization OK Sep 9 15:13:10 MAIFREEPBX /usr/local/sbin/kamailio[12268]: : core [mem/q_malloc.c:159]: qm_debug_frag(): BUG: qm_*: prev. fragm. tail overwritten(0, abcdefed)[0x7f0941207190:0x7f09412071c0]! Sep 9 15:13:11 MAIFREEPBX abrt[12282]: Saved core dump of pid 12268 (/usr/local/sbin/kamailio) to /var/spool/abrt/ccpp-2014-09-09-15:13:10-12268 (183721984 bytes) The code dump mentioned does not exist. If I do not load the app_java module, Kamailio works. Tom Johnson tjohn...@microautomation.com | Senior Software Engineer O: 703-543
Re: [SR-Users] app_java issue
/kamailio[15989]: INFO: app_java [java_mod.c:211]: child_init(): Initializing child with rank: -1 Sep 11 15:17:07 MAIFREEPBX /usr/local/sbin/kamailio[15993]: INFO: app_java [java_mod.c:211]: child_init(): Initializing child with rank: -2 Sep 11 15:17:07 MAIFREEPBX abrt[16007]: Can't open 'core.15961': Permission denied Sep 11 15:17:07 MAIFREEPBX abrt[16007]: Not saving repeating crash in '/usr/local/sbin/kamailio' Sep 11 15:17:07 MAIFREEPBX kamailio: ERROR: core [daemonize.c:307]: daemonize(): Main process exited before writing to pipe Sep 11 15:17:07 MAIFREEPBX abrt[16008]: Can't open 'core.15988': Permission denied Sep 11 15:17:07 MAIFREEPBX abrt[16008]: Not saving repeating crash in '/usr/local/sbin/kamailio' Sep 11 15:17:07 MAIFREEPBX abrt[16009]: Can't open 'core.15985': Permission denied Sep 11 15:17:07 MAIFREEPBX abrt[16009]: Not saving repeating crash in '/usr/local/sbin/kamailio' Sep 11 15:17:07 MAIFREEPBX abrt[16010]: Can't open 'core.15980': Permission denied Sep 11 15:17:07 MAIFREEPBX abrt[16010]: Not saving repeating crash in '/usr/local/sbin/kamailio' Sep 11 15:17:07 MAIFREEPBX abrt[16012]: Can't open 'core.15993': Permission denied Sep 11 15:17:07 MAIFREEPBX abrt[16013]: Can't open 'core.15989': Permission denied Sep 11 15:17:07 MAIFREEPBX abrt[16013]: Not saving repeating crash in '/usr/local/sbin/kamailio' Sep 11 15:17:07 MAIFREEPBX abrt[16012]: Not saving repeating crash in '/usr/local/sbin/kamailio' Sep 11 15:17:08 MAIFREEPBX abrt[15994]: Saved core dump of pid 15981 (/usr/local/sbin/kamailio) to /var/spool/abrt/ccpp-2014-09-11-15:17:07-15981 (152424448 bytes) Sep 11 15:17:08 MAIFREEPBX abrtd: Directory 'ccpp-2014-09-11-15:17:07-15981' creation detected Sep 11 15:17:40 MAIFREEPBX abrtd: Sending an email... Sep 11 15:17:40 MAIFREEPBX abrtd: Email was sent to: root@localhost Sep 11 15:17:41 MAIFREEPBX abrtd: New problem directory /var/spool/abrt/ccpp-2014-09-11-15:17:07-15981, processing Sep 11 15:17:41 MAIFREEPBX abrtd: No actions are found for event 'notify' *From:* Konstantin M. [mailto:evilz...@gmail.com evilz...@gmail.com] *Sent:* Thursday, September 11, 2014 3:04 PM *To:* Tom Johnson *Cc:* Kamailio (SER) - Users Mailing List *Subject:* Re: [SR-Users] app_java issue Hello, Please take a look to: Sep 11 12:48:12 MAIFREEPBX /usr/local/sbin/kamailio[870]: ERROR: app_java [java_support.c:174]: handle_exception(): Exception:#012Exception in thread main java.lang.NoClassDefFoundError: KamailioPlugin#012No stacktrace availableException in thread main java.lang.ClassNotFoundException: KamailioPlugin#012at java.net.URLClassLoader$1.run(URLClassLoader.java:372)#012at java.net.URLClassLoader$1.run(URLClassLoader.java:361)#012at java.security.AccessController.doPrivileged(Native Method)#012at java.net.URLClassLoader.findClass(URLClassLoader.java:360)#012at java.lang.ClassLoader.loadClass(ClassLoader.java:424)#012at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)#012at java.lang.ClassLoader.loadClass(ClassLoader.java:357)Exception in thread main java.lang.NoClassDefFoundError: KamailioPlugin#012No stacktrace availableException in thread main java.lang.ClassNotFoundException: KamailioPlugin#012at java.net.URLClassLoader$1.run(URLClassLoader.java:372)#012at java.net.URLClassLoader$1.run(URLClassLoader.java:361)#012at java.security.AccessController.doPrivileged(Native Method)#012at java.net.URLClassLoader.findClass(URLClassLoader.java:360)#012at java.lang.ClassLoader.loadClass(ClassLoader.java:424)#012at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)#012at java.lang.ClassLoader.loadClass(ClassLoader.java:357) Sep 11 12:48:12 MAIFREEPBX /usr/local/sbin/kamailio[870]: ERROR: core [sr_module.c:970]: init_mod(): init_mod(): Error while initializing module app_java (/usr/local/lib64/kamailio/modules/app_java.so) To Daniel-Constantin, I didn't tested this yet but seems fine to me. Thank you for fix. -- Daniel-Constantin Mierlahttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Next Kamailio Advanced Trainings 2014 - http://www.asipto.com Sep 22-25, Berlin, Germany ___ 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
Re: [SR-Users] send_reply in app_java or app_mono?
Tom, please take a look to: git_root/modules/app_java/kamailio_java_folder/java-untested here you can see a part of code in Kamailio.java: // retval = KamExec(append_hf, P-hint: VOICEMAIL\r\n); so, you can execute kamailio command using KamExec(command, params) 2014-09-12 0:03 GMT+04:00 Tom Johnson tjohn...@microautomation.com: Is there a way to call the send_reply method of the route from either Java or csharp? As I have been having issues with the app_java, I have been looking at app_mono and it seems to have better access to the variables, etc. However, the SR.core.ModF only seems to take methods that do not take parameters. Or for that matter, is there a way to return something back to the route in the config file which it can use to call send_reply? I have a strange requirement to return 202 rather than 200 from subscription requests and a 603 if it fails. Tom Johnson tjohn...@microautomation.com | Senior Software Engineer O: 703-543-2118 | F: 703-543-2099 5870 Trinity Parkway, Suite 600, Centreville, VA 20120 [image: cid:image001.png@01CE18AF.8F231EB0] http://www.microautomation.com/ ___ 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
Re: [SR-Users] app_python not able to import from Router
Hello, I will update the docs as soon as possible. Thanks for report! 2014-06-02 19:22 GMT+04:00 Olle E. Johansson o...@edvina.net: On 02 Jun 2014, at 16:38, Örn Arnarson o...@arnarson.net wrote: In lieu of better documentation, perhaps the sample code should be changed or altogether removed. To sr-dev: Documentation needs an update. /O ___ 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
Re: [SR-Users] Kamailio does not start with #!define WITH_AUTH
Hello, To find out what the problem is, you need to specify version of Kamailio and attach config. I can't reproduce this bug on 4.1. Thanks! 2014-05-14 6:45 GMT+04:00 Arya Farzan arya6...@gmail.com: When the following lines are on top of my kamailio.cfg #!KAMAILIO #!define WITH_MYSQL #!define WITH_NAT #!define WITH_TLS #!define WITH_AUTH Kamailio does not start and prints out root@voip:/etc/kamailio# /etc/init.d/kamailio start [] Starting Kamailio SIP server: kamailio:loading modules under /usr/lib/x86_64-linux-gnu/kamailio/modules/ Listening on udp: 127.0.0.1:5060 udp: 107.170.93.193:5060 tcp: 127.0.0.1:5060 tcp: 107.170.93.193:5060 tls: 127.0.0.1:5061 tls: 107.170.93.193:5061 Aliases: tls: voip:5061 tls: localhost:5061 tcp: voip:5060 tcp: localhost:5060 udp: voip:5060 udp: localhost:5060 [FAIL] already running ... failed! . ok But when I remove #!define WITH_AUTH it starts up. How can I find out what the problem is? ___ 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
Re: [SR-Users] How to remove attribute from SDP ?
I can share my solution, using app_python. I'm using this in production environment during 2 years. loadmodule app_python.so modparam(app_python, script_name, /opt/kamailio/python/sdp.py) modparam(app_python, mod_init_function, mod_init) modparam(app_python, child_init_method, child_init) and put in route(): python_exec(ParseSDP, $mb); Here I shared sdp.py: http://paste.debian.net/99473/ Note, that it is just for reference only, you need to know what to remove/replace. That script is not exactly what are you're looking for! ___ 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
Re: [SR-Users] Kamailio sending HTTP request to another app
Hello, 2013/11/18 Victor Torre Antunez victor.to...@stoneworksolutions.net Hi all, I´m using EXEC Module to execute a HTTP request via curl, to comunicate with another app like this: exec_avp(curl --connect-timeout 1 --max-time 2 http://IP_ADDR:PORT/PATH/'$fU'/'$tU'/'$hdr(Call-ID)', $avp(s:output)); Sometimes Kamailio blocks when HTTP server does not response in time, despite the max-time parameter. I found this know issue on EXEC module docs: There is currently no guarantee that scripts ever return and stop blocking SIP server. (There is kill.c but it is not used along with the current mechanisms based on popen. Besides that kill.c is ugly). Does anyone know a better way to communicate Kamailio with a HTTP server without blocks? I will try a python script to send the HTTP request and call it with APP_PYTHON module. Has anyone had blocks with APP_PYTHON module? You can app_python and urllib2 with block/nonblock socket and timeouts, e.g., you can define 5 seconds of timeout or so. Thanks in advance. -- *Victor* ___ 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
Re: [SR-Users] Cross-Compilation Problems for mips (gcc 3.4.2)
I can suggest to add -DNOSMP, looks like your MIPS without SMP support, hence no lock memory bariers there. 2013/9/12 Ovidiu Sas o...@voipembedded.com Please open a bug report about it. And please check that your cross compilation is sane (no includes from your local build system). Regards, Ovidiu Sas On Thu, Sep 12, 2013 at 10:10 AM, Tirant Lo Blanc tirantloblan...@yahoo.es wrote: I managed to fix it by adding: #include linux/types.h to sipcapture.c and socket_info.c Thanks to all anyway Hi, I've been exploring the possibility to port Kamailio 3.3 (SER) to some MIPS boards. I didn't have any problem with the first one, with a GCC 4.3.4 toolchain. But on my second board (gcc 3.4.2) I am having problems when compiling. Are there any requirements for gcc/binutils/kernel versions? This is the log I am getting: CC (mipsel-linux-uclibc-gcc) [ser]sip_msg_clone.o In file included from atomic_ops.h:181, from sip_msg_clone.c:43: atomic/atomic_unknown.h:59:2: warning: #warning no native memory barrier implementations, falling back to slow lock based workarround CC (mipsel-linux-uclibc-gcc) [ser]socket_info.o In file included from socket_info.c:836: /opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/netlink.h:22: error: parse error before __u32 /opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/netlink.h:28: error: parse error before __u32 /opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/netlink.h:30: error: parse error before nlmsg_flags /opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/netlink.h:31: error: parse error before nlmsg_seq /opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/netlink.h:32: error: parse error before nlmsg_pid /opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/netlink.h:83: error: field `msg' has incomplete type In file included from socket_info.c:837: /opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/rtnetlink.h:253: error: parse error before __u32 /opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/rtnetlink.h:255: error: parse error before rta_expires /opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/rtnetlink.h:256: error: parse error before rta_error /opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/rtnetlink.h:257: error: parse error before rta_used /opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/rtnetlink.h:260: error: parse error before rta_id /opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/rtnetlink.h:261: error: parse error before rta_ts /opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/rtnetlink.h:262: error: parse error before rta_tsage /opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/rtnetlink.h:333: error: parse error before __s32 /opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/rtnetlink.h:359: error: parse error before __u16 /opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/rtnetlink.h:361: error: parse error before ndm_type /opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/rtnetlink.h:404: error: parse error before __u32 /opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/rtnetlink.h:406: error: parse error before ndm_updated /opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/rtnetlink.h:407: error: parse error before ndm_refcnt /opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/rtnetlink.h:519: error: parse error before __u32 /opt/buildroot-gcc342/bin/../lib/gcc/mipsel-linux-uclibc/3.4.2/../../../../mipsel-linux-uclibc/sys-include/linux/rtnetlink.h:521: error: parse error before tcm_info socket_info.c: In function `addattr_l': socket_info.c:874: error: dereferencing pointer to incomplete type socket_info.c:878: error: dereferencing
Re: [SR-Users] app_python and handlers.py not working
Hi Brian, Could you please show me an error(s) and python files? 2013/9/9 Brian Wallen bwal...@gmail.com I'm trying to setup app_python and I'm using the handlers.py script from the git repo to test. I get the script to load and mod_init() and child_init() both run, but I can't figure out how to get handler() to run. I tried adding python_exec(handler) to my config file but Kamailio doesn't start like that. It says I have a syntax error in my config file. I've tried versions 4.0.3 from the Ubuntu repo as well as building from git and both have the same results. Is python support broken or am I just doing something wrong? ___ 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
Re: [SR-Users] Compile with mysql error
Hello, What is a distro ? 2013/6/17 David Cunningham dcunning...@voisonics.com Hello, We have a system which Kamailio fails to compile mysql support on, even though the library is installed. The mysql packages are: MySQL-client.x86_64 5.5.28-1.rhel5installed MySQL-devel.x86_64 5.5.32-1.rhel5installed MySQL-server.x86_64 5.5.28-1.rhel5installed MySQL-shared-compat.x86_64 5.5.28-1.rhel5installed The error from the Kamailio install is: /usr/bin/ld: cannot find -lmysqlclient collect2: ld returned 1 exit status make[1]: *** [db_mysql.so] Error 1 make: *** [install-modules] Error 1 make: Leaving directory `/usr/src/kamailio-3.3.2' Would anyone be able to advise please? Thanks in advance. -- David Cunningham, Voisonics http://voisonics.com/ USA: +1 213 221 1092 UK: +44 (0) 20 3298 1642 Australia: +61 (0) 2 8063 9019 ___ 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
Re: [SR-Users] app_python module fails with AttributeError: init_modules() has failed
Ok, I can confirm, something is not good there. Not sure what exactly but I will look at this as soon as possible and push a fix if needs. 2013/6/13 phil lemelin phil.leme...@gmail.com Good day people, I downloaded the source code for Kamailio on my CentOS 6 server and did the following : Modified the modules.ls to add db_mysql and app_python. Did the make all Did the make install Copied the configuration and had the same result. Seeing this, I installed myself a copy of ubuntu 12.10 and modified the modules.ls to add db_mysql and app_python , did the make all and make install. I COPIED the configuration file from my CentOS 6 server and started the application. It works on the ubuntu 12.10. I'm now wondering if there is a dependency missing when using CentOS 6 installation. I did run kamailio with strace but could not see anything obvious. Any suggestions ? On Thu, Jun 13, 2013 at 10:58 AM, phil lemelin phil.leme...@gmail.comwrote: As requested, compressed core dump. On Thu, Jun 13, 2013 at 10:51 AM, Konstantin M. evilz...@gmail.comwrote: Could you please compress and attach core file. 2013/6/13 phil lemelin phil.leme...@gmail.com Ok, I disabled WITH_MYSQL and left loadmodule app_python.so at the end of all the other loadmodule directive and here is the output: 0(3572) DEBUG: core [sr_module.c:935]: DEBUG: init_mod: app_python 0(3572) DEBUG: core [sr_module.c:935]: DEBUG: init_mod: mi_fifo 0(3572) DEBUG: mi_fifo [mi_fifo.c:124]: testing mi_fifo existance ... 0(3572) DEBUG: core [sr_module.c:935]: DEBUG: init_mod: kex 0(3572) DEBUG: core [sruid.c:100]: root for sruid is [srid-51b9d8fb-df4-] (0 / 18) 0(3572) ERROR: core [mi.c:159]: command uptime already registered 0(3572) ERROR: core [mi.c:94]: failed to register cmd uptime for module core 0(3572) ERROR: core [mi.c:159]: command version already registered 0(3572) ERROR: core [mi.c:94]: failed to register cmd version for module core 0(3572) ERROR: core [mi.c:159]: command pwd already registered 0(3572) ERROR: core [mi.c:94]: failed to register cmd pwd for module core 0(3572) ERROR: core [mi.c:159]: command arg already registered 0(3572) ERROR: core [mi.c:94]: failed to register cmd arg for module core 0(3572) ERROR: core [mi.c:159]: command which already registered 0(3572) ERROR: core [mi.c:94]: failed to register cmd which for module core 0(3572) ERROR: core [mi.c:159]: command kill already registered 0(3572) ERROR: core [mi.c:94]: failed to register cmd kill for module core 0(3572) ERROR: core [mi.c:159]: command ps already registered 0(3572) ERROR: core [mi.c:94]: failed to register cmd ps for module core 0(3572) ERROR: core [mi.c:159]: command debug already registered 0(3572) ERROR: core [mi.c:94]: failed to register cmd debug for module core 0(3572) ERROR: core [kstats_wrapper.c:73]: counter core.rcv_requests already registered 0(3572) ERROR: core [kstats_wrapper.c:99]: failed to add statistic core.rcv_requests 0(3572) ERROR: kex [core_stats.c:179]: failed to register core statistics 0(3572) ERROR: core [sr_module.c:939]: init_mod(): Error while initializing module kex (/usr/lib64/kamailio/modules/kex.so) 0(3572) ERROR: app_python [python_support.c:132]: mod_init: Unhandled exception in the Python code: AttributeError: init_modules() has failed 0(3572) ERROR: core [sr_module.c:939]: init_mod(): Error while initializing module app_python (/usr/lib64/kamailio/modules/app_python.so) ERROR: error while initializing modules Now, seeing that key.so module was now failing, which I never saw before, I put the loadmodule for python ABOVE mi_fifo and key and here is the result: *snip* thousands of line of the same message 0(3595) DEBUG: core [sr_module.c:935]: DEBUG: init_mod: app_python 0(3595) DEBUG: core [sr_module.c:935]: DEBUG: init_mod: app_python 0(3595) DEBUG: core [sr_module.c:935]: DEBUG: init_mod: app_python 0(3595) DEBUG: core [sr_module.c:935]: DEBUG: init_mod: app_python 0(3595) DEBUG: core [sr_module.c:935]: DEBUG: init_mod: app_python 0(3595) DEBUG: core [sr_module.c:935]: DEBUG: init_mod: app_python 0(3595) DEBUG: core [sr_module.c:935]: DEBUG: init_mod: app_python 0(3595) DEBUG: core [sr_module.c:935]: DEBUG: init_mod: app_python 0(3595) DEBUG: core [sr_module.c:935]: DEBUG: init_mod: app_python 0(3595) DEBUG: core [sr_module.c:935]: DEBUG: init_mod: app_python 0(3595) DEBUG: core [sr_module.c:935]: DEBUG: init_mod: app_python 0(3595) DEBUG: core [sr_module.c:935]: DEBUG: init_mod: app_python 0(3595) DEBUG: core [sr_module.c:935]: DEBUG: init_mod: app_python 0(3595) DEBUG: core [sr_module.c:935]: DEBUG: init_mod: app_python Segmentation fault (core dumped) Any ideas at this point ? Best regards, On Thu, Jun 13, 2013 at 10:27 AM, Konstantin M. evilz...@gmail.comwrote: Yes, you're correct. Default values are: modparam(app_python, script_name, /usr/local/etc/sip-router/handler.py
Re: [SR-Users] app_python module fails with AttributeError: init_modules() has failed
Hello, What version of kamailio are you using ? It is not enough just to add 'loadmodule app_python.so'. This module have to be configured properly. For example: modparam(app_python, script_name, /path/to/python/file.py modparam(app_python, mod_init_function, mod_init) modparam(app_python, child_init_method, child_init) 2013/6/13 phil lemelin phil.leme...@gmail.com Good morning, I'm trying to use the app_python module with Kamailio but i'm unable to even reach a point where it loads my python module. My host: CentOS release 6.3 (Final) 2.6.32-042stab076.7 x86_64 The installed packages: [root@host ~]# rpm -qa | grep kamai kamailio-4.0.1-1.1.x86_64 kamailio-mysql-4.0.1-1.1.x86_64 kamailio-python-4.0.1-1.1.x86_64 Configuration modification: #!define WITH_MYSQL loadmodule app_python.so The python module: [root@phone ~]# cat /usr/local/etc/sip-router/handler.py class Handler(object): def child_init(self, y): return 0 def mod_init(): return Handler() When I start Kamailio, it fails like this: [root@host ~]# kamailio -D 1 -E -e loading modules under /usr/local/lib/kamailio/modules_k/:/usr/lib64/kamailio/modules/ 0(729) NOTICE: core [sr_module.c:627]: /usr/lib64/kamailio/modules/app_python.so: exports dlflags interface is deprecated and it will not be supported in newer versions; consider using mod_register() instead Listening on udp: 127.0.0.1:5060 udp: 10.3.105.49:5060 tcp: 127.0.0.1:5060 tcp: 10.3.105.49:5060 Aliases: tcp: phone:5060 tcp: phone.dev.net2.irg:5060 tcp: localhost4:5060 tcp: localhost4.localdomain4:5060 tcp: localhost:5060 tcp: localhost.localdomain:5060 udp: phone:5060 udp: phone.dev.net2.irg:5060 udp: localhost4:5060 udp: localhost4.localdomain4:5060 udp: localhost:5060 udp: localhost.localdomain:5060 WARNING: no fork mode and more than one listen address found (will use only the first one) 0(729) INFO: core [tcp_main.c:4846]: init_tcp: using epoll_lt as the io watch method (auto detected) 0(729) INFO: rr [../outbound/api.h:49]: Failed to import bind_ob 0(729) INFO: rr [rr_mod.c:159]: outbound module not available 0(729) INFO: usrloc [hslot.c:53]: locks array size 512 0(729) ERROR: core [sr_module.c:939]: init_mod(): Error while initializing module db_mysql (/usr/lib64/kamailio/modules/db_mysql.so) 0(729) ERROR: app_python [python_support.c:132]: mod_init: Unhandled exception in the Python code: AttributeError: init_modules() has failed 0(729) ERROR: core [sr_module.c:939]: init_mod(): Error while initializing module app_python (/usr/lib64/kamailio/modules/app_python.so) ERROR: error while initializing modules And with -d -d -d : *snip* 0(751) DEBUG: core [sr_module.c:674]: find_export_record: found t_release in module tm [/usr/lib64/kamailio/modules/tm.so] 0(751) DEBUG: core [sr_module.c:935]: DEBUG: init_mod: app_python 0(751) DEBUG: core [sr_module.c:935]: DEBUG: init_mod: db_mysql 0(751) ERROR: core [sr_module.c:939]: init_mod(): Error while initializing module db_mysql (/usr/lib64/kamailio/modules/db_mysql.so) 0(751) ERROR: app_python [python_support.c:132]: mod_init: Unhandled exception in the Python code: AttributeError: init_modules() has failed 0(751) ERROR: core [sr_module.c:939]: init_mod(): Error while initializing module app_python (/usr/lib64/kamailio/modules/app_python.so) ERROR: error while initializing modules 0(751) DEBUG: tm [t_funcs.c:118]: DEBUG: tm_shutdown : start 0(751) DEBUG: tm [t_funcs.c:121]: DEBUG: tm_shutdown : emptying hash table 0(751) DEBUG: tm [t_funcs.c:123]: DEBUG: tm_shutdown : removing semaphores 0(751) DEBUG: tm [t_funcs.c:125]: DEBUG: tm_shutdown : destroying tmcb lists 0(751) DEBUG: tm [t_funcs.c:128]: DEBUG: tm_shutdown : done 0(751) DEBUG: core [mem/shm_mem.c:242]: shm_mem_destroy 0(751) DEBUG: core [mem/shm_mem.c:245]: destroying the shared memory lock I've been trying all the configuration permutation I could think off. Am I missing a package or something in the configuration ? Regards, -- Phil. ___ 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
Re: [SR-Users] app_python module fails with AttributeError: init_modules() has failed
Yes, you're correct. Default values are: modparam(app_python, script_name, /usr/local/etc/sip-router/handler.py modparam(app_python, mod_init_function, mod_init) modparam(app_python, child_init_method, child_init) But app_python is nothing related to db_mysql. Anyways, see my test: root@raspberrypi:/opt/kamailio# grep python etc/kamailio/kamailio.cfg loadmodule app_python.so root@raspberrypi:/opt/kamailio# cat /usr/local/etc/sip-router/handler.py class Handler(object): def child_init(self, y): return 0 def mod_init(): return Handler() root@raspberrypi:/opt/kamailio# ./start.sh loading modules under /usr/local/lib/kamailio/modules_k/:/opt/kamailio/lib/kamailio/modules/ 0(4536) NOTICE: core [sr_module.c:627]: /opt/kamailio/lib/kamailio/modules/app_python.so: exports dlflags interface is deprecated and it will not be supported in newer versions; consider using mod_register() instead 0(4536) WARNING: core [socket_info.c:1407]: WARNING: fix_hostname: could not rev. resolve 0.0.0.0 Listening on udp: 0.0.0.0:5062 Aliases: WARNING: no fork mode 0(4536) INFO: rr [../outbound/api.h:49]: Failed to import bind_ob 0(4536) INFO: rr [rr_mod.c:159]: outbound module not available 0(4536) INFO: usrloc [hslot.c:53]: locks array size 512 0(4536) INFO: core [udp_server.c:179]: INFO: udp_init: SO_RCVBUF is initially 163840 0(4536) INFO: core [udp_server.c:230]: INFO: udp_init: SO_RCVBUF is finally 327680 4(4540) INFO: ctl [io_listener.c:221]: io_listen_loop: using epoll_lt as the io watch method (auto detected) So nothing fails there. 2013/6/13 phil lemelin phil.leme...@gmail.com If i remove ' loadmodule app_python.so ', Kamailio starts just fine. This only appears when the app_python module is loaded. Is there anything else than mysql to enable when using the app_python ? Here is the ouput when I only enable mysql. The module is loaded and there are no issues... *snip* ^[[0;39;49m 0(3113) DEBUG: core [cfg/cfg.c:178]: DEBUG: register_cfg_def(): new config group has been registered: 'core' (num=49, size=196) ^[[0;39;49m^[[0;39;49m 0(3113) DEBUG: core [cfg/cfg.c:178]: DEBUG: register_cfg_def(): new config group has been registered: 'tcp' (num=26, size=104) ^[[0;39;49m^[[0;39;49m 0(3113) DEBUG: core [timer.c:272]: init_timer: starting with *ticks=195301735 ^[[0;39;49m^[[0;39;49m 0(3113) DEBUG: core [timer.c:314]: init_timer: timer_list between 0x7fa54af1ba20 and 0x7fa54af5fa20 ^[[0;39;49m^[[0;36;49m 0(3113) INFO: core [tcp_main.c:4846]: init_tcp: using epoll_lt as the io watch method (auto detected) ^[[0;39;49m^[[0;39;49m 0(3113) DEBUG: core [daemonize.c:575]: core dump limits set to 18446744073709551615 ^[[0;39;49m^[[0;39;49m 0(3113) DEBUG: core [sr_module.c:935]: DEBUG: init_mod: db_mysql ^[[0;39;49m^[[0;39;49m 0(3113) DEBUG: db_mysql [km_db_mysql.c:92]: MySQL client version is 5.1.69 ^[[0;39;49m^[[0;39;49m 0(3113) DEBUG: core [sr_module.c:935]: DEBUG: init_mod: mi_fifo ^[[0;39;49m^[[0;39;49m 0(3113) DEBUG: mi_fifo [mi_fifo.c:124]: testing mi_fifo existance ... ^[[0;39;49m^[[0;39;49m 0(3113) DEBUG: core [sr_module.c:935]: DEBUG: init_mod: kex ^[[0;39;49m^[[0;39;49m 0(3113) DEBUG: core [sruid.c:100]: root for sruid is [srid-51b9d186-c29-] (0 / 18) ^[[0;39;49m^[[0;39;49m 0(3113) DEBUG: core [sr_module.c:935]: DEBUG: init_mod: corex ^[[0;39;49m^[[0;39;49m 0(3113) DEBUG: core [sr_module.c:935]: DEBUG: init_mod: tm ^[[0;39;49m^[[0;39;49m 0(3113) DEBUG: tm [tm.c:751]: TM - (sizeof cell=4872, sip_msg=1624) initializing... ^[[0;39;49m^[[0;39;49m 0(3113) DEBUG: tm [callid.c:105]: Call-ID initialization: '2c32dacb59169bda' *snip* On Thu, Jun 13, 2013 at 9:48 AM, Andrew Mortensen admor...@isc.upenn.eduwrote: On Jun 13, 2013, at 7:23 AM, phil lemelin phil.leme...@gmail.com wrote: Good morning, I'm trying to use the app_python module with Kamailio but i'm unable to even reach a point where it loads my python module. It's actually failing even before that. It's unable to load the db_mysql module: 0(751) DEBUG: core [sr_module.c:935]: DEBUG: init_mod: db_mysql 0(751) ERROR: core [sr_module.c:939]: init_mod(): Error while initializing module db_mysql (/usr/lib64/kamailio/modules/db_mysql.so) Fix that first. andrew ___ 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 -- Philippe-Alexandre Lemelin ___ 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
Re: [SR-Users] app_python module fails with AttributeError: init_modules() has failed
Could you please compress and attach core file. 2013/6/13 phil lemelin phil.leme...@gmail.com Ok, I disabled WITH_MYSQL and left loadmodule app_python.so at the end of all the other loadmodule directive and here is the output: 0(3572) DEBUG: core [sr_module.c:935]: DEBUG: init_mod: app_python 0(3572) DEBUG: core [sr_module.c:935]: DEBUG: init_mod: mi_fifo 0(3572) DEBUG: mi_fifo [mi_fifo.c:124]: testing mi_fifo existance ... 0(3572) DEBUG: core [sr_module.c:935]: DEBUG: init_mod: kex 0(3572) DEBUG: core [sruid.c:100]: root for sruid is [srid-51b9d8fb-df4-] (0 / 18) 0(3572) ERROR: core [mi.c:159]: command uptime already registered 0(3572) ERROR: core [mi.c:94]: failed to register cmd uptime for module core 0(3572) ERROR: core [mi.c:159]: command version already registered 0(3572) ERROR: core [mi.c:94]: failed to register cmd version for module core 0(3572) ERROR: core [mi.c:159]: command pwd already registered 0(3572) ERROR: core [mi.c:94]: failed to register cmd pwd for module core 0(3572) ERROR: core [mi.c:159]: command arg already registered 0(3572) ERROR: core [mi.c:94]: failed to register cmd arg for module core 0(3572) ERROR: core [mi.c:159]: command which already registered 0(3572) ERROR: core [mi.c:94]: failed to register cmd which for module core 0(3572) ERROR: core [mi.c:159]: command kill already registered 0(3572) ERROR: core [mi.c:94]: failed to register cmd kill for module core 0(3572) ERROR: core [mi.c:159]: command ps already registered 0(3572) ERROR: core [mi.c:94]: failed to register cmd ps for module core 0(3572) ERROR: core [mi.c:159]: command debug already registered 0(3572) ERROR: core [mi.c:94]: failed to register cmd debug for module core 0(3572) ERROR: core [kstats_wrapper.c:73]: counter core.rcv_requests already registered 0(3572) ERROR: core [kstats_wrapper.c:99]: failed to add statistic core.rcv_requests 0(3572) ERROR: kex [core_stats.c:179]: failed to register core statistics 0(3572) ERROR: core [sr_module.c:939]: init_mod(): Error while initializing module kex (/usr/lib64/kamailio/modules/kex.so) 0(3572) ERROR: app_python [python_support.c:132]: mod_init: Unhandled exception in the Python code: AttributeError: init_modules() has failed 0(3572) ERROR: core [sr_module.c:939]: init_mod(): Error while initializing module app_python (/usr/lib64/kamailio/modules/app_python.so) ERROR: error while initializing modules Now, seeing that key.so module was now failing, which I never saw before, I put the loadmodule for python ABOVE mi_fifo and key and here is the result: *snip* thousands of line of the same message 0(3595) DEBUG: core [sr_module.c:935]: DEBUG: init_mod: app_python 0(3595) DEBUG: core [sr_module.c:935]: DEBUG: init_mod: app_python 0(3595) DEBUG: core [sr_module.c:935]: DEBUG: init_mod: app_python 0(3595) DEBUG: core [sr_module.c:935]: DEBUG: init_mod: app_python 0(3595) DEBUG: core [sr_module.c:935]: DEBUG: init_mod: app_python 0(3595) DEBUG: core [sr_module.c:935]: DEBUG: init_mod: app_python 0(3595) DEBUG: core [sr_module.c:935]: DEBUG: init_mod: app_python 0(3595) DEBUG: core [sr_module.c:935]: DEBUG: init_mod: app_python 0(3595) DEBUG: core [sr_module.c:935]: DEBUG: init_mod: app_python 0(3595) DEBUG: core [sr_module.c:935]: DEBUG: init_mod: app_python 0(3595) DEBUG: core [sr_module.c:935]: DEBUG: init_mod: app_python 0(3595) DEBUG: core [sr_module.c:935]: DEBUG: init_mod: app_python 0(3595) DEBUG: core [sr_module.c:935]: DEBUG: init_mod: app_python 0(3595) DEBUG: core [sr_module.c:935]: DEBUG: init_mod: app_python Segmentation fault (core dumped) Any ideas at this point ? Best regards, On Thu, Jun 13, 2013 at 10:27 AM, Konstantin M. evilz...@gmail.comwrote: Yes, you're correct. Default values are: modparam(app_python, script_name, /usr/local/etc/sip-router/handler.py modparam(app_python, mod_init_function, mod_init) modparam(app_python, child_init_method, child_init) But app_python is nothing related to db_mysql. Anyways, see my test: root@raspberrypi:/opt/kamailio# grep python etc/kamailio/kamailio.cfg loadmodule app_python.so root@raspberrypi:/opt/kamailio# cat /usr/local/etc/sip-router/handler.py class Handler(object): def child_init(self, y): return 0 def mod_init(): return Handler() root@raspberrypi:/opt/kamailio# ./start.sh loading modules under /usr/local/lib/kamailio/modules_k/:/opt/kamailio/lib/kamailio/modules/ 0(4536) NOTICE: core [sr_module.c:627]: /opt/kamailio/lib/kamailio/modules/app_python.so: exports dlflags interface is deprecated and it will not be supported in newer versions; consider using mod_register() instead 0(4536) WARNING: core [socket_info.c:1407]: WARNING: fix_hostname: could not rev. resolve 0.0.0.0 Listening on udp: 0.0.0.0:5062 Aliases: WARNING: no fork mode 0(4536) INFO: rr [../outbound/api.h:49]: Failed to import bind_ob 0(4536) INFO: rr
[SR-Users] remove_body() leaves header Content-Type: application/sdp ?
Hello, I'm using a very ugly code to test remove_body(): request_route { remove_body(); $rd = 192.168.254.85; t_relay(); } Original INVITE (with SDP): - U 192.168.254.102:5060 - 192.168.254.104:5060 INVITE sip:123@192.168.254.104 SIP/2.0. Via: SIP/2.0/UDP 192.168.254.102:5060;branch=z9hG4bK50cdeeb8. Max-Forwards: 70. From: 10005 sip:10005@192.168.254.102;tag=as78ddcd16. To: sip:123@192.168.254.104. Contact: sip:10005@192.168.254.102:5060. Call-ID: 79a1c78f01914f1814bfcb7d622cf735@192.168.254.102:5060. CSeq: 102 INVITE. User-Agent: Asterisk PBX 1.8.7.1. Date: Sat, 18 May 2013 05:47:32 GMT. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH. Supported: replaces, timer. Content-Type: application/sdp. Content-Length: 269. . v=0. o=root 1763381182 1763381182 IN IP4 192.168.254.102. s=Asterisk PBX 1.8.7.1. c=IN IP4 192.168.254.102. t=0 0. m=audio 16162 RTP/AVP 0 101. a=rtpmap:0 PCMU/8000. a=rtpmap:101 telephone-event/8000. a=fmtp:101 0-16. a=silenceSupp:off - - - -. a=ptime:20. a=sendrecv. - Modified INVITE (after remove_body()): - U 192.168.254.104:5060 - 192.168.254.85:5060 INVITE sip:123@192.168.254.85 SIP/2.0. Via: SIP/2.0/UDP 0.0.0.0;branch=z9hG4bK6c5c.6160e017.0. Via: SIP/2.0/UDP 192.168.254.102:5060;branch=z9hG4bK50cdeeb8. Max-Forwards: 70. From: 10005 sip:10005@192.168.254.102;tag=as78ddcd16. To: sip:123@192.168.254.104. Contact: sip:10005@192.168.254.102:5060. Call-ID: 79a1c78f01914f1814bfcb7d622cf735@192.168.254.102:5060. CSeq: 102 INVITE. User-Agent: Asterisk PBX 1.8.7.1. Date: Sat, 18 May 2013 05:47:32 GMT. Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH. Supported: replaces, timer. *Content-Type: application/sdp.* Content-Length: 0. . - So, remove_body() is actualy removes SDP from request but leaves Content-Type header. Why ? ___ 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
Re: [SR-Users] Problem accessing git repository
Hello, I just checked too, it's works to me fine. 2013/4/12 Henning Westerholt h...@kamailio.org Am Freitag, 12. April 2013, 12:52:17 schrieb Mikko Lehto: Yesterday I got fatal: read error: Connection reset by peer to my git pull command. I thought it was only temporary network error, but same problem still exist today. I can however access other remote git repositories succesfully from the same host. Hello, I just had a look to the server. It works ok, but has a bit high load from the git web access application. I'll configure this a bit more restrictive, that it not cause this high load spikes. Best regards, Henning ___ 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
Re: [SR-Users] Is cvs repository of sip_route still alive?
# cvs -d:pserver:anonym...@cvs.berlios.de:/cvsroot/ser login Logging in to :pserver:anonym...@cvs.berlios.de:2401/cvsroot/ser CVS password: # cvs -d:pserver:anonym...@cvs.berlios.de:/cvsroot/ser co sip_router cvs [checkout aborted]: cannot stat /cvsroot/ser/locks: No such file or directory It seems that cvs is broken, at least I was able to checkout another module. # cvs -d:pserver:anonym...@cvs.berlios.de:/cvsroot/scrapbook co scrapbook cvs checkout: Updating scrapbook cvs checkout: Updating scrapbook/.settings cvs checkout: Updating scrapbook/META-INF cvs checkout: Updating scrapbook/WEB-INF ... Consider using svn/git. 2013/4/1 Yuming Zheng zhengyumingnanj...@gmail.com Hi, export CVSROOT=:pserver:anonym...@cvs.berlios.de:/cvsroot/ser cvs login OK, when try checkout the sip_route cvs co sip_router cvs [checkout aborted]: cannot stat /cvsroot/ser/locks: No such file or directory Although cvs view is working. I want go check some logs in the repository. BR, Frank.zheng ___ 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
Re: [SR-Users] java code to interact with kamailio
Hello, You can try out app_java (http://voipgroup.org.ua/kamailio/dev/) but keep in mind, a code isn't tested well, I don't recommend to use it in live environment. 2013/3/6 Rupayan Dutta direct2rupa...@gmail.com Dear Sir, I want to authenticate users as well as getting buddy list from kamailio using java .Is there any existing library already in place. Rupayan Dutta ___ 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
Re: [SR-Users] installing v4.0.x from git
2013/3/4 Olle E. Johansson o...@edvina.net 4 mar 2013 kl. 09:20 skrev Daniel-Constantin Mierla mico...@gmail.com: Hello, I created the wiki page with the how-to install kamailio v4.0.x from git. The tutorial is available at: - http://www.kamailio.org/wiki/install/4.0.x/git It should make life easier for those willing to give a try to v4.0.0 these days. Anyhow, a review of the content is very appreciated. Feel free to enhance the content by adding to the wiki page or reply here with your ideas to improve. Websocket require libunistring. I don't know debian, so I don't know the package name to add... This library has exactly the name you've mentioned: # aptitude search libunistring i libunistring-dev - Unicode string library for C - development files i A libunistring0 - Unicode string library for C /O ___ 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
Re: [SR-Users] Weird out-of-memory message on start/stop
Try to look at https://bugzilla.redhat.com/show_bug.cgi?id=803827 and http://forums.cpanel.net/f34/named-wont-start-284821.html#post1191151 2013/2/21 Andreas Granig agra...@sipwise.com Hi Daniel, On 02/21/2013 09:38 AM, Daniel-Constantin Mierla wrote: My curiosity now, what means the syslog message: ... t of memory [6720] I guess the last is pid. Is it like just last part of OUt of memory? Never had this message so far, iirc. What I found through debugging is that this message should actually mean out of memory, and it's yielded by libc, I guess during mmap and/or locking the memory (not exactly sure what kamailio does in that regards). Andreas __**_ 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
Re: [SR-Users] app_python rewrite_ruri - BUG: do_action bad set*()
Hello, Ok, bug is confirmed. I will fix it a soon. Can I ask you - are you using now v4 or still using 3.x ? 2013/2/15 V Tone vtone...@gmail.com Hi, I'm having problems getting started with the app_python module. I'm getting the following in the logs: 5(8890) : core [action.c:785]: BUG: do_action: bad set*() type 14 5(8890) ERROR: core [action.c:1568]: run action error at: :0 5(8890) ERROR: app_python [python_msgobj.c:115]: Error in do_action 5(8890) ERROR: app_python [python_support.c:38]: python_exec2: Unhandled exception in the Python code: 5(8890) ERROR: app_python [python_support.c:78]: RuntimeError: Error in do_action My Python module is very basic: class Router(object): def child_init(self, child_id): return 0 def route(self, msg): msg.rewrite_ruri('sip:1000@1.2.3.4:5060') return 0 def mod_init(): instance = Router() return instance I've tested this in Kamailio 3.2 and 3.3. Can someone point me to what I'm doing wrong? Many thanks in advance, vtone ___ 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
Re: [SR-Users] app_python rewrite_ruri - BUG: do_action bad set*()
A quick workaround - open file 'app_python/python_msgobj.c' with any text editor, find function 'msg_rewrite_ruri' and change a line (inside this function): from act.val[0].type = STR_ST; to: act.val[0].type = STRING_ST; then recompile, it should work. I will commit to git for v4 in a some min. 2013/2/15 V Tone vtone...@gmail.com Thanks Konstantin, much appreciated. I am using 3.x... I'll jump up to 4 and wait your feedback. On 15 February 2013 17:39, Konstantin M. evilz...@gmail.com wrote: Hello, Ok, bug is confirmed. I will fix it a soon. Can I ask you - are you using now v4 or still using 3.x ? 2013/2/15 V Tone vtone...@gmail.com Hi, I'm having problems getting started with the app_python module. I'm getting the following in the logs: 5(8890) : core [action.c:785]: BUG: do_action: bad set*() type 14 5(8890) ERROR: core [action.c:1568]: run action error at: :0 5(8890) ERROR: app_python [python_msgobj.c:115]: Error in do_action 5(8890) ERROR: app_python [python_support.c:38]: python_exec2: Unhandled exception in the Python code: 5(8890) ERROR: app_python [python_support.c:78]: RuntimeError: Error in do_action My Python module is very basic: class Router(object): def child_init(self, child_id): return 0 def route(self, msg): msg.rewrite_ruri('sip:1000@1.2.3.4:5060') return 0 def mod_init(): instance = Router() return instance I've tested this in Kamailio 3.2 and 3.3. Can someone point me to what I'm doing wrong? Many thanks in advance, vtone ___ 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
Re: [SR-Users] Kamailio-Java Integration
Ok, I will review this part a soon. Thank you. 2013/2/8 Daniel-Constantin Mierla mico...@gmail.com On 2/6/13 11:39 PM, Konstantin M. wrote: 2013/2/7 Daniel-Constantin Mierla mico...@gmail.com As expected, a consistent list of dependencies, but I guess that people using java would have those installed anyhow :-) Is KamExec(...) running config functions exported by the modules? Maybe it should be more explicit, eventually with an example. I haven't looked at the code, just mentioning here in case it is unknown, config functions exported by modules have a special mechanism named fixup to convert parameters to custom structures. You should be careful with that because can result in memory leaks if used from embedded languages. Yes, I'm using fexport-fixup() to all arguments. You should use also the free fixup function when available. However, there are many functions implementing a fixup() that dynamically allocates memory and don't provide a free fixup function. So the potential of memory leak is there. If you know what functions you are calling from Java and they are mem leak safe, then all is fine. But it is not valid for all config functions. That's why for Lua, we exported directly many inter-module API functions. Cheers, Daniel Cheers, Daniel On 2/6/13 11:20 PM, Konstantin M. wrote: I just published. Here is a link: http://voipgroup.org.ua/kamailio/dev/kamailio_app_java_v0.1a-README.txt 2013/2/7 Daniel-Constantin Mierla mico...@gmail.com Hello, is the readme or other documentation available directly on the web? I am not a java user, but I (and others) can look over and spot if there is something to make it coherent in with the rest of embedded interpreters. Cheers, Daniel On 2/6/13 6:10 PM, Konstantin M. wrote: Hello. I've build an application app_java - Java Native Interface support for Kamailio. It is an alpha version. Works with kamailio = 3.2. A code isn't in main release right now. You can download it: http://voipgroup.org.ua/kamailio/dev/kamailio_app_java_v0.1a.tar.gz I would be a very grateful if somebody will test this and report about a test usage (and/or bug reports). Thanks! 2012/11/25 ron.kamai...@mcleodnet.com I am looking for a way to integrate Java business logic with Kamailio to influence routing decisions, add/remove/modify headers, record accounting-related information, etc. A while back there was a project named WeSIP, but it doesn’t appear to active anymore. Is anyone doing something like this now, or any ideas or suggestions? Thanks, Ron ___ 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 listsr-us...@lists.sip-router.orghttp://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 World Conference, April 16-17, 2013, Berlin - http://conference.kamailio.com - ___ 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 listsr-us...@lists.sip-router.orghttp://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 World Conference, April 16-17, 2013, Berlin - http://conference.kamailio.com - ___ 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 World Conference, April 16-17, 2013, Berlin - http://conference.kamailio.com - ___ 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
Re: [SR-Users] Kamailio-Java Integration
Hello. I've build an application app_java - Java Native Interface support for Kamailio. It is an alpha version. Works with kamailio = 3.2. A code isn't in main release right now. You can download it: http://voipgroup.org.ua/kamailio/dev/kamailio_app_java_v0.1a.tar.gz I would be a very grateful if somebody will test this and report about a test usage (and/or bug reports). Thanks! 2012/11/25 ron.kamai...@mcleodnet.com I am looking for a way to integrate Java business logic with Kamailio to influence routing decisions, add/remove/modify headers, record accounting-related information, etc. A while back there was a project named WeSIP, but it doesn’t appear to active anymore. ** ** Is anyone doing something like this now, or any ideas or suggestions? Thanks, Ron ___ 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
Re: [SR-Users] Kamailio-Java Integration
I just published. Here is a link: http://voipgroup.org.ua/kamailio/dev/kamailio_app_java_v0.1a-README.txt 2013/2/7 Daniel-Constantin Mierla mico...@gmail.com Hello, is the readme or other documentation available directly on the web? I am not a java user, but I (and others) can look over and spot if there is something to make it coherent in with the rest of embedded interpreters. Cheers, Daniel On 2/6/13 6:10 PM, Konstantin M. wrote: Hello. I've build an application app_java - Java Native Interface support for Kamailio. It is an alpha version. Works with kamailio = 3.2. A code isn't in main release right now. You can download it: http://voipgroup.org.ua/kamailio/dev/kamailio_app_java_v0.1a.tar.gz I would be a very grateful if somebody will test this and report about a test usage (and/or bug reports). Thanks! 2012/11/25 ron.kamai...@mcleodnet.com I am looking for a way to integrate Java business logic with Kamailio to influence routing decisions, add/remove/modify headers, record accounting-related information, etc. A while back there was a project named WeSIP, but it doesn’t appear to active anymore. Is anyone doing something like this now, or any ideas or suggestions? Thanks, Ron ___ 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 listsr-us...@lists.sip-router.orghttp://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 World Conference, April 16-17, 2013, Berlin - http://conference.kamailio.com - ___ 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
Re: [SR-Users] [sr-dev] [Kamailio-Business] Merry Christmas!
Merry Christmas!!! 2012/12/24 Atle Samuelsen atle.samuel...@gmail.com Merry xmas to you all. Best regards atle Den 24. des. 2012 22:04 skrev Brandon Armstead bran...@cryy.com følgende: Merry Christmas!!! On Mon, Dec 24, 2012 at 1:00 PM, Daniel-Constantin Mierla mico...@gmail.com wrote: Another year getting to its end! Looking back, looks like one with the greatest achievements in the development of the project so far. Year is not done, so I save that summary for one week later, there is still stuff on its way to our source code repository. Now I want to thank to everyone promoting and contributing to the project, from developers to community members, and wish Merry Christmas and great winter holidays to all supporters of our project! Cheers, Daniel -- Daniel-Constantin Mierla -- http://www.asipto.com http://linkedin.com/in/miconda -- http://twitter.com/miconda __**_ Kamailio (OpenSER) - Business mailing list busin...@lists.kamailio.org http://lists.kamailio.org/cgi-**bin/mailman/listinfo/businesshttp://lists.kamailio.org/cgi-bin/mailman/listinfo/business http://lists.openser-project.**org/cgi-bin/mailman/listinfo/**businesshttp://lists.openser-project.org/cgi-bin/mailman/listinfo/business ___ sr-dev mailing list sr-...@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev ___ sr-dev mailing list sr-...@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev ___ 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
Re: [SR-Users] [sr-dev] New developer: Richard Good
Congratulations, Richard! 2012/12/19 Daniel-Constantin Mierla mico...@gmail.com Hello, I want to announce that a new developer got GIT write access to repository: Richard Good - he is among those developing the IMS extensions for Kamailio (http://code.google.com/p/**smile-ims-extensions/http://code.google.com/p/smile-ims-extensions/), to be merged in the next days to the GIT master branch. His git commit id is: richard.good My warm welcome and looking forward to future work within the project! Cheers, Daniel -- Daniel-Constantin Mierla - http://www.asipto.com http://twitter.com/#!/miconda - http://www.linkedin.com/in/**micondahttp://www.linkedin.com/in/miconda __**_ sr-dev mailing list sr-...@lists.sip-router.org http://lists.sip-router.org/**cgi-bin/mailman/listinfo/sr-**devhttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev ___ 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
Re: [SR-Users] Debugging and syslog
If you're running Debian - try out my solution: 1) Edit /etc/rsyslog.d/50-default.conf (or /etc/rsyslog.conf, whatever are located default values for *.*) and change from: auth,authpriv.* /var/log/auth.log *.*;auth,authpriv.none -/var/log/syslog to: auth,authpriv.* /var/log/auth.log *.*;auth,authpriv.none,\ local0.none -/var/log/syslog (just add local0.none) 2) Create new file: /etc/rsyslog.d/kamailio.conf: local0.*-/var/log/kamailio/kamailio.log 3) Create log directory: # mkdir /var/log/kamailio/ 4) Create log file: # touch /var/log/kamailio/kamailio.log 5) Restart rsyslog: # invoke-rc.d rsyslog restart I have the following configuration of logging: #!ifdef WITH_DEBUG debug=4 log_stderror=yes #!else debug=2 log_stderror=no #!endif memdbg=5 memlog=5 log_facility=LOG_LOCAL0 2012/11/27 Daniel W. Graham d...@cmsinter.net Thanks for the reply - I have done that with no luck. -Original Message- From: sr-users-boun...@lists.sip-router.org [mailto: sr-users-boun...@lists.sip-router.org] On Behalf Of Iwan Budi Kusnanto Sent: Monday, November 26, 2012 10:10 PM To: SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users Mailing List Subject: Re: [SR-Users] Debugging and syslog touch the log file? restart rsyslog? On Tue, Nov 27, 2012 at 3:38 AM, Daniel W. Graham d...@cmsinter.net wrote: Hello, Reaching out for some assistance with debugging, I am not seeing any xlog messages in my log file. If there is any other info I didn’t include that would be helpful please let me know. Any ideas are appreciated. Using Kamailio 3.3.2 Cent OS 6 Rsyslog.conf *.info;mail.none;authpriv.none;cron.none;local0.none/var/log/messages # Kamailio local0.* -/var/log/kamailio Kamailio CFG -- #!define WITH_DEBUG #!ifdef WITH_DEBUG debug=4 log_stderror=yes #!else debug=2 log_stderror=no #!endif log_facility=LOG_LOCAL0 loadmodule xlog.so Example xlog- xlog(L_INFO, No more gateways \n); Thanks, Dan- ___ 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 -- Iwan Budi Kusnanto ___ 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
Re: [SR-Users] Celebrating 11 Years
Congratulations!!! 2012/9/3 Daniel-Constantin Mierla mico...@gmail.com Hello, eleven years ago, the first piece of code of the project was committed. Last year we organized a public event, for the 10 years celebration, presentations and more details about it at: * http://sip-router.org/10-**years-ser/http://sip-router.org/10-years-ser/ For the 11th year, I made a news with the summary of the past year - definitively it was lot of work, adding many new features: * http://www.kamailio.org/w/**2012/09/kamailio-at-11-years/http://www.kamailio.org/w/2012/09/kamailio-at-11-years/ Looking forward to the next year celebration, surely it will list another great set of new features! Many thanks to everyone helping the project, from advocating to development! Cheers, Daniel -- 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, Berlin, Nov 5-8, 2012 - http://asipto.com/u/kat __**_ 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
Re: [SR-Users] [ot] virtualization systems
From my previous experience, I can't say, it's a correct. I'm using asterisk (over 3 years) and kamailio (about 1 year) in a *production* environment using Xen and I have almost no problems with timers (they were previously with 100Hz), but I have experienced A LOT of problems with asterisk or any voip-related projects using OpenVZ. So from my own perspective, OpenVZ (which is a more cheaper) is only suitable for hosting (web or such of tasks) or any non-realtime tasks. Maybe it was caused by incorrect settings on host (which was out of my control). Maybe I'm wrong but to me, Xen is better vs OpenVZ :-) 2012/8/28 Olle E. Johansson o...@edvina.net I haven't heard anyone using Asterisk in large production systems in other virtualization than OpenVZ. Asterisk depends a lot on timers and these aren't reliable enough in Vmware and Xen when putting load on the media server. I would love to hear about a successful implementation :-) on other platforms but so far I haven't. While waiting, OpenVZ works great. /O ___ 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
Re: [SR-Users] Kernel Module Issue
echo blacklist nf_conntrack_sip /etc/modprobe.d/blacklist.conf 2012/8/8 Vijay Thakur vijay.tha...@loopmethods.com Thanks for the hint. What is the file name in /etc/modprob.d/ where i am supposed to enter this module name to disable it. Thanks Vijay Tha Message: 1 Date: Mon, 06 Aug 2012 09:01:03 -0400 From: Richard Fuchs rfu...@sipwise.com rfu...@sipwise.com Subject: Re: [SR-Users] Kernel Droping SIP packet To: sr-users@lists.sip-router.org Message-ID: 501fc00f.6000...@sipwise.com 501fc00f.6000...@sipwise.com Content-Type: text/plain; charset=iso-8859-1 On 08/06/12 06:08, Vijay Thakur wrote: Hi all, I have configure Kamailio 3.1.5 Server. All things are working fine. When i make a call from Soft phone (X-Lite) to iphone, all is working fine. But in other case call from iphone to Softphone is not working, even not ringing. During checking the logs i am getting the error: Aug 3 04:36:09 localhost kernel: nf_ct_sip: dropping packetIN=eth0 OUT= MAC=f2:3c:91:ae:92:36:c8:4c:75:f5:c4:ff:08:00 SRC=122.xxx.xxx.77 DST=xx.116.xx.23 LEN=1482 TOS=0x00 PREC=0x00 TTL=51 ID=50183 DF PROTO=TCP SPT=15587 DPT=5060 SEQ=3285635734 ACK=3113844065 WINDOW=5763 RES=0x00 ACK URGP=0 OPT (0101080A000E20610932B25A) This is coming from nf_conntrack_sip, which is a netfilter connection tracking kernel module for SIP. I've never used it, but judging from what Google brings up, it seems to be very buggy. You should be able to just unload it by issuing rmmod nf_conntrack_sip. If that doesn't work and/or if you want to keep it from auto-loading, you can blacklist it in*/etc/modprobe.d/* and then reboot. HTH copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. - ___ 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
Re: [SR-Users] Kernel Droping SIP packet
rmmod nf_conntrack_sip 2012/8/6 Alex Balashov abalas...@evaristesys.com Can you paste this output too? lsmod | grep -i sip -- Alex -- Sent from my Samsung mobile, and thus lacking in the refinement one might expect from a proper keyboard. Alex Balashov - Principal Evariste Systems LLC 235 E Ponce de Leon Ave Suite 106 Decatur, GA 30030 Tel: +1-678-954-0670 Web: http://www.evaristesys.com/ Vijay Thakur vijay.tha...@loopmethods.com wrote: Thanks for prompt reply. Here is the out put if command iptables -L -n: *Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination Thanks for prompt reply. This is a Ubuntu 10.04 Kamailio 3.1 Server. Vijay TH -== * Date: Mon, 06 Aug 2012 06:35:04 -0400 From: Alex Balashov abalas...@evaristesys.com abalas...@evaristesys.com Subject: Re: [SR-Users] Kernel Droping SIP packet To: sr-users@lists.sip-router.org Message-ID: 17t1fd0fbly84yy2vuy8qlcp.1344249304...@email.android.com 17t1fd0fbly84yy2vuy8qlcp.1344249304...@email.android.com Content-Type: text/plain; charset=utf-8 You might consider pasting the actual output of: iptables -L -n This lists the actual rules straight from netfilter at runtime. I wouldn't worry too much about what some distro-specific config file or script says. Real truth comes from iptables itself.? -- Alex -- Sent from my Samsung mobile, and thus lacking in the refinement one might expect from a proper keyboard. Alex Balashov - Principal Evariste Systems LLC 235 E Ponce de Leon Ave Suite 106 Decatur, GA 30030 Tel: +1-678-954-0670 Web: http://www.evaristesys.com/Vijay Thakur vijay.tha...@loopmethods.com vijay.tha...@loopmethods.com wrote:Hi all, I have configure Kamailio 3.1.5 Server. All things are working fine. When i make a call from Soft phone (X-Lite) to iphone, all is working fine. But in other case call from iphone to Softphone is not working, even not ringing. During checking the logs i am getting the error: Aug? 3 04:36:09 localhost kernel: nf_ct_sip: dropping packetIN=eth0 OUT= MAC=f2:3c:91:ae:92:36:c8:4c:75:f5:c4:ff:08:00 SRC=122.xxx.xxx.77 DST=xx.116.xx.23 LEN=1482 TOS=0x00 PREC=0x00 TTL=51 ID=50183 DF PROTO=TCP SPT=15587 DPT=5060 SEQ=3285635734 ACK=3113844065 WINDOW=5763 RES=0x00 ACK URGP=0 OPT (0101080A000E20610932B25A) I have not implemented any firewall. You can check the out put of my iptables : http://pastebin.com/i3zUfVeb The SIP server is hosted at linnode. With thanks in advance. Sorry dual posting. Vijay TH * * ___ 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
Re: [SR-Users] kernel: nf_ct_sip: dropping packetIN= OUT=eth0 Error
Looks like your firewall is passing a state RELATED,ESTABLISHED and don't have a permit rule for a state NEW. Check your iptables or simply do a command: iptables-save /tmp/iptables.txtand paste this file (/tmp/iptables.txt) to pastebin 2012/8/3 Vijay Thakur vijay.tha...@loopmethods.com Hello all, I have configure Kamailio 3.1.5 Server. All things are working fine. When i make a call from Soft phone (X-Lite) to iphone, all is working fine. But in other case call from iphone to Softphone is not working, even not ringing. During checking the logs i am getting the error: Aug 3 04:36:09 localhost kernel: nf_ct_sip: dropping packetIN=eth0 OUT= MAC=f2:3c:91:ae:92:36:c8:4c:**75:f5:c4:ff:08:00 SRC=122.xxx.xxx.77 DST=xx.116.xx.23 LEN=1482 TOS=0x00 PREC=0x00 TTL=51 ID=50183 DF PROTO=TCP SPT=15587 DPT=5060 SEQ=3285635734 ACK=3113844065 WINDOW=5763 RES=0x00 ACK URGP=0 OPT (0101080A000E20610932B25A) This is server is hosted on Linnode. Kindly guide me to solve the problem -- Best Regards, Vijay Thakur (Assistant Manager - Networks) Mobile : +91 8744018065 Mail : vijay.tha...@loopmethods.com Loop IT Methods Private Limited 1st Floor, B-10, Sector-7, Noida, (U.P) India Ph: +91 120 305 3481,82 (INDIA), +1 347 468 8631 (USA), +61 390 011 178(AUS) Fax: +91 971 728 330 Web: www.loopmethods.com LOOP Disclaimer --** --**--**--- This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. --**--** --**--- __**_ 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
Re: [SR-Users] Over 100% of CPU usage on kamailio
do you have heavy traffic on that instance? How many children have you configured? Yes, but only a voip. There are over 10k calls per day. fork=yes children=4 This configuration is working during 1.5 months without any issues till now... What you can do is to attach with gdb to a process using lot of CPU and do the backtrace: gdb /path/to/kamailio __pid__ Replace __pid__ with the PID of process eating the CPU. Then run bt It may be a deadlock/infinite loop somewhere. I saw three processes in top, others were down with no much cpu usage. Is the SIP routing going fine anyhow when CPU usage is high? It hard to say 'yes', when looking to call graphs (rrd) I saw that the calls throughput was slow down... Looking to logs/PCAP's/etc I'm seeing that some of calls were processed though (perhaps some of working forks). But there were 75-80% of failed calls with 478 Request Terminated. Also by analyzing a PCAP flows I saw that more than 70% of calls were de-jittered, de-sync'ed in RTP timestamps, etc... How do you solve it, by restart or it just appears from time to time and solves itself periodically? I did not restarted kamailio during 20 days, following a charts this problem was re-appeared during 2 days. After restart of kamailio -- I can't see any issues for now, there is 0.00 on CPU by all of kamailio instance/forks/etc... Cheers, Daniel ___ 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
Re: [SR-Users] Over 100% of CPU usage on kamailio
Yes, I'll bt if it will appear again... Here is a version: # /opt/kamailio/sbin/kamailio -V version: kamailio 3.2.3 (x86_64/linux) flags: STATS: Off, USE_IPV6, USE_TCP, USE_TLS, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, DBG_QM_MALLOC, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 4MB poll method support: poll, epoll_lt, epoll_et, sigio_rt, select. id: unknown compiled on 15:37:11 Jun 9 2012 with gcc 4.4.3 2012/6/25 Daniel-Constantin Mierla mico...@gmail.com Hello, when it occurs again, get the backtrace with gdb using the PIDs from all kamailio processes eating lot of CPU. Btw, what version are you using (kamailio -V)? Cheers, Daniel On 6/25/12 9:43 AM, Konstantin M. wrote: do you have heavy traffic on that instance? How many children have you configured? Yes, but only a voip. There are over 10k calls per day. fork=yes children=4 This configuration is working during 1.5 months without any issues till now... What you can do is to attach with gdb to a process using lot of CPU and do the backtrace: gdb /path/to/kamailio __pid__ Replace __pid__ with the PID of process eating the CPU. Then run bt It may be a deadlock/infinite loop somewhere. I saw three processes in top, others were down with no much cpu usage. Is the SIP routing going fine anyhow when CPU usage is high? It hard to say 'yes', when looking to call graphs (rrd) I saw that the calls throughput was slow down... Looking to logs/PCAP's/etc I'm seeing that some of calls were processed though (perhaps some of working forks). But there were 75-80% of failed calls with 478 Request Terminated. Also by analyzing a PCAP flows I saw that more than 70% of calls were de-jittered, de-sync'ed in RTP timestamps, etc... How do you solve it, by restart or it just appears from time to time and solves itself periodically? I did not restarted kamailio during 20 days, following a charts this problem was re-appeared during 2 days. After restart of kamailio -- I can't see any issues for now, there is 0.00 on CPU by all of kamailio instance/forks/etc... Cheers, Daniel ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-us...@lists.sip-router.orghttp://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, Seattle, USA, Sep 23-26, 2012 - http://asipto.com/u/katu Kamailio Practical Workshop, Netherlands, Sep 10-12, 2012 - http://asipto.com/u/kpw ___ 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
[SR-Users] Over 100% of CPU usage on kamailio
Hello, Is there any reason to consume over 135% of CPU usage on kamailio ? (sreenshot: http://i48.tinypic.com/2u72hr8.png). Any ideas ? Thanks! ___ 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
Re: [SR-Users] [sr-dev] New developer - Vicente Hernando
Welcome, Vicente. I'm happy about to redis news! 2012/6/15 Vicente Hernando vherna...@systemonenoc.com Many thanks for the welcome! My current plans about ndb_redis module focus on creating an useful API so to export some functions to other modules. Then we are thinking here about creating a simpler dialplan module based on redis. We will be glad to share it with the community, and every feedback will be appreciated. Every change right now in ndb_redis module maintains backward compatibility, so no harm for current users. I will start sending commits very soon. Happy to contribute to this great project! Best regards, Vicente. On 06/15/2012 10:34 AM, Olle E. Johansson wrote: 15 jun 2012 kl. 08:44 skrev Daniel-Constantin Mierla: Hello, I am introducing Vicente as a new registered developer - he submitted lately very useful patches to ndb_redis module (e.g., array support in replies, redis free function for config), new ones being on the pipe -- he can present better his plans or you just watch the commits. Mainly he will be in charge with ndb_redis module, being a heavy user of it, but there have been submissions from him to other parts of code, we welcome improvements and new good features anywhere! Welcome and looking forward to your contributions! Welcome Vincente! /O __**_ 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-**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
Re: [SR-Users] sipcapture logging
Hello Daniel, 2012/6/12 Daniel-Constantin Mierla mico...@gmail.com Hello, I am a bit confused now. sipcapture role is to store the SIP signaling messages in database for the purpose of later analysis -- you can export pcap from the database later. Well, I don't have enough experience with sipcapture module but (maybe I'm wrong) I don't think it is a good idea to store so huge data in mysql in high loading environment. Rather that I would suggest to keep them in some flat databases, like mongo, redis, kassandra, etc... Eventually, by looking to the sources, I don't think there is another way except mysql... What is the obsolete logging system you think about? If you look to log custom info messages, then see the xlog module: * http://kamailio.org/docs/modules/3.3.x/modules_k/xlog.html You can print your own message to syslog (or stderr), in the format you wish. Yes, I'm using syslog but personally it's a backward way. Nowadays there is a lot of logging frameworks. I think that, unofficial, log4 (where - one of c, cpp, java, python, etc) already a standard of logging system. When using syslog/logrotate - the only one way to modify a root settings, no way to configure only userland part by configuring a logging strategy inside application like a many software allows. Cheers, Daniel On 6/12/12 11:54 AM, Konstantin M. wrote: Hello Daniel, No I don't want to store in pcap format, I have it already. I would like to have a text logs instead of database. About log format, I would like to have a functionality like log4cpp, for example: # Call Logging log4cplus.appender.CALL_LOG_APPENDER=log4cplus::NullAppender log4cplus.appender.CALL_LOG_APPENDER.Directory=logs/call-logs log4cplus.appender.CALL_LOG_APPENDER.ImmediateFlush=true log4cplus.appender.CALL_LOG_APPENDER.layout=log4cplus::PatternLayout log4cplus.appender.CALL_LOG_APPENDER.layout.ConversionPattern=%D{%Y-%m-%d %H:%M:%S:%%q} [%t] %p - %c : %m%n I'm a very curious why we still have so absolete logging system ? There are too many cute logging frameworks. Why we don't switch to some soft of log4c or log4cpp ? 2012/6/12 Daniel-Constantin Mierla mico...@gmail.com Hello, On 6/9/12 8:59 PM, Konstantin M. wrote: Hello, Is it possible to log SIP sessions using sipcapture module to log files by log format instead of database ? what do you mean by log format? If you just want to store pure pcap files, then you can use tools such as ngrep, wireshark/tshark. Cheers, Daniel -- Daniel-Constantin Mierla - http://www.asipto.com http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio Advanced Training, Seattle, USA, Sep 23-26, 2012 - http://asipto.com/u/katu Kamailio Practical Workshop, Netherlands, Sep 10-12, 2012 - http://asipto.com/u/kpw ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-us...@lists.sip-router.orghttp://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, Seattle, USA, Sep 23-26, 2012 - http://asipto.com/u/katu Kamailio Practical Workshop, Netherlands, Sep 10-12, 2012 - http://asipto.com/u/kpw ___ 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
[SR-Users] sipcapture logging
Hello, Is it possible to log SIP sessions using sipcapture module to log files by log format instead of database ? Thanks! ___ 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
Re: [SR-Users] kamailio debug send messages
Hi Anca, I fixed this problem with your help. A modified patch is attached. Thanks! 2012/5/16 Konstantin M. evilz...@gmail.com Hi Anca, Yes, I will explain. Let's assume we have a kamailio config, attached as main.cfg (it's a very simplified, I have excluded a lot of customization here). Debug log attached as log1.txt is a clean log of running that config without your patch. With your patch was nothing changed. After investigation of code I see that a logic is not going to the place you've added in the patch. When I changed your patch this way (see attached forward.c.diff), I see that a logic is going to 'skip'. See a file attached as log2.txt with my modified patch. And finally, you can see what we're missing here, a difference between/after a 'skip' extending (attached as log.diff). Thanks! 2012/5/16 Anca Vamanu anca.vam...@1and1.ro Hi Konstantin, Can you tell me exactly what you are calling in onsend_route and how you observe it is not working? Regards, Anca On 05/15/2012 04:55 PM, Konstantin M. wrote: Hi Anca, I've tested your patch and I don't think it's working. At least I was noticed that a logic is going to 'skip' label on 183 sdp: /* check modules response_f functions */ for (r=0; rmod_response_cbk_no; r++) if (mod_response_cbks[r](msg)==0) goto skip; __**_ 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 kamailio-3.2.3--forward.c.diff Description: Binary data ___ 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
Re: [SR-Users] kamailio debug send messages
Hi Anca, I've tested your patch and I don't think it's working. At least I was noticed that a logic is going to 'skip' label on 183 sdp: /* check modules response_f functions */ for (r=0; rmod_response_cbk_no; r++) if (mod_response_cbks[r](msg)==0) goto skip; 2012/5/15 Anca Vamanu anca.vam...@1and1.ro ** Hi Konstantin, I have attached the patch that allows calling onsend route also for replies. After the 3.3 release is done, I will commit it also upstream. Regards, Anca On 05/14/2012 09:00 PM, Konstantin M. wrote: Hi Marius, My opinion that a replies should be routed to onsend_route after onreply_route in order unless they are dropped in onreply_route. It's by a common sense I think. All the traffic that is being sent/replied/forwarded and so on (in a short, all outgoing traffic) should trigger some callback. A good point to use onsend_route for replies/forwardings/etc too I think. There is a good reason (at least to me) which I need to see/parse them: my outgoing provider has a highly unwanted feature to us: forked calls. I have some program which is analyzing a remote leg connection state (no answer/busy/reorder, etc...) and this app is also analyzing all RTP which are sending within SDP on 180/181/183 messages. Let's say that Telco can send a multiple 183 SDP with a different IP/audio ports (c=/m=) and our application (which hasn't support for forking calls) is receive a multiple rtp streams to the same rtp port. Sure thing I did a proper logic to drop 1 of 180/181/183 sdp with a different contact info but I need to capture all the outgoing traffic that is routing to outbound from kamailio. I have to use wireshark just to see which replies are being set instead of just log them into a syslog/file. Could you please share with me that patch ? Thanks, 2012/5/14 Marius Zbihlei marius.zbih...@1and1.ro Hello, Normally, onsend_route is not triggered for replies, only for messages. If there are some good reasons behind it, I don't know, as we have a simple patch that enables this (we are reviewing it before pushing it to upstream). Of course, no changes to the messages/replies are permitted ... So again, is there a cause why onsend_route is not triggered for replies atm? -- Zbihlei Marius Head of Linux Development Services Romania 11 Internet Development srlTel KA: 754-9152 Str Mircea Eliade 18Tel RO: +40-31-223-9152 Sect 1, Bucuresti mailto: marius.zbih...@1and1.ro 71295, Romania ___ 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
Re: [SR-Users] kamailio debug send messages
Hi Daniel, For some reasons, onsend_route doesn't triggered when transfering 100,180,183, etc... 2012/5/11 Daniel-Constantin Mierla mico...@gmail.com Hello, debug messages printed to syslog from the source code are because the developer needed/wanted them for troubleshooting. As an admin, you have the option of using xlog to print what ever messages you want. In 3.1.x there is onsend_route to see outgoing requests via $snd(...) variable. But if you want to get the sip traffic going through kamailio, better use siptrace module which stores requests/replies in database table. Cheers, Daniel -- Daniel-Constantin Mierla - http://www.asipto.comhttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda ___ 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
Re: [SR-Users] change/replace anything in body message
Thanks Daniel, it's works! 2012/4/25 Daniel-Constantin Mierla mico...@gmail.com Hello, On 4/24/12 6:27 PM, Konstantin M. wrote: Hi, Is there a way to change/replace anything in body message ? Used: replace_body_atonce, replace_body_all, replace_all, subst_body. Nothing is working. what is not working exactly? Saying what you tried and the results will help providing further hints. I am using some of them and they are working fine. If you do a change and test for that change immediately, then it is how it's done internally. You would have to do msg_apply_changes() if you need the changes immediately, otherwise they are applied when the message is forwarded. Cheers, Daniel -- Daniel-Constantin Mierla - http://www.asipto.com http://twitter.com/#!/miconda - http://www.linkedin.com/in/**micondahttp://www.linkedin.com/in/miconda ___ 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
[SR-Users] Config include
Hi, I would like (and a many people here I believe) to have a functional of including a multiple config files like (foe example asterisk's #include path/to/some/config.conf). Is it possible to implement a such feature ? Thanks! ___ 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
Re: [SR-Users] Config include
Hi Andrew, I have missed that. Thank you very much! 2012/5/9 Andrew Pogrebennyk apogreben...@sipwise.com Hello, It is already there, see http://www.kamailio.org/dokuwiki/doku.php/core-cookbook:3.1.x On 05/09/2012 06:04 PM, Konstantin M. wrote: Hi, I would like (and a many people here I believe) to have a functional of including a multiple config files like (foe example asterisk's #include path/to/some/config.conf). Is it possible to implement a such feature ? Thanks! ___ 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
Re: [SR-Users] Config include
After including a part of main config to included file -- I got a several errors like: 0(1582) ERROR: core [cfg.y:3393]: cfg. parser: failed to find command is_method 0(1582) : core [cfg.y:3532]: parse error in config file /opt/kamailio/etc/kamailio/debug.cfg, line 4, column 55: unknown command, missing loadmodule? 0(1582) ERROR: core [cfg.y:3393]: cfg. parser: failed to find command xlog 0(1582) : core [cfg.y:3532]: parse error in config file /opt/kamailio/etc/kamailio/debug.cfg, line 9, column 101: unknown command, missing loadmodule? ... A part of included file /opt/kamailio/etc/kamailio/debug.cfg: -- route[DEBUG] { if (is_method(PUBLISH|SUBSCRIBE|REGISTER|OPTIONS)) { return; } xlog(L_INFO, *** UNHANDLED *** SIP Request: method [$rm], status [$rs] from [$fu] to [$tu]\n); } route[DEBUG_FROM] { xlog(L_NOTICE, [$mi] Received SIP Message (method [$rm]) ($ml[$cl] bytes) from $Ri:$Rp ($si:$sp):\n$mb\n); } ... Do I have to duplicate the section of modules to that included file or I'm wrong ? 2012/5/9 Konstantin M. evilz...@gmail.com Hi Andrew, I have missed that. Thank you very much! 2012/5/9 Andrew Pogrebennyk apogreben...@sipwise.com Hello, It is already there, see http://www.kamailio.org/dokuwiki/doku.php/core-cookbook:3.1.x On 05/09/2012 06:04 PM, Konstantin M. wrote: Hi, I would like (and a many people here I believe) to have a functional of including a multiple config files like (foe example asterisk's #include path/to/some/config.conf). Is it possible to implement a such feature ? Thanks! ___ 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
Re: [SR-Users] Config include
Thank you, I found a logical error in order. Also would be good if lex parser can understand a wildmasks, like: include_file modules/*.cfg... 2012/5/9 Andrew Pogrebennyk apogreben...@sipwise.com Konstantin, You should put the include_file directive after loadmodule and modparam directives. So it can be either before main route block or at the bottom of your main kamailio.cfg. On 05/09/2012 06:48 PM, Konstantin M. wrote: After including a part of main config to included file -- I got a several errors like: 0(1582) ERROR: core [cfg.y:3393]: cfg. parser: failed to find command is_method 0(1582) : core [cfg.y:3532]: parse error in config file /opt/kamailio/etc/kamailio/debug.cfg, line 4, column 55: unknown command, missing loadmodule? 0(1582) ERROR: core [cfg.y:3393]: cfg. parser: failed to find command xlog 0(1582) : core [cfg.y:3532]: parse error in config file /opt/kamailio/etc/kamailio/debug.cfg, line 9, column 101: unknown command, missing loadmodule? ___ 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
Re: [SR-Users] json and jsonrpc-c
Hi Ron, Don't need to modify anything. Just install a proper -devel packages and libs. For example if you running debian, just do: aptitude install libjson0 libjson0-dev libevent-dev libxmlrpc-c3 libxmlrpc-c3-dev 2012/5/6 Ron McLeod ron.kamai...@mcleodnet.com I set the PKG_CONFIG_PATH environment variable to /usr/local/lib/pkgconfig . After that it built fine. From: Ron McLeod [mailto:ron.kamai...@mcleodnet.com] Sent: Saturday, May 05, 2012 9:24 PM To: 'sr-users@lists.sip-router.org' Subject: json and jsonrpc-c I am trying to build json and jsonrpc-c for kamailio-3.2.3 from a fresh download of the source tarball but not having success. I modified the Makefile to include the two modules in the standard package, and remove the line which excluded them from building. I see the code for the modules in the source. Also, I have already built and installed the two dependencies – libevent and libjson. Could someone take a look at the make out and see if there is any indication of what I might be doing wrong? http://www.siplabs.net/tracebin/make_and_install_output.txt Thanks – Ron ___ 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
[SR-Users] change/replace anything in body message
Hi, Is there a way to change/replace anything in body message ? Used: replace_body_atonce, replace_body_all, replace_all, subst_body. Nothing is working. Thanks, ___ 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
[SR-Users] replace body content
Hi, Is there a way to change/replace anything in body message ? Used: replace_body_atonce, replace_body_all, replace_all, subst_body. Nothing is working. Thanks, ___ 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