Hello List,
from the documentation, permissions.allow, allows the calls either by
matching From-URI or R-URI and permission.deny denies the call from matching
uri.
Do I need to divide the file into different sections, for R-URI and for
From-URI? Not sure exact syntax could someone explain me that if I want to
match in permissions.allow if a phone 10.10.10.10 dial(r-uri) 1234 allow it
and everything else is blocked? What is the preference does kamailio check
for permissions.deny first if there is no matching then checks
permissions.allow?
Thanks in advance,
Asim
Hello,
On 5/22/10 2:22 AM, JR Richardson wrote:
> On Fri, May 21, 2010 at 4:46 PM, Daniel-Constantin Mierla
> <miconda(a)gmail.com> wrote:
>
>> Hello,
>>
>> On 5/21/10 10:47 PM, JR Richardson wrote:
>>
>>> Hi All,
>>>
>>> I'm doing some testing with kamailio 1.5:
>>>
>>> kamailio1:/etc/kamailio# kamailio -V
>>> version: kamailio 1.5.4-notls (i386/linux)
>>> flags: STATISTICS, USE_IPV6, USE_TCP, DISABLE_NAGLE, USE_MCAST,
>>> SHM_MMAP, PKG_MALLOC, F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT
>>> ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
>>> MAX_URI_SIZE 1024, BUF_SIZE 65535, PKG_SIZE 4194304
>>> poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
>>> svnrevision: 2:6005M
>>> @(#) $Id: main.c 5608 2009-02-13 16:48:17Z henningw $
>>> main.c compiled on 10:14:11 May 18 2010 with gcc 4.3.2
>>>
>>> Using dispatcher module trying to load balance SIP calls across some
>>> Asterisk servers. I have it working fine when I test in this
>>> scenario:
>>>
>>> sip phone dial out><asterisk><kamailio><round robin to several asterisk
>>> servers
>>>
>>> This works stateful and stateless, handles everything gracefully.
>>>
>>> This scenario is giving me fits:
>>>
>>> sipp dial out><kamailio><round robin to several asterisk servers
>>>
>>> I get retransmits on every call back to sipp with errors like
>>> "Discarding message which can't be mapped to a known SIPp call" and
>>> "SIP/2.0 481 Call leg/transaction does not exist"
>>>
>>> This happens with kamailio setup stateful or stateless. I'm wondering
>>> if sipp is the problem or just doesn't play well with kamailio?
>>>
>>> I've kept the config as simple as possible for testing, it is listed
>>> here http://pastebin.com/BZ8hJvJv
>>>
>>> Here is my sipp usage:
>>>
>>> sipp -sn uac 10.10.12.53 -i 10.10.14.97 -s 55 -d 7000 -l 10 -r 1
>>> -trace_err
>>>
>>> Any insight would be appriciated.
>>>
>>>
>>>
>> the problem is in your sipp scenario. The uac calls do not map to uas.
>> kamailio does not reply 481, check the uas scenario, that is the one that
>> sends back the 481.
>>
>> Cheers,
>> Daniel
>>
>> --
>> Daniel-Constantin Mierla
>> Kamailio (OpenSER) Advanced Training
>> Miami, Fl, USA - June 21-23, 2010
>> http://www.asipto.com/index.php/kamailio-advanced-training/
>>
>>
>>
> Thanks Daniel, I reveiwed the sipp docs, '-sn uas' just sits there as
> a responder, it will not initiate calls to kamailio. I don't
> understand what you are getting at? How would I use this type of
> scenario to test?
>
keeping the mailing list cc-ed is recommended, since others can respond
faster and new people can benefit of the discussion.
What I wanted to say is that kamailio does not reply 481. So the problem
is in the responder of requests sent by UAC and forwarded by Kamailio.
Somehow, the dialog is destroyed before the BYE (or other in-dialog
request) is sent by UAS.
If you can grab the SIP trace of such call (e.g., using ngrep on
kamailio server), I can give more hits (try to select the sip flow for
one such call only, sending full sip trace will be too big).
Cheers,
Daniel
--
Daniel-Constantin Mierla
Kamailio (OpenSER) Advanced Training
Miami, Fl, USA - June 21-23, 2010
http://www.asipto.com/index.php/kamailio-advanced-training/
On 5/25/10 8:51 PM, SIP wrote:
> Daniel-Constantin Mierla wrote:
>
>> Hello,
>>
>> I am planning to release kamailio 3.0.2 this Thursday. There were some
>> fixes since 3.0.1 that worth to be packaged. If you have major reports
>> for current stable version, please write to sr-dev(a)lists.sip-router.org
>>
>> Cheers,
>> Daniel
>>
>>
> Is this a drop-in upgrade from 3.0.1 (i.e. recompile modules and core
> and keep the rest in place)?
>
>
yes, changes to last number in version string mean that config language
and database structure are the same. This is a minor release, bringing
only fixes to the code.
So upgrading from 3.0.0 or 3.0.1 to 3.0.2 is exactly what you said,
just recompile and reinstall modules and core, keep the rest in place.
Cheers,
Daniel
--
Daniel-Constantin Mierla
Kamailio (OpenSER) Advanced Training
Miami, Fl, USA - June 21-23, 2010
http://www.asipto.com/index.php/kamailio-advanced-training/
Hi,
I have been configuring an Kamailio 3.0.1, with the dispatcher module.
Everything seems to work just fine but when a gateway is in Probing mode it
remains in that state for ever. checking the logs I found some weird
messages, I think that is the rrot cause of the problem but I have no clue
how to solve it.
These are the messages I mentioned before
May 21 14:56:34 localhost /usr/local/sbin/kamailio[21539]: DEBUG: <core>
[sr_module.c:516]: find_export_record: <load_tm> not found
May 21 14:56:34 localhost /usr/local/sbin/kamailio[21539]: WARNING:
dispatcher [dispatcher.c:358]: could not bind to the TM-Module, automatic
re-activation disabled.
May 21 14:56:34 localhost /usr/local/sbin/kamailio[21539]: DEBUG: <core>
[sr_module.c:871]: DEBUG: init_mod: sl
May 21 14:56:34 localhost /usr/local/sbin/kamailio[21539]: DEBUG: <core>
[statistics.c:105]: statistics manager successfully initialized
May 21 14:56:34 localhost /usr/local/sbin/kamailio[21539]: DEBUG: <core>
[md5utils.c:87]: DEBUG: MD5 calculated: f8f2ab2c1295e90ed7dbb499b30f44b2
May 21 14:56:34 localhost /usr/local/sbin/kamailio[21539]: DEBUG: <core>
[sr_module.c:506]: find_export_record: found <load_tm> in module tm
[/usr/local/lib/kamailio/modules/tm.so]
As you may see load_tm is not found in the dispatcher but it is found in
md5utils??
These are the modules included
mpath="/usr/local/lib/kamailio/modules/:/usr/local/lib/kamailio/modules_k/"
loadmodule "tm.so"
loadmodule "dispatcher.so"
loadmodule "sl.so"
loadmodule "db_mysql.so"
loadmodule "mi_fifo.so"
loadmodule "rr.so"
loadmodule "pv.so"
loadmodule "maxfwd.so"
loadmodule "usrloc.so"
loadmodule "registrar.so"
loadmodule "textops.so"
loadmodule "uri_db.so"
loadmodule "siputils.so"
loadmodule "xlog.so"
loadmodule "acc.so"
loadmodule "auth.so"
loadmodule "auth_db.so"
loadmodule "permissions.so"
loadmodule "drouting.so
Any clue?
I compiled the route.so module to the kamailio but when I start kamailio the
follow error is generated in the log file:
"ERROR:core:sr_load_module: could not open module
</home2/local/kamailio/lib/kamailio/modules/route.so>:
/home2/local/kamailio/lib/kamailio/modules/route.so: undefined symbol:
add_hash"
Someone can help me?
Cheers,
Bruno
Hi All,
I'm doing some testing with kamailio 1.5:
kamailio1:/etc/kamailio# kamailio -V
version: kamailio 1.5.4-notls (i386/linux)
flags: STATISTICS, USE_IPV6, USE_TCP, DISABLE_NAGLE, USE_MCAST,
SHM_MMAP, PKG_MALLOC, F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
MAX_URI_SIZE 1024, BUF_SIZE 65535, PKG_SIZE 4194304
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
svnrevision: 2:6005M
@(#) $Id: main.c 5608 2009-02-13 16:48:17Z henningw $
main.c compiled on 10:14:11 May 18 2010 with gcc 4.3.2
Using dispatcher module trying to load balance SIP calls across some
Asterisk servers. I have it working fine when I test in this
scenario:
sip phone dial out><asterisk><kamailio><round robin to several asterisk servers
This works stateful and stateless, handles everything gracefully.
This scenario is giving me fits:
sipp dial out><kamailio><round robin to several asterisk servers
I get retransmits on every call back to sipp with errors like
"Discarding message which can't be mapped to a known SIPp call" and
"SIP/2.0 481 Call leg/transaction does not exist"
This happens with kamailio setup stateful or stateless. I'm wondering
if sipp is the problem or just doesn't play well with kamailio?
I've kept the config as simple as possible for testing, it is listed
here http://pastebin.com/BZ8hJvJv
Here is my sipp usage:
sipp -sn uac 10.10.12.53 -i 10.10.14.97 -s 55 -d 7000 -l 10 -r 1 -trace_err
Any insight would be appriciated.
Thanks.
JR
--
JR Richardson
Engineering for the Masses
Hi all...
Well I have made some progress... Bellow is my routing statement:
route{
if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483","Too Many Hops");
break;
};
if (msg:len >= 2048 ) {
sl_send_reply("513", "Message too big");
break;
};
if (!method=="REGISTER") record_route();
if (loose_route()) {
append_hf("P-hint: rr-enforced\r\n");
route(1);
break;
};
if (!uri==myself) {
append_hf("P-hint: outbound\r\n");
route(1);
break;
};
if (uri==myself) {
if (method=="REGISTER") {
save("location");
break;
};
lookup("aliases");
if (!uri==myself) {
append_hf("P-hint: outbound alias\r\n");
route(1);
break;
};
};
append_hf("P-hint: usrloc applied\r\n");
route(1);
}
route[1]
{
if (src_ip==10.98.6.5) {
if (dst_port==5065) {
t_relay_to_tcp("10.98.118.20", "5065");
}
else if (dst_port==5066) {
t_relay_to_tcp("10.98.118.20", "5066");
}
else if (dst_port==5067) {
t_relay_to_tcp("10.98.118.20", "5067");
}
else {
t_relay_to_tcp("10.98.118.20", "5060");
}
}
else {
t_relay_to_udp("10.98.6.5", "5060");
};
}
When asterisk sends a call to kamailio, Kamailio then sends the invite to 10.98.118.20 via TCP on port 5061.
INVITE sip:1989@10.98.6.5:5061 SIP/2.0
Record-Route: <sip:10.98.6.5:5065;transport=tcp;r2=on;lr=on>
Record-Route: <sip:10.98.6.5:5061;r2=on;lr=on>
Via: SIP/2.0/TCP 10.98.6.5:5065;branch=z9hG4bK74fd.a4578a84.0
Via: SIP/2.0/UDP 10.98.6.5:5060;branch=z9hG4bK7b9bb22d;rport=5060
From: "1103" <sip:1103@10.98.6.5>;tag=as4ae41ccf
To: <sip:1989@10.98.6.5:5061>
Contact: <sip:1103@10.98.6.5>
Call-ID: 44073b911e86b0a96c9104cb7a5ec389(a)10.98.6.5
CSeq: 102 INVITE
User-Agent: Asterisk PBX
Max-Forwards: 69
Date: Fri, 21 May 2010 12:23:58 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces
Content-Type: application/sdp
Content-Length: 232
P-hint: usrloc applied
The problem is that the Kamailio receives a 302 Moved Temporarily with a contact field of CONTACT: <sip:1989@10.98.6.5:5065;transport=TCP>
I need to have Kamailio, use this contact field and re-send the invite.
How can this be done?
Nelson Pereira
Senior Network Specialist
Protus<http://www.protus.com/>
npereira(a)protus.com<mailto:name@protus.com>
phone: 613.733.0000 ext.528
MyFax: 613.822.5083
MyFax.com<http://www.myfax.com/> | my1voice.com<http://www.my1voice.com/> | Campaigner.com<http://www.campaigner.com/>