Hello!
During a call from classical SIP softphone to WebRTC there's no media from
the browser (Mozilla, the same result is for Chrome). In case of a call
from the browser to the softphone there's media flow from both sides.
The snippets from kamailio.cfg related to the problem case (SIP-->WebRTC)
are below.
OFFER:
$var(rtpp_flags) = "trust-address symmetric replace-origin
replace-session-connection";
$var(rtpp_flags) = $var(rtpp_flags) + " ICE=force";
$var(rtpp_flags) = $var(rtpp_flags) + " RTP/SAVPF";
rtpengine_offer($var(rtpp_flags));
ANSWER:
$var(rtpp_flags) = "trust-address symmetric replace-origin
replace-session-connection";
$var(rtpp_flags) = $var(rtpp_flags) + " ICE=remove";
$var(rtpp_flags) = $var(rtpp_flags) + " RTP/AVP";
rtp.log is attached.
Any help on this issue would be very appreciated.
with best regards,
Alexey
Hello,
some time ago it was proposed to use a code review tool to analyze
patches, the topic was also discussed during the last IRC devel meeting.
I cc-ed users mailing list, because people there might have experiences
with some of them.
I found on wikipedia a short list of available applications for this
purpose:
- http://en.wikipedia.org/wiki/List_of_tools_for_code_review
Personally I haven't used any so far. Iirc, gerrit was proposed before
by Victor Seva. From the wikipedia list, Differential would be
straightforward to deploy from dependencies point of view, as we have
php on our servers. But I have no clue which is the right/best to use,
so here we have to decide if worth to use one and which one.
Besides the above one, perhaps github has an integrated review tool. I
can be considered as an alternative as well.
My opinion is that such tool is useful, specially for big patches, to
allow easier more people to have a look at them.
Hoping to get feedback on benefits of such tools and which would be the
right/best to use.
Cheers,
Daniel
--
Daniel-Constantin Mierla - http://www.asipto.comhttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Hey Community,
I'm trying to play around with ndb_redis, but seem to be missing something
probably obvious as I'm getting a "failed to find command redis_cmd" error
on load.
loadmodule "ndb_redis.so"
modparam("ndb_redis", "server", "name=test;addr=127.0.0.1;port=7000")
request_route {
redis_cmd("test", "SET foo bar", "r");
}
I've verified that mpath = /usr/local/lib64/kamailio/modules/ and that
ndb_redis.so is in that directory.
Any help is greatly appreciated.
Ryan Brindley
kamailio -V
version: kamailio 3.2.2 (x86_64/linux)
I am setting different cfg Parameters via XMLRPC. Which is good for changing parameters per runtime and being independent from database lookups when kamailio is running.
Unfortunately cfg settings will be lost and empty after Restarting Kamailio if cfg values aren’t set before the request_route. So the idea was to look if cfg value is set, if not look into database and take the last cfg setting which was set. (Last cfg values will updated via SQL Query in the XMLRPC branch).
# check if abc.test is defined
if (strempty($sel(cfg_get.abc.test))) {
sql_xquery("ca", "SELECT * from cfg where abc=‚test'", "ra“);
The problem is that it seems, that there is no way to read out the values from database and to set the cfg variable again when kamailio is starting, because
there is no way to inject cfg values into kamailio, when kamailio is already started.
Here i need something like this: abc.test = "$xavp(ra=>LB01)" desc „TEST“; <<which doesn’t work in this form. (just to make it clear what i want)
I found http://kamailio.org/docs/modules/stable/modules/cfg_db.html , but documentation is quite bad. Are there any other possibilities for me?
The only way it might work for me (which is in my opinion quite dirty), to exec_dset an external command and to inject the new cfg via XMLRPC.
The new cfg value is updated into database via XMLRPC again (which works, just for the sake of completeness):
#!ifdef WITH_XMLRPC
route[XMLRPC] {
…
…
# Keeping values for Kamailio Restart
sql_query("ca", "UPDATE cfg set LB01='$sel(cfg_get.abc.test)' where abc=‚test‘");
Mabye of one of you guys have a hint for me to solve this problem?
Cheers
Daniel
Hi,
At the moment I'm working in a project, in which I need to use
OpenIMSCore with a presence server, so I decided to use Kamailio.What
should be added in the kamctlrc and kamailio.config files to make it
meet the above requirement.
Regards
Ashwin
Hello, lists.
I was kamailio beginners, it seems demo on uac_redirect modules, but does not know how to use the kamailio.cfg file, can you give me an example of a complete hair. Thank you
Hello list, a long time ago i have build and application which injects
ringing from rtpproxy to the client, while i am trying to reach his
destination.
The commande looks like this (log)
May 19 10:17:44 rtpproxy[2529]: DBUG:handle_command: received command
"29304_278705 P-1 B2B.256.470174 /usr/local/src/rtpproxy/sounds/ring
session d20fbd749deed7e1f54460af276dee6d-0ead;1 "
May 19 10:17:44 rtpproxy[2529]: INFO:handle_play: -1 times playing
prompt /usr/local/src/rtpproxy/sounds/ring codec 8
May 19 10:17:44 rtpproxy[2529]: DBUG:doreply: sending reply
"29304_278705 0#012"
Everything works fine, a long time ago i have modded the rtpproxy a bit
so when he sends the audio, he sends it with 20ms ptime instead of
default 10ms, and i have totally forgot where is that part, i am digging
into sources and not able to find it.
Dear list if somebody remembers where is this damn setting in sources, i
would be glad to hear from you.
Thank you
i started to wonder why routing was sometimes wrong in my proxy and
after studying the issue, i came to the conclusion that mtree reload
commands (mi or rpc) don't remove entries from memory when they are
removed from database.
i started my proxy with empty mtrees db table (and empty memory table):
# sip-proxy_ctl mi mt_summary
MT:: TNAME=lp_out TTYPE=0 MEMSIZE=0 NRNODES=0 NRITEMS=0 RELOADCOUNT=0 RELOADTIME=1400419785
then i added one entry to db table and gave reload command. after that
one entry correctly showed up in memory table:
# sip-proxy_ctl mi mt_summary
MT:: TNAME=lp_out TTYPE=0 MEMSIZE=1636 NRNODES=6 NRITEMS=1 RELOADCOUNT=1 RELOADTIME=1400419817
then i deleted the only entry from db, verified with phpmyadmin that
the table really was empty, and gave again reload command. that command
didn't have any effect in memory table:
# sip-proxy_ctl mi mt_summary
MT:: TNAME=lp_out TTYPE=0 MEMSIZE=1636 NRNODES=6 NRITEMS=1 RELOADCOUNT=1 RELOADTIME=1400419817
not even reload count got incremented.
after that i went and added some debug to rpc_mtree_reload function and
got this:
May 18 16:30:17 siika /usr/sbin/sip-proxy[26536]: INFO: mtree [mtree_mod.c:1169]: rpc_mtree_reload(): reloading from db 'lp_out'
the info is here:
LM_INFO("reloading from db '%.*s'\n", pt->tname.len, pt->tname.s);
if(mt_load_db(pt)!=0)
{
LM_ERR("cannot re-load mtree from database\n");
goto error;
}
my conclusion is that mt_load_db() function is somehow broken.
-- juha
Hello,
I have setup Kamailio with Freeswitch and it is working. Right now I have my SIP providers connected to Freeswitch. Would it make sense to connect my SIP providers to kamailio instead. My setup will be intended to resell minutes.
If so what advantages will I gain by connecting my SIP providers to kamailio