This is continuation with limiting number of calls per Kamailio proxy
server.
I modified kamailio.cfg as below.
1. loadmodule "dialog.so"
2. modparam("dialog", "enable_stats", 1)
3. modparam("dialog", "dlg_flag", 4)
Next, as dialog module I can use either active_dialogs() or $DLG_count to
find number of calls present at any given point of time.
However if I use active_dialogs() I get parse error when I run kamailio
proxy.
Next I used $DLG_count , but always I am getting value of $DLG_count as 0.
In *route* section, I added code as below.
if (is_method("INVITE"))
{
if($DLG_count > 1)
{
sl_send_reply("503","RESOURCE UNAVAILABLE");
exit;
}
else
{
xlog("Dialog count = $DLG_count\n");
}
}
Everytime a new call starts , it prints $DLG_count as 0.
Kindly let me know whats going wrong here.
Regards
Austin
Hi Daniel.
I just wanted to hear if you have had any time to look at the Kamailio
Dispatcher
<-> FreeSwitch problem?
This is NOT to rush you. I've followed the mailing list and can see how
busy you are and how much involved you are in all this, so I fully respect
all the help you give to this mailing list etc.
Best regards,
Henrik
2011/10/20 Henrik Aagaard Sørensen <henrikaagaardsorensen(a)gmail.com>
> Hi Daniel.
>
> I've just upgraded to 3.2.0.
>
> This is my NEW kamailio.cfg: http://pastebin.com/XzXjf1VY
> This is my dispatcher.list: http://pastebin.com/9dLS8243
>
> I've also attached a ngrep where it errors with "Too many hops" with the
> new version 3.2.0.
>
> Once again, I really appreciate all the help you give! It's remarkable
> with your effort in this.
>
> Best regards,
> Henrik
>
>
> 2011/10/17 Daniel-Constantin Mierla <miconda(a)gmail.com>
>
>> I will try to look over the sip traces you sent, although it is tight
>> schedule for the 3.2.0 right now -- so it may take few days.
>>
>> Cheers,
>> Daniel
>>
>>
>> On 10/14/11 10:07 PM, Henrik Aagaard Sørensen wrote:
>>
>> Yes, pbx.my-domain.com is pointing to the IP of FreeSwitch.
>> sip.my-domain.com is the domain name for Kamailio.
>>
>> 2011/10/14 Daniel-Constantin Mierla <miconda(a)gmail.com>
>>
>>>
>>>
>>> On 10/14/11 7:06 PM, Henrik Aagaard Sørensen wrote:
>>>
>>> My dispatcher.list currently just contains:
>>> 1 pbx.my-domain.com:5060
>>>
>>> Is pbx.my-domain.com pointing to the IP address of freeswitch? What is
>>> the domain name for kamailio ip address?
>>>
>>> Daniel
>>>
>>>
>>>
>>> I will provide a ngrep trace within an hour or two. Thank you so much
>>> for helping me. I really hope to get this solved.
>>>
>>> 2011/10/14 Daniel-Constantin Mierla <miconda(a)gmail.com>
>>>
>>>> Hello,
>>>>
>>>>
>>>> On 10/14/11 4:48 PM, Henrik Aagaard Sørensen wrote:
>>>>
>>>> Hi Daniel (and everyone else) again.
>>>>
>>>> I've just tried to add:
>>>> loadmodule "path.so"
>>>> modparam("path", "use_received", 1)
>>>>
>>>> and:
>>>> add_path_received()
>>>> just before the "if(!t_relay())..." in the ROUTE part.
>>>>
>>>> That made both devices get the error "Too many loops".
>>>>
>>>> what is the content of the dispatcher list file? Maybe is better to
>>>> use ds_select_domain(...) and ds_next_domain() -- cannot say it since I
>>>> haven't seen full sip trace, but maybe the problem is that freeswitch is
>>>> sending back if the r-uri address is kamailio's address.
>>>>
>>>> Cheers,
>>>> Daniel
>>>>
>>>>
>>>>
>>>> Moving the add_path_received() into the part:
>>>> if (nat_uac_test("19")) { if (method=="REGISTER") {
>>>> fix_nated_register(); add_path_received();
>>>> made the same issues as before loading the path.so module.
>>>>
>>>> 2011/10/14 Henrik Aagaard Sørensen <henrikaagaardsorensen(a)gmail.com>
>>>>
>>>>> Hi Daniel (and everyone else).
>>>>>
>>>>> This is a tshark trace (is that as good as ngrep?) from Kamailio when
>>>>> there are too many loops: http://pastebin.com/yRjduB0s
>>>>> In this trace I got the note that 253 packets was dropped (and
>>>>> therefor not in the trace).
>>>>>
>>>>> And this is a trace when it times out: http://pastebin.com/KT0bJzEU
>>>>>
>>>>> I've actually looked at the PATH module, and tried several things. And
>>>>> I know this type of question is rather newbee-like, but can you help me out
>>>>> with the PATH module and how to integrate it correctly?
>>>>>
>>>>> I really do appreciate all the help!
>>>>>
>>>>>
>>>>> 2011/10/14 Daniel-Constantin Mierla <miconda(a)gmail.com>
>>>>>
>>>>>> Hello,
>>>>>>
>>>>>> when using the load balancer in front of the registrar, you have to
>>>>>> use PATH extensions for SIP (see path module in kamailio) in order to be
>>>>>> able to cope with nat.
>>>>>>
>>>>>> Then, what would be helpful, will be a ngrep trace taken on kamailio
>>>>>> server for failed calls.
>>>>>>
>>>>>> Cheers,
>>>>>> Daniel
>>>>>>
>>>>>>
>>>>>> On 10/14/11 4:13 PM, Henrik Aagaard Sørensen wrote:
>>>>>>
>>>>>> I've asked a lot of question about Kamailio Dispatcher in front of
>>>>>> FreeSwitch in this mailing list. So I'm sorry that I'm still "spamming",
>>>>>> but it still fails.
>>>>>>
>>>>>> This is my status so far.
>>>>>>
>>>>>> When connecting 2 devices directly to FreeSwitch everything works.
>>>>>> When connecting to Kamailio, some calls fails with "Timeout" and some fails
>>>>>> with "Too many loops".
>>>>>>
>>>>>> This is my kamailio.cfg: http://pastebin.com/KEuZmikh
>>>>>>
>>>>>> When connected directly to FreeSwitch where everything works, this is
>>>>>> how my clients are registrered in FreeSwitch:
>>>>>> http://pastebin.com/prkjkb7g
>>>>>>
>>>>>> When connected to Kamailio where nothing works, this is how my
>>>>>> clients are registrered in FreeSwitch: http://pastebin.com/b5x6NZyv
>>>>>>
>>>>>> 215.197.145.132 (sip.my-domain.com) is my Kamailio.
>>>>>> pbx.my-domain.com is my FreeSwitch.
>>>>>> 96.224.14.164 is my IP at home, where my 2 devices are from.
>>>>>>
>>>>>> Can anyone help me out? I'm kinda lost at this point.
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Daniel-Constantin Mierla -- http://www.asipto.com
>>>>>> Kamailio Advanced Training, Dec 5-8, Berlin: http://asipto.com/u/kathttp://linkedin.com/in/miconda -- http://twitter.com/miconda
>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>>>
>>>>
>>>> --
>>>> Daniel-Constantin Mierla -- http://www.asipto.com
>>>> Kamailio Advanced Training, Dec 5-8, Berlin: http://asipto.com/u/kathttp://linkedin.com/in/miconda -- http://twitter.com/miconda
>>>>
>>>>
>>>
>>>
>>> _______________________________________________
>>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>>
>>>
>>> --
>>> Daniel-Constantin Mierla -- http://www.asipto.com
>>> Kamailio Advanced Training, Dec 5-8, Berlin: http://asipto.com/u/kathttp://linkedin.com/in/miconda -- http://twitter.com/miconda
>>>
>>>
>>
>>
>> _______________________________________________
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>
>>
>> --
>> Daniel-Constantin Mierla -- http://www.asipto.com
>> Kamailio Advanced Training, Dec 5-8, Berlin: http://asipto.com/u/kathttp://linkedin.com/in/miconda -- http://twitter.com/miconda
>>
>>
>
Hi, after following the steps of this guide:
http://by-miconda.blogspot.com/2010/10/best-of-new-in-kamailio-310-10.html,
poulating the uacreg table, loading the uac module and restarting kamailio
I didn't see any REGISTER packet sent out to the sip provider, is something
missing? How can I know if the values from the table are being loaded? I
would appreciate any kind of help.
Regards,
Lucas Alvarez
auth_db/README tells this about www_authorize() negative result codes:
Negative codes may be interpreted as follows:
* -1 (generic error) - some generic error occurred and no reply was
sent out;
* -2 (invalid password) - valid user, but wrong password;
* -3 (invalid user) - authentication user does not exist.
whereas in auth_radius i return:
Negative result codes may be interpreted as follows:
* -7 (internal error) - some internal error occurred (see syslog);
* -6 (nonce reused) - nonce is used more than once;
* -5 (no credentials) - credentials were not found in request;
* -4 (stale nonce) - stale nonce;
* -3 (authorization failed) - RADIUS responded with Access Reject
which may be, for example, due to user not found or wrong password;
* -1 (error) - some error occured during authorization (see syslog);
since both modules depend on the same auth module, why does
www_authorize return the full set of negative result codes or is its
README out of date?
-- juha
Hi, I have properly populate the table "uacreg" as says here:
http://by-miconda.blogspot.com/2010/10/best-of-new-in-kamailio-310-10.html and
I'm loading the uac module, is there anything I could be missing? Because
I'm not seeing any register packet being sent to my sip provider.
Thanks in advance,
Lucas Alvarez
i have not been able to figure out, how to give integer avp name in
a pseudo variable. test
$var(name) = "i:1000";
$avp($var(name)) = "value";
xlog("L_INFO", "avp i:1000 has value <$avp(i:1000)>\n");
xlog("L_INFO", "avp s:i1000 has value <$avp(s:i:1000)>\n");
produces to syslog
Nov 8 13:17:23 sip /usr/sbin/sip-proxy[8642]: INFO: avp i:1000 has value <<null>>
Nov 8 13:17:23 sip /usr/sbin/sip-proxy[8642]: INFO: avp s:i1000 has value <value>
that is, $var(name) value i:1000 is interpreted as string name even when
its syntax conforms to integer name.
is this is a bug or how should value of $var(name) look like?
-- juha
i have not been able to figure out, how to give integer avp name in
a pseudo variable. test
$var(name) = "i:1000";
$avp($var(name)) = "value";
xlog("L_INFO", "avp i:1000 has value <$avp(i:1000)>\n");
xlog("L_INFO", "avp s:i1000 has value <$avp(s:i:1000)>\n");
produces to syslog
Nov 8 13:17:23 sip /usr/sbin/sip-proxy[8642]: INFO: avp i:1000 has value <<null>>
Nov 8 13:17:23 sip /usr/sbin/sip-proxy[8642]: INFO: avp s:i1000 has value <value>
that is, $var(name) value i:1000 is interpreted as string name even when
its syntax conforms to integer name.
is this is a bug or how should value of $var(name) look like?
-- juha
Is there some way by which credentials can be loaded into the uacreg
table, but not all of them used at once?
The problem I have is a need to make these registrations active and
inactive periodically, whereas the registration facility that the uac
module provides is fully managed/largely unattended.
Using $uac_req(...) is not an option because I need to capture the
failure replies (which is not supported in TM) in order to do digest
challenge authentication.
--
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/
Hi,
I'm trying to set tos value to zero but kamailio doesn't accept it. In fact, it's DSCP field which interest me but i can't set zero.
Can you explain me why is it forbidden and how can i do that ?
Thanks a lot
Marion