Hello,
I'd like to use Kamailio in from of FreeSWITCH to handle NAT traversal. Is there a way I can allow freeswitch to handle all auth but store the registration in usrloc as I need to send an options ping to the endpoints?
My thought is something like this:
natted endpoint -> kamailio -> freeswitch
If the response is 200OK, save the registration.
Thanks,
Spencer
Hey All,
I was wondering if anyone could point me to the right direction on the
following issue:
I use registrar with path to store contacts after main proxy. There I
have properly stored received db field (original address of the NAT
router).
When I query the registrar, I get the user contact details (natted ones)
in 302 redirect. However at this point I cannot access received avp (or
I did not find a way yet, except calling reg_fetch_contacts which I
would prefer not to since it doubles the work lookup does).
Is there any catch which could save me in this scenario? After loopkup()
is there any pseudovariable which I can inspect to find out user's
contact data? Any other way to extract received contact data out of
contact info?
Thanks in advance for any kind of tip!
DanB
Hi,
I'm using OpenIMSCore based on the SER. At the moment I try to add
SMS-GW to it.
I've found, that SER has sms module, and I tried to use it. But,
unfortunately, I couldn't make it work.
It's not very clear for me how SIP MESSAGEs can be routed to the sms
module. This module works not as application server (or I'm wrong?)
At the moment I have such configuration in the scscf.cfg:
==============================
modparam("sms","modems","Nokia [d=/dev/ttyACM0;b=9600]")
modparam("sms","networks","D1[m=10]")
modparam("sms","links","Nokia[D1]")
modparam("sms","domain","open-ims.test")
modparam("sms","max_sms_parts",3)
modparam("sms","use_contact",1)
# main routing logic
route{
if(method=="MESSAGE"){
sms_send_msg_to_net("D1");
}
...
}
==============================
As a hardware GSM gateway my cell phone is using.
As I see, nothing happens when s-cscf processes SIP MESSAGEs. I don't
see that these messages are forwarded to the sms module, or smth like
that.
Final question - is it possible to use this module as IP-SMS-GW for
the OpenIMSCore? And how?
I would be very appreciated for any help.
Thank you in advance.
--
Oleksandr Shchirskyi | Software Testing Engineer
GlobalLogic Inc. | Innovation by Design
ARGENTINA | CHILE | CHINA | INDIA | ISRAEL | UKRAINE | UK | USA
Office: +044.492.96.95, (ext. 4296)
www.globallogic.com
Hi,
I'd like to implement a couple of helper functions for time handling,
e.g. checking day of week, day of month etc. from within the kamailio
config file. What would you prefer, a new module ("timeutils" maybe?) or
adding it to cfgutils (there are already time-based functions there like
sleep and usleep)?
The idea is to implement time based call-forwards, and an approach could
be to provision various time-related values in usr_preferences table,
and then check it in the config. For example, when doing call-forwards
from Monday to Friday only, I could put this into usr_preferences:
attribute: cf_weekday
value: [1, 2, 3, 4, 5] (each entry is a separate row in usr_preferences)
And in kamailio config, I'd call this:
avp_db_load(...);
if(is_weekday("$avp(s:cf_weekday)")) { do CF }
So is_weekday would iterate over the entries in the avp list and return
true if the weekday at the time of routing matches an entry in the list.
A module config param could control whether to use gmtime or localtime
for matching.
Does this make sense? Suggestions for other approaches? I'd rather
prefer to do it directly in config instead of using some external
interpreter like lua, python etc.
Andreas
Dear SamyGo
Thanks for your response.
Yes you're right a folder called rtpproxy.so was left in the
directory /usr/local/lib/kamailio/modules_k that had not been updated to
the date kamailio was compiled and once i deleted it everything was then
ok. I checked in directory /usr/local/lib/kamailio/modules and there i
found a new rtpproxy.so folder that was updated on the installation date.
Seems like rtpproxy.so in the new version is installed
in /usr/local/lib/kamailio/modules and not
in /usr/local/lib/kamailio/modules_k. Is that correct?
Well everything is working ok now!
Thanks for your assistance!
Regards
Phillip
> Message: 4
> Date: Thu, 16 Aug 2012 13:29:35 +0500
> From: SamyGo <govoiper(a)gmail.com>
> Subject: Re: [SR-Users] rtpproxy module issue
> To: "SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) -
> Users Mailing List" <sr-users(a)lists.sip-router.org>
> Message-ID:
> <CAJUJwtjB7fmm1pa60wJMLPPte=
> Qu_AeZ1z2aqysQaZch_Pb+dQ(a)mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi,
>
> Though not an expert, I got few things in mind for your case. In the
> upgrade process the modules folder remain the same ? right ! if that is so
> is there any chances that the new installation skipped installation of
> newer rtpproxy module and hence the old version rtpproxy module could've
> been left in place. That could be a reason for not identifying the older
> module.
> This whole speculation could be wrong if the newer version supports the
> older version modules.
>
> BR
> Sammy
>
>
> On Thu, Aug 16, 2012 at 10:56 AM, phillman25 <phillman25(a)gmail.com> wrote:
>
> > Dear List
> >
> > I have just upgraded from kamailio V3.2.2 to kamailio V 3.3.1
> > However, when trying to start kamailio its giving me the below error:
> >
> >
> > ERROR: <core> [sr_module.c:572]: ERROR: load_module: could not open
> module
> > </usr/local/lib/kamailio/modules_k/rtpproxy.so>:
> > /usr/local/lib/kamailio/modules_k/rtpproxy.so: undefined symbol:
> qm_realloc
> > : <core> [cfg.y:3591]: parse error in config file
> > /usr/local/etc/kamailio/kamailio.cfg, line 245, column 12-24: failed to
> > load module
> >
> >
> > Does anyone know why rtpproxy module cannot be loaded?
> >
> >
> > This is the output of ldd /usr/local/lib/kamailio/modules_k/rtpproxy.so:
> >
> >
> >
> > shell-init: error retrieving current directory: getcwd: cannot access
> > parent directories: No such file or directory
> > linux-gate.so.1 => (0x00276000)
> > libkmi.so.1 => /usr/local/lib/kamailio/libkmi.so.1 (0x00b64000)
> > libkcore.so.1 => /usr/local/lib/kamailio/libkcore.so.1
> (0x00768000)
> > libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0x00277000)
> > /lib/ld-linux.so.2 (0x00114000)
> >
> >
> >
> > Regards Phillip
> >
> > _______________________________________________
> > SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> > sr-users(a)lists.sip-router.org
> > http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
> >
> >
>
Hi All,
Does Kamailio has a mandatory requirement for SIP Invite to have Route
header? Although RFC-3261 doesn't have.
My requirement is to take out route header from the client if I do that I
don't see PRACK being send out from Kamilio to Media GW which causes call
drop eventually in 15sec. Any thoughts..........
BR, Apoorv
Dear List
I have just upgraded from kamailio V3.2.2 to kamailio V 3.3.1
However, when trying to start kamailio its giving me the below error:
ERROR: <core> [sr_module.c:572]: ERROR: load_module: could not open module
</usr/local/lib/kamailio/modules_k/rtpproxy.so>:
/usr/local/lib/kamailio/modules_k/rtpproxy.so: undefined symbol: qm_realloc
: <core> [cfg.y:3591]: parse error in config file
/usr/local/etc/kamailio/kamailio.cfg, line 245, column 12-24: failed to
load module
Does anyone know why rtpproxy module cannot be loaded?
This is the output of ldd /usr/local/lib/kamailio/modules_k/rtpproxy.so:
shell-init: error retrieving current directory: getcwd: cannot access
parent directories: No such file or directory
linux-gate.so.1 => (0x00276000)
libkmi.so.1 => /usr/local/lib/kamailio/libkmi.so.1 (0x00b64000)
libkcore.so.1 => /usr/local/lib/kamailio/libkcore.so.1 (0x00768000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0x00277000)
/lib/ld-linux.so.2 (0x00114000)
Regards Phillip
Hey Guys,
Not sure if important, but what I noticed is that the latest debian
stable as well as latest 33 packages, they both install still kamailio
3.3.0. In order to get 3.3.1 I needed to use nightly build packages.
Is this what is desired?
Thanks,
DanB
Hey Guys,
Something I noticed after upgrading Kamailio from 3.3.0 to 3.3.1.
Having the following code:
"""
if ds_is_from_list() {
xlog("Request coming from SCloud");
xlog("Checking grp_internal, having: $avp(s:dsgrp)");
}
"""
will produce the following output to syslog (dsgrp null instead of group
id):
"""
Aug 15 11:24:28 PrxyDev /usr/sbin/kamailio[2818]: ERROR: <script>:
Request coming from SCloud
Aug 15 11:24:28 PrxyDev /usr/sbin/kamailio[2818]: ERROR: <script>:
Checking grp_internal, having: <null>
"""
I have in dispatcher set:
modparam("dispatcher", "grp_avp", "$avp(dsgrp)")
and I am loading the rules from file.
I should mention that this block was working fine before upgrade.
Am I doing something wrong?
Thanks in advance!
DanB