[SR-Users] kamailio 3.0.1 rpm for centos 5.5
Hello, for those interested, kamailio 3.0.1 rpm packages for centos 5.5 are available for download at: http://www.kamailio.org/pub/kamailio/3.0.1/packages/centos-5.5/ Cheers, Daniel -- Daniel-Constantin Mierla Kamailio (OpenSER) Advanced Training Miami, Fl, USA - June 21-23, 2010 http://www.asipto.com/index.php/kamailio-advanced-training/ ___ 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] could not bind to the TM-Module
Hello, do you have it from tarball/packages or from GIT? There was a fix for binding to tm module after packaging 3.0.1. For now you would need to use git version. There will be soon an official 3.0.2. Cheers. Daniel On 5/21/10 3:08 PM, Javier Menendez wrote: Hi, I have been configuring an Kamailio 3.0.1, with the dispatcher module. Everything seems to work just fine but when a gateway is in Probing mode it remains in that state for ever. checking the logs I found some weird messages, I think that is the rrot cause of the problem but I have no clue how to solve it. These are the messages I mentioned before May 21 14:56:34 localhost /usr/local/sbin/kamailio[21539]: DEBUG: core [sr_module.c:516]: find_export_record: load_tm not found May 21 14:56:34 localhost /usr/local/sbin/kamailio[21539]: WARNING: dispatcher [dispatcher.c:358]: could not bind to the TM-Module, automatic re-activation disabled. May 21 14:56:34 localhost /usr/local/sbin/kamailio[21539]: DEBUG: core [sr_module.c:871]: DEBUG: init_mod: sl May 21 14:56:34 localhost /usr/local/sbin/kamailio[21539]: DEBUG: core [statistics.c:105]: statistics manager successfully initialized May 21 14:56:34 localhost /usr/local/sbin/kamailio[21539]: DEBUG: core [md5utils.c:87]: DEBUG: MD5 calculated: f8f2ab2c1295e90ed7dbb499b30f44b2 May 21 14:56:34 localhost /usr/local/sbin/kamailio[21539]: DEBUG: core [sr_module.c:506]: find_export_record: found load_tm in module tm [/usr/local/lib/kamailio/modules/tm.so] As you may see load_tm is not found in the dispatcher but it is found in md5utils?? These are the modules included mpath=/usr/local/lib/kamailio/modules/:/usr/local/lib/kamailio/modules_k/ loadmodule tm.so loadmodule dispatcher.so loadmodule sl.so loadmodule db_mysql.so loadmodule mi_fifo.so loadmodule rr.so loadmodule pv.so loadmodule maxfwd.so loadmodule usrloc.so loadmodule registrar.so loadmodule textops.so loadmodule uri_db.so loadmodule siputils.so loadmodule xlog.so loadmodule acc.so loadmodule auth.so loadmodule auth_db.so loadmodule permissions.so loadmodule drouting.so Any clue? ___ 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 Kamailio (OpenSER) Advanced Training Miami, Fl, USA - June 21-23, 2010 http://www.asipto.com/index.php/kamailio-advanced-training/ ___ 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] could not open module kamailio
Hello, On 5/19/10 2:23 PM, Bruno Bresciani wrote: I compiled the route.so module to the kamailio but when I start kamailio the follow error is generated in the log file: ERROR:core:sr_load_module: could not open module /home2/local/kamailio/lib/kamailio/modules/route.so: /home2/local/kamailio/lib/kamailio/modules/route.so: undefined symbol: add_hash Someone can help me? you use a function named add_hash but you do not link against the library offering it. What do you include to have the add_hash function? Cheers, Daniel -- Daniel-Constantin Mierla Kamailio (OpenSER) Advanced Training Miami, Fl, USA - June 21-23, 2010 http://www.asipto.com/index.php/kamailio-advanced-training/ ___ 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] could not bind to the TM-Module
Thanks for the info!! It was from tar.gz so I guess I am affected by the bug On Tue, May 25, 2010 at 8:19 PM, Daniel-Constantin Mierla mico...@gmail.com wrote: Hello, do you have it from tarball/packages or from GIT? There was a fix for binding to tm module after packaging 3.0.1. For now you would need to use git version. There will be soon an official 3.0.2. Cheers. Daniel On 5/21/10 3:08 PM, Javier Menendez wrote: Hi, I have been configuring an Kamailio 3.0.1, with the dispatcher module. Everything seems to work just fine but when a gateway is in Probing mode it remains in that state for ever. checking the logs I found some weird messages, I think that is the rrot cause of the problem but I have no clue how to solve it. These are the messages I mentioned before May 21 14:56:34 localhost /usr/local/sbin/kamailio[21539]: DEBUG: core [sr_module.c:516]: find_export_record: load_tm not found May 21 14:56:34 localhost /usr/local/sbin/kamailio[21539]: WARNING: dispatcher [dispatcher.c:358]: could not bind to the TM-Module, automatic re-activation disabled. May 21 14:56:34 localhost /usr/local/sbin/kamailio[21539]: DEBUG: core [sr_module.c:871]: DEBUG: init_mod: sl May 21 14:56:34 localhost /usr/local/sbin/kamailio[21539]: DEBUG: core [statistics.c:105]: statistics manager successfully initialized May 21 14:56:34 localhost /usr/local/sbin/kamailio[21539]: DEBUG: core [md5utils.c:87]: DEBUG: MD5 calculated: f8f2ab2c1295e90ed7dbb499b30f44b2 May 21 14:56:34 localhost /usr/local/sbin/kamailio[21539]: DEBUG: core [sr_module.c:506]: find_export_record: found load_tm in module tm [/usr/local/lib/kamailio/modules/tm.so] As you may see load_tm is not found in the dispatcher but it is found in md5utils?? These are the modules included mpath=/usr/local/lib/kamailio/modules/:/usr/local/lib/kamailio/modules_k/ loadmodule tm.so loadmodule dispatcher.so loadmodule sl.so loadmodule db_mysql.so loadmodule mi_fifo.so loadmodule rr.so loadmodule pv.so loadmodule maxfwd.so loadmodule usrloc.so loadmodule registrar.so loadmodule textops.so loadmodule uri_db.so loadmodule siputils.so loadmodule xlog.so loadmodule acc.so loadmodule auth.so loadmodule auth_db.so loadmodule permissions.so loadmodule drouting.so Any clue? ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-us...@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users -- Daniel-Constantin Mierla Kamailio (OpenSER) Advanced Training Miami, Fl, USA - June 21-23, 2010http://www.asipto.com/index.php/kamailio-advanced-training/ ___ 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 3.0.2 for Thu, May 27, 2010
Hello, I am planning to release kamailio 3.0.2 this Thursday. There were some fixes since 3.0.1 that worth to be packaged. If you have major reports for current stable version, please write to sr-...@lists.sip-router.org Cheers, Daniel -- Daniel-Constantin Mierla Kamailio (OpenSER) Advanced Training Miami, Fl, USA - June 21-23, 2010 http://www.asipto.com/index.php/kamailio-advanced-training/ ___ 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] [sr-dev] kamailio 3.0.2 for Thu, May 27, 2010
Daniel-Constantin Mierla writes: I am planning to release kamailio 3.0.2 this Thursday. There were some fixes since 3.0.1 that worth to be packaged. If you have major reports for current stable version, please write to sr-...@lists.sip-router.org in all versions, next_contacts() and next_gw() don't work properly, i.e., same contact can be tried more than once. cannot fix until more info is available from tm module or until r-uri can be always re-written. -- juha ___ 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 3.0.2 for Thu, May 27, 2010
On 5/25/10 8:51 PM, SIP wrote: Daniel-Constantin Mierla wrote: Hello, I am planning to release kamailio 3.0.2 this Thursday. There were some fixes since 3.0.1 that worth to be packaged. If you have major reports for current stable version, please write to sr-...@lists.sip-router.org Cheers, Daniel Is this a drop-in upgrade from 3.0.1 (i.e. recompile modules and core and keep the rest in place)? yes, changes to last number in version string mean that config language and database structure are the same. This is a minor release, bringing only fixes to the code. So upgrading from 3.0.0 or 3.0.1 to 3.0.2 is exactly what you said, just recompile and reinstall modules and core, keep the rest in place. Cheers, Daniel -- Daniel-Constantin Mierla Kamailio (OpenSER) Advanced Training Miami, Fl, USA - June 21-23, 2010 http://www.asipto.com/index.php/kamailio-advanced-training/ ___ 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 3.0.2 for Thu, May 27, 2010
On 5/25/10 8:48 PM, Juha Heinanen wrote: Daniel-Constantin Mierla writes: I am planning to release kamailio 3.0.2 this Thursday. There were some fixes since 3.0.1 that worth to be packaged. If you have major reports for current stable version, please write to sr-...@lists.sip-router.org in all versions, next_contacts() and next_gw() don't work properly, i.e., same contact can be tried more than once. cannot fix until more info is available from tm module or until r-uri can be always re-written. this is the case you reported related to failure of t_relay() in main route block, right? Cheers, Daniel -- Daniel-Constantin Mierla Kamailio (OpenSER) Advanced Training Miami, Fl, USA - June 21-23, 2010 http://www.asipto.com/index.php/kamailio-advanced-training/ ___ 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] sipp and stateful transaction problem
On Tue, May 25, 2010 at 11:10 AM, Daniel-Constantin Mierla mico...@gmail.com wrote: Hello, On 5/22/10 2:22 AM, JR Richardson wrote: On Fri, May 21, 2010 at 4:46 PM, Daniel-Constantin Mierla mico...@gmail.com wrote: Hello, On 5/21/10 10:47 PM, JR Richardson wrote: Hi All, I'm doing some testing with kamailio 1.5: kamailio1:/etc/kamailio# kamailio -V version: kamailio 1.5.4-notls (i386/linux) flags: STATISTICS, USE_IPV6, USE_TCP, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, PKG_SIZE 4194304 poll method support: poll, epoll_lt, epoll_et, sigio_rt, select. svnrevision: 2:6005M @(#) $Id: main.c 5608 2009-02-13 16:48:17Z henningw $ main.c compiled on 10:14:11 May 18 2010 with gcc 4.3.2 Using dispatcher module trying to load balance SIP calls across some Asterisk servers. I have it working fine when I test in this scenario: sip phone dial outasteriskkamailioround robin to several asterisk servers This works stateful and stateless, handles everything gracefully. This scenario is giving me fits: sipp dial outkamailioround robin to several asterisk servers I get retransmits on every call back to sipp with errors like Discarding message which can't be mapped to a known SIPp call and SIP/2.0 481 Call leg/transaction does not exist This happens with kamailio setup stateful or stateless. I'm wondering if sipp is the problem or just doesn't play well with kamailio? I've kept the config as simple as possible for testing, it is listed here http://pastebin.com/BZ8hJvJv Here is my sipp usage: sipp -sn uac 10.10.12.53 -i 10.10.14.97 -s 55 -d 7000 -l 10 -r 1 -trace_err Any insight would be appriciated. the problem is in your sipp scenario. The uac calls do not map to uas. kamailio does not reply 481, check the uas scenario, that is the one that sends back the 481. Cheers, Daniel -- Daniel-Constantin Mierla Kamailio (OpenSER) Advanced Training Miami, Fl, USA - June 21-23, 2010 http://www.asipto.com/index.php/kamailio-advanced-training/ Thanks Daniel, I reveiwed the sipp docs, '-sn uas' just sits there as a responder, it will not initiate calls to kamailio. I don't understand what you are getting at? How would I use this type of scenario to test? keeping the mailing list cc-ed is recommended, since others can respond faster and new people can benefit of the discussion. What I wanted to say is that kamailio does not reply 481. So the problem is in the responder of requests sent by UAC and forwarded by Kamailio. Somehow, the dialog is destroyed before the BYE (or other in-dialog request) is sent by UAS. If you can grab the SIP trace of such call (e.g., using ngrep on kamailio server), I can give more hits (try to select the sip flow for one such call only, sending full sip trace will be too big). Cheers, Daniel Thanks Daniel. I've moved on from the Dispatcher and now working with the carrierroute. The first thing I notice is the transactions, being stateful has resolved the issue I was seeing with the dispatcher and sipp sending invites. So and I don't have the dispatcher setup to collect sip traces, best I can tell is either my configuration or the lack of stateful tracking in the dispatcher module was the cause of my original post. I'm going to move the discussion along to a new topic for now, thanks. JR -- JR Richardson Engineering for the Masses ___ 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] Calculate ha1 with mysql trigger
Hi Ole, do you know what is the min mysql version required for trigger support? It is useful, but I am not sure we can add it to db table definition, being based on a generic xml specification format. maybe the best for now is to add a wiki page for it at: http://www.kamailio.org/dokuwiki/doku.php Practical examples is a good section (just add under 'example:' namespace). Thanks, Daniel On 5/18/10 4:21 PM, Ole Kaas wrote: Hello, When editing the subscriber table using phpmyadmin, updating the ha1 fields are no fun and error prone. The trigger below will calculate the hashes if the input fields are left empty. Navigate to the subscriber table in phpmyadmin and drop the code in the query field under the SQL tab. Remeber to set the delimiter to // /Ole DROP TRIGGER IF EXISTS calcha1 // CREATE TRIGGER calcha1 BEFORE INSERT ON subscriber FOR EACH ROW BEGIN IF NEW.ha1 = THEN SET NEW.ha1 = MD5(CONCAT(NEW.username,:,NEW.domain,:,NEW.password)); END IF; IF NEW.ha1b = THEN SET NEW.ha1b = MD5(CONCAT(NEW.username,@,NEW.domain,:,NEW.domain,:,NEW.password)); END IF; END// ___ 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 Kamailio (OpenSER) Advanced Training Miami, Fl, USA - June 21-23, 2010 http://www.asipto.com/index.php/kamailio-advanced-training/ ___ 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] permissions module
Hello, On 5/17/10 2:26 PM, Asim Riaz wrote: Hello List, from the documentation, permissions.allow, allows the calls either by matching From-URI or R-URI and permission.deny denies the call from matching uri. the matching is done on both From-URI and R-URI -- like allow call from X to Y Do I need to divide the file into different sections, for R-URI and for From-URI? The format is: From-URI-RegExpList : R-URI-RegExpList See the sources, modules_k/permissions/config/ for some examples. Not sure exact syntax could someone explain me that if I want to match in permissions.allow if a phone 10.10.10.10 dial(r-uri) 1234 allow it and everything else is blocked? What is the preference does kamailio check for permissions.deny first if there is no matching then checks permissions.allow? First is checked the allow file, if an entry is matched the the call is allowed, if no match, then deny file is checked, if an entry is matched, the call is denied. If no match then the call is allowed. Cheers, Daniel Thanks in advance, Asim ___ 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 Kamailio (OpenSER) Advanced Training Miami, Fl, USA - June 21-23, 2010 http://www.asipto.com/index.php/kamailio-advanced-training/ ___ 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] A Couple of Questions about carrierroute moduel
Hi All, I'm testing carrierroute module on version: kamailio 1.5.4-notls (i386/linux). I'm distributing calls to a group of Asterisk servers, all in the same carrier and domain, wanted to load balance the calls and I'm curious how this works. I see the 'probability' parameter in the carrierroute table and set it to equal value across all servers, I have 4 servers I'm sending calls to, so I set each prob value to '0.25'. I'm testing with sipp and hashing over call_id so this is the same for every call. I send 40 calls and the distribution of calls to the asterisk servers are 11, 12, 6, 11, pretty close to even but not 100%. How does the distribution algorithm work for carrieroute? Does it statefully track all active calls and load balance across each server in destination group? Is there another algorithm that can offer that can get closer to a round robin effect? Another question is do I need to include the record_route() and the t_check_trans() functions prior to calling the carrierroute functions? I see in the debug DBG:core:forward_reply: found module tm, passing reply to it and dialogs seem to process fine, so does the carrierroute module handle those requirements for stateful processing? Thanks. JR -- JR Richardson Engineering for the Masses ___ 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