Hello,
I have kamailio installation WITH_PSTN, WITH_NAT and rtpproxy.
Using following scenario:
[kamailio]<-sip trunk ->[asterisk gw] <->sip trunk <-> [PSTN provider]
All kamailio sip subscribers are behind nat in different networks.
1. OK. Local kamailio users can call one to other even they are on
different networks behind nat.
2. OK. Outgoing calls from kamailio users to PSTN work also very well.
3. Not OK. Incoming from PSTN side calls have only one way audio.
I tcpdump'ed kamailio box and found, that pstn provider sends RTP
packets to kamailio IP in case of answered call.
I guess that rtpproxy is not active in case of pstn call. Is it true ?
I am using more less default kamailio config
Could you please suggest solution ?
BR,
Dmitri
Sehr geehrte Damen und Herren,
leider kann ich Ihre e-mail momentan nicht beantworten / bearbeiten, da ich mich bis einschliesslich 19.07.2010 im Urlaub befinde.
In dringenden Fällen wenden Sie sich bitte telefonisch an meine Mitarbeiter unter der Rufnummer 04231 / 776 9999.
Mit freundlichen Grüßen
Marco Bungalski
Sehr geehrte Damen und Herren,
leider kann ich Ihre e-mail momentan nicht beantworten / bearbeiten, da ich mich bis einschliesslich 19.07.2010 im Urlaub befinde.
In dringenden Fällen wenden Sie sich bitte telefonisch an meine Mitarbeiter unter der Rufnummer 04231 / 776 9999.
Mit freundlichen Grüßen
Marco Bungalski
Sehr geehrte Damen und Herren,
leider kann ich Ihre e-mail momentan nicht beantworten / bearbeiten, da ich mich bis einschliesslich 19.07.2010 im Urlaub befinde.
In dringenden Fällen wenden Sie sich bitte telefonisch an meine Mitarbeiter unter der Rufnummer 04231 / 776 9999.
Mit freundlichen Grüßen
Marco Bungalski
Sehr geehrte Damen und Herren,
leider kann ich Ihre e-mail momentan nicht beantworten / bearbeiten, da ich mich bis einschliesslich 12.07.2010 im Urlaub befinde.
In dringenden Fällen wenden Sie sich bitte telefonisch an meine Mitarbeiter unter der Rufnummer 04231 / 776 9999.
Mit freundlichen Grüßen
Marco Bungalski
Hello,
keep cc-ing the mailing list for any message, so next people that come
and scan mailing list archive for the same issue discover the solution
and whether was good or not.
Cheers,
Daniel
On 6/30/10 11:40 PM, "Nicolas Rüger" wrote:
> Hello Daniel,
>
> thanks for the fast answer. I followed your suggestion and now (after fixing a few minor bugs) it works! :)
>
> Many many thanks...
>
> Nicolas
>
>
>
>
>
> -------- Original-Nachricht --------
>
>> Datum: Wed, 30 Jun 2010 21:44:36 +0200
>> Von: Daniel-Constantin Mierla<miconda(a)gmail.com>
>> An: "Nicolas Rüger"<NicolasRueger(a)gmx.de>
>> CC: sr-users(a)lists.sip-router.org
>> Betreff: Re: [SR-Users] error loading perl module
>>
>
>> Hello,
>>
>> On 6/30/10 9:24 PM, "Nicolas Rüger" wrote:
>>
>>> Hello,
>>>
>>> I try to use the PERL module in kamailio v3 for some research due to my
>>>
>> thesis.
>>
>>> I'm using debian lenny, kamailio_3.0.0 and perl_5.10.0.
>>>
>>>
>>> 1.) The Problem
>>>
>>> Starting Kamailio via "./kamctl start" drops the general error JUST when
>>>
>> I try to load the PERL module:
>>
>>> ERROR: PID file /var/run/kamailio.pid does not exist -- Kamailio start
>>>
>> failed
>>
>>>
>>>
>>>
>>> 2.) The search for errors
>>>
>>> I got the following errors (and warnings) in DEBUG mode by starting
>>>
>> "kamailio -d" for debugging:
>>
>>> [...]
>>>
>>> 0(10776) DEBUG:<core> [sr_module.c:382]: load_module: trying to
>>>
>> load</opt/kamailio-3.0.0/lib/kamailio/modules_k/perl.so>
>>
>>> 0(10776) WARNING:<core> [sr_module.c:445]:
>>>
>> /opt/kamailio-3.0.0/lib/kamailio/modules_k/perl.so: exports dlflags interface is deprecated and it will
>> not be supported in newer versions; consider using mod_register() instead
>> 0(10776)
>>
>>> [...]
>>>
>>> 0(10778) ERROR: perl [perl.c:330]: insufficient module parameters.
>>>
>> Module not loaded.
>>
>>> 0(10778) ERROR:<core> [sr_module.c:874]: init_mod(): Error while
>>>
>> initializing module perl
>>
>>>
>>>
>> seems you don't have the parameter 'filename' set:
>>
>> http://kamailio.org/docs/modules/stable/modules_k/perl.html#id2928387
>>
>> Cheers,
>> Daniel
>>
>>
>>
>>>
>>>
>>> 3.) What I did before...
>>>
>>> 3.1) Compiled Kamailio
>>>
>>> I compiled Kamailio 3.0.0 using the following commands, where $1 is the
>>>
>> target:
>>
>>> make prefix=$1/ include_modules="db_mysql tls perl" cfg
>>>
>>> make Q=1 all
>>>
>>> make install
>>>
>>> #make prefix=$1/ TLS=1
>>> #make prefix=$1/ TLS=1 modules
>>> #make prefix=$1/ TLS=1 install
>>>
>>> #make prefix=$1/ include_modules="db_mysql" modules
>>> #make prefix=$1/ include_modules="db_mysql" install
>>>
>>>
>>> 3.2) Set the environment variables as described in
>>>
>>> http://kamailio.org/docs/modules/stable/modules_k/perl.html#id2920768
>>>
>>> You need to set the environment variables PERLLDOPTS, PERLCCOPTS and
>>>
>> TYPEMAP to values similar to the output of
>>
>>> PERLLDOPTS: perl -MExtUtils::Embed -e ldopts
>>> PERLCCOPTS: perl -MExtUtils::Embed -e ccopts
>>> TYPEMAP: echo "`perl -MConfig -e 'print
>>>
>> $Config{installprivlib}'`/ExtUtils/typemap"
>>
>>> 3.3) Trying to load the perl-module via kamailio.cfg
>>>
>>> loadmodule "perl.so"
>>>
>>>
>>>
>>>
>>> Can you PLEASE help me to solve the problem!
>>>
>>> Thank you very much...
>>>
>>> Cheers Nicolas
>>>
>>>
>> --
>> Daniel-Constantin Mierla
>> http://www.asipto.com/
>>
>
--
Daniel-Constantin Mierla
http://www.asipto.com/
Hi,
I have recently installed a kamailio server with release 3.0.2.
I would like to use the kamilio as a redirect server that would recieve REGISTER messages from users and query a proprietary database that holds users information - if the users are registered to the service it would redirect the user to the registrar. I need it for security reasons which I can't fully explain.
Now, I am using the avpops module. I have been able to make it work using the following configuration:
modparam("avpops","db_url","mysql://user:pass@localhost/mysql")
modparam("avpops","avp_table","proptable")
modparam("avpops","db_scheme","scheme0:username_col=sipUsername;value_col=sipDomainName;table=proptable")
----------
if (is_method("REGISTER"))
{
if (avp_db_load("$fu/username","$avp(s:CONSTANT_DOMAIN)/$scheme0"))
{
append_branch("sip:registrarIP");
sl_send_reply("302","Test Redirect");
}
else
{
sl_send_reply("404","Test Not found");
}
--------------
The thing is that I don't need to match the string CENTREX against the domain- it is something I added because I couldn't find another way to do it. I would like to match only the username. I tried wildcards or leaving it empty but it didn't work. I tried not to use the scheme and instead use the table it self but again it didn't work.
Is it possible? Do you know a better to do it?
Thanks,
Yaron.