On 10/30/2011 06:00 AM, Austin Einter wrote:
> When I run kamailio, I get below error.
>
> 0(4925) CRITICAL: dialog [dialog.c:297]: profile not definited
> [...]
> Any idea why this error comes and how to fix it.
You should really define profile caller by putting it into
profiles_with_value mo
Hi Alex
I tried using profile. I added below code to kamailio.cfg in route section.
if (is_method("INVITE")) {
if (!has_totag()) {
get_profile_size("caller", "$fu", "$var(SIZE)");
if( $var(SIZE) >= MAX_NUMBER_OF_CALLS ) {
Alex
Thansk for quick answer.
I have not used profiles yet.
I just observed some interesting stuff.
In route section if I put code as below I see $DLG_count value is being
changed, but it does not look consistent.
*setflag(FLD_DLG);
if (is_method("INVITE"))
{
*
So if I put setflag before if c
Have you tried using dialog profiles instead of $DLG_count?
--
Alex Balashov - Principal
Evariste Systems LLC
260 Peachtree Street NW
Suite 2200
Atlanta, GA 30303
Tel: +1-678-954-0670
Fax: +1-404-961-1892
Web: http://www.evaristesys.com/
___
SIP Expres
Hi All
Still I am struggling to find a solution how to control the number of calls.
I have few more doubts regarding this.
1. Do I need to enable mysql , so that these counters such as $DLG_count
will be updated properly. Now I am getting 0 always irrespective of number
of calls in system.
2. F
Juha Heinanen writes:
> it is possible to call both keep_codecs_by_name and keep_codecs_by_id,
> since 101 does not have name:
sorry, 101 does have name (telephone-event), so there is no problem.
-- juha
___
SIP Express Router (SER) and Kamailio (Open
daniel,
it is possible to call both keep_codecs_by_name and keep_codecs_by_id,
since 101 does not have name:
> v=0.
> o=twinkle 1548176998 229186862 IN IP4 192.98.102.10.
> s=-.
> c=IN IP4 192.98.102.10.
> t=0 0.
> m=audio 8000 RTP/AVP 99 97 8 0 3 101.
> a=rtpmap:99 speex/32000.
> a=rtpmap:97 spe
daniel,
i fixed the crash like this:
***
*** 482,495
int sdp_keep_codecs_by_name(sip_msg_t* msg, str* codecs)
{
str idslist;
! if(parse_sdp(msg) < 0) {
LM_ERR("Unable to parse sdp\n");
return -1;
}
! LM_ERR("at
Daniel-Constantin Mierla writes:
> I committed on master branch the code for support of dynamic codecs ids:
>
> http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=511dc62e6a6ca74324f42b66a23bd9d80b377252
>
> I tested and seemed ok, but could try many options, so if you can give
Alex
Initially I did not put dlg_manage(), after reading your post I added the
dlg_manage(). Now in route section my code in kamailio.config looks as
below.
*dlg_manage();
if (is_method("INVITE"))
{
if (!has_totag())
{
if($DLG_coun
10 matches
Mail list logo