aft | 20 Jun 2013 12:41
Picon
Gravatar

[SR-Users] Not getting correct result after sending a OPTION query

Hi,

I'm trying to understand intricacies of SIP protocol.

I'm installed a stock kamailio from git repo.

kamcmd> core.version
kamailio 4.0.2 (x86_64/linux) f87866

Now i'm trying to send OPTION request by "sipsak".

I've added two users :

arif <at> khost:~$ kamctl db show user
...........
+----+----------+---------------+------------+---------------+----------------------------------+----------------------------------+------+
| id | username | domain        | password   | email_address | ha1
                    | ha1b                             | rpid |
+----+----------+---------------+------------+---------------+----------------------------------+----------------------------------+------+
|  1 | test     | 192.168.7.143 | testpasswd |               |
ad87b307789553f95799738d87246ca0 | e211f539e22a1ad2cc0f3c07056c3517 |
NULL |
|  2 | test2    | localhost     | testpasswd |               |
46d8618f5b652e4aeff3ffe52f373028 | bb8564b436dcfa183a8228244d8527ea |
NULL |
+----+----------+---------------+------------+---------------+----------------------------------+----------------------------------+------+

Now The OPTION message i'm trying :

OPTIONS sip:test_local <at> localhost SIP/2.0
(Continue reading)

Raj Roy Ghandhi | 20 Jun 2013 12:12
Picon

[SR-Users] MSILOModule - Offline Message delivery

Hi, Anybody added MSILO module to store offline message delivery.
I tried to implement with the guide at http://kamailio.org/docs/modules/stable/modules/msilo.html
but it kamiailio does not start and saying the config errors.

Please let me know the config file route scripts for this.

Thanks,
Roy.


_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users <at> lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Gustavo S | 20 Jun 2013 08:24

[SR-Users] FW: Info and support for Kamailio

Hi guys,

My name is Tavo, I'm from Ecuador (South-America), and I need some info about Kamailio. I'm studying a Master degree of Networking and Data Communications, and I want to build a VoIP project with Kamailio.

I want to integrate Kamailio with Trixbox to improve the security levels of the IP-PBX, also I want to use my cisco ip phones 7960G with them, but I need some help with how and where to configure the Kamailio to be connect to the Trixbox server.

I made some research about it, and in some pages I read that I can install Kamailio over some Linux Distro like Ubuntu or CentOS, and in other that I can install it on the asterisk (Trixbox) server itself. 

Could you help me with some examples of configuration, where to configure the extensions. I think is in Kamailio.cfg file, but I don't know how to do it.

Please help me with it. I'll be so grateful with you for this support.

Regards from Ecuador 

Tavo
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users <at> lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
אורן אברהם | 20 Jun 2013 01:44
Picon

[SR-Users] uac module strange problem

Dear list.

I am using uac module for generating some request (even only some simple OPTIONS request) and after i send it using uac_req_send() the new request is processed as a REPLY (in onreply_route) instead of a new request (in request_route)  does anyone have a guess why it happens ? i've used this module in a similar way before and everything worked as expeced.

thanks in advance
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users <at> lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Daniel W. Graham | 19 Jun 2013 21:29
Favicon

[SR-Users] Local subscriber lookup / usrloc

My kamailio implementation sits in front of a group of asterisk servers, when a call comes into kamailio it does a series of checks on the location of the src and dst to determine if the call is allowed. If the src is PSTN  and called user is found in the location table the call is passed to an asterisk server for further processing of call forwarding options / voicemail / ring time setting etc. However if the called account is not found (not currently registered) the call is then discarded and voicemail etc can never be accessed.

 

I can add a avp_db_query to fetch user from the subscriber table vs location table lookup. Just wondering if there are any built in functions or other efficient ways to handle this that others are doing.

 

Thanks for any input

 

-Dan

 

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users <at> lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Mick Stevens | 19 Jun 2013 21:27
Picon
Favicon
Gravatar

[SR-Users] Script - /kamailio.log -> MongoDB ?

Hi All, 

I'm not a programmer & am new to Kamailio (but have managed to master 'ish FreeSWITCH) & am looking for a script I can use/adapt/learn from to import kamailio.log into MongoDB. 

Any offers?

Mick
 
Rgds, Mick
Tel/SMS. +44(0)7967 594432

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users <at> lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Sergey Okhapkin | 19 Jun 2013 20:58
Picon

[SR-Users] Variables in event_route[sl:local-response]

Which variables I can use in event_route[sl:local-response] route to xlog proto:ip:port to which the response will be sent?

 

event_route[sl:local-response] {

xlog("L_INFO","Local response to $??\n$mb\n");

}

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users <at> lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Jose Suero | 19 Jun 2013 18:30

[SR-Users] SIP Trunks Location

Hi

I'm planning to set kamailio in front of an farm of pbx servers 
(haven't decided on freeswitch or asterisk) there's a million tutorials 
on how to do this, what I haven't found is what part of my setup 
actually handles the sip trunks my phone company provides me with.

What's the best practice when It comes to this?

Is kamailio going to be receiving the calls from the trunk and passing 
them to the PBX or is it the other way around?

please advice

Thanks in advance

Jose Suero
John Doe | 18 Jun 2013 21:29
Picon
Favicon

[SR-Users] Help with install using GIT

Hi all, I am trying to install the latest version using git (new to git) and after running "git checkout -b 4.0
origin/4.0" I got these messages:

[root <at> test kamailio-4.0.2]# git checkout -b 4.0 origin/4.0

fatal: Cannot update paths and switch to branch '4.0' at the same time.
Did you intend to checkout 'origin/4.0' which can not be resolved as commit?
[root <at> test kamailio-4.0.2]#

These were the commands I entered in order:

[root <at> test kamailio-4.0.2]# mkdir -p /usr/local/src/kamailio-4.0.2
[root <at> test kamailio-4.0.2]# cd /usr/local/src/kamailio-4.0.2/
[root <at> test kamailio-4.0.2]# git clone --depth 1 git://git.sip-router.org/sip-router kamailio
[root <at> test kamailio-4.0.2]# cd kamailio
[root <at> test kamailio-4.0.2]# git checkout -b 4.0 origin/4.0  --> this is were it fails

What does it mean, how should I proceed?
I appreciate any advise, thank you 		 	   		  
Victor V. Kustov | 19 Jun 2013 12:51
Picon
Favicon

[SR-Users] short name in syslog

Hi Daniel-Constantin!

little fix for short name in syslog's log:

-before
Jun 19 14:40:37 phoenix-c2 /usr/local/sbin/kamailio[63542]: WARNING: qm_status: (0x801000000):
-after
Jun 19 14:41:44 phoenix-c2 kamailio[91432]: WARNING: qm_status: heap size= 33554432

patch attached

--
 WBR, Victor
  JID: coyote <at> bks.tv
  JID: coyote <at> bryansktel.ru
  I use FREE operation system: 3.9.4-calculate GNU/Linux
Attachment (main_syslog.patch): text/x-patch, 606 bytes
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users <at> lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Daniel Tryba | 19 Jun 2013 11:11
Picon

[SR-Users] bug in 4.0.2 dialog module, no keep alives when src==dst

Trying to implement calllimits with the dialog module I can reproduce a 
hanging dialog using a Linksys 962 by calling itself. When trying to answer 
the call the INVITES end in a 200 OK but the call is terminated [linksys.txt].

That might be a bug in the 962, but the bad part is the dialog will be kept in 
kamailio even though keep alives are enabled. OPTIONS are not being sent to 
detect this dead dialog. If this devices calls an other device (either 
registered to this kamailio or to the PSTN) KA work like configured (they are 
being send to this device). Severing the connection will be detected and the 
dialog will be removed. But when source and destination is the same device, no 
OPTIONS are sent.

About 1 hour later the dialog is still there:

# kamctl mi dlg_list
dialog::  hash=3456:6742
        state:: 3
        ref_count:: 2
        timestart:: 1371572203
        timeout:: 68536211
        callid:: 86a23723-4b71d5ad <at> localhost
        from_uri:: sip:anonymous <at> localhost
        from_tag:: 1736b8ab3ea801c5o0
        caller_contact:: sip:+31880100781 <at> 10.0.34.226:17852
        caller_cseq:: 102
        caller_route_set:: 
        caller_bind_addr:: udp:10.0.32.42:5060
        callee_bind_addr:: udp:10.0.32.42:5060
        to_uri:: sip:0880100781 <at> 10.0.32.42
        to_tag:: 195218c1d50330b5i0
        callee_contact:: sip:+31880100781 <at> 10.0.34.226:17852
        callee_cseq:: 102
        callee_route_set:: 

A part of syslog with debug=4 for above dialog is attached (not the same 
dialog as the attached linksys capture).

Relevant kamailio.cfg parts:

modparam("dialog","dlg_flag",4)
modparam("dialog","hash_size",4096)
modparam("dialog","enable_stats",1)
modparam("dialog","db_url",DBURL)
modparam("dialog","db_mode", 2)
modparam("dialog","db_update_period", 15)
modparam("dialog","profiles_with_value","channelsinbound;channelsoutbound")
modparam("dialog","profiles_no_value", "all")
modparam("dialog","dlg_match_mode", 1)
modparam("dialog","send_bye", 1)
modparam("dialog","default_timeout", 43200)
modparam("dialog","ka_timer", 45)
modparam("dialog","ka_interval", 45)

routes to DIALIOG in request_route for CANCEL and before route(SIPOUT)

request_route {

        # per request initial checks
        route(REQINIT);

        # NAT detection
        route(NATDETECT);

        # CANCEL processing
        if (is_method("CANCEL"))
        {
                route(DIALOG);

                if (t_check_trans())
                {
                        t_relay();
                }

                exit;
        }
[...]
        route(DIALOG);

        # dispatch requests to foreign domains
        route(SIPOUT);

routes to DIALOG within WITHINDLG

# Handle requests within SIP dialogs
route[WITHINDLG] {
        if (has_totag()) {
                # sequential request withing a dialog should
                # take the path determined by record-routing
                if (loose_route()) {
                        route(DLGURI);
                        if (is_method("BYE")) {
                                route(DIALOG);
[...]
                        route(RELAY);
                } else {
                        route(DIALOG);
[...]
                exit;
        }
} 

# active calls/dialog management
route[DIALOG]
{
        if (is_method("CANCEL|ACK|BYE") || (has_totag() && is_method("INVITE|
BYE")))
        {
                dlg_manage();
                return;
        }

        if (is_method("INVITE") && !has_totag())
        {
                if($avp(dst_maxchannels))
                {
                        route(MAXCALLSINBOUND);
                }

                if($avp(src_maxchannels))
                {
                        route(MAXCALLSOUTBOUND);
                }

                dlg_manage();
        }
}

route[MAXCALLSOUTBOUND]
{
        if(method=="INVITE")
        {
                if($au!=$null && $avp(src_maxchannels)>0)
                {
                        $var(channelsinbound) = 0;
                        $var(channelsoutbound) = 0;
                        get_profile_size("channelsinbound", "$au", 
"$var(channelsinbound)");
                        get_profile_size("channelsoutbound", "$au", 
"$var(channelsoutbound)");

                        if(($var(channelsinbound)+$var(channelsoutbound))>=$avp(src_maxchannels))
                        {
                                send_reply("403","Call limit reached");
                                exit;
                        }

                        set_dlg_profile("channelsoutbound","$au");
                        dlg_set_property("ka-src");
                }
        }

        return;
}

route[MAXCALLSINBOUND]
{
        if(method=="INVITE")
        {
                if($avp(dst_maxchannels)>0)
                {
                        $var(channelsinbound) = 0;
                        $var(channelsoutbound) = 0;
                        get_profile_size("channelsinbound", "$rU", 
"$var(channelsinbound)");
                        get_profile_size("channelsoutbound", "$rU", 
"$var(channelsoutbound)");

                        if(($var(channelsinbound)+$var(channelsoutbound))>=$avp(dst_maxchannels))
                        {
                                route(CALLREDIRECT);

                                route(TOVOICEMAIL);

                                send_reply("486","Call limit reached");
                                exit;
                        }

                        set_dlg_profile("channelsinbound","$rU");
                        dlg_set_property("ka-dst");
                }
        }

        return;
}

version: kamailio 4.0.2 (x86_64/linux) 
flags: STATS: Off, USE_IPV6, USE_TCP, USE_TLS, TLS_HOOKS, USE_RAW_SOCKS, 
DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, 
USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, 
USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, 
MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 4MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: unknown 
compiled on 11:28:09 Jun 17 2013 with gcc 4.7.2

--

-- 

POCOS B.V. - Croy 9c - 5653 LC Eindhoven
Telefoon: 040 293 8661 - Fax: 040 293 8658
http://www.pocos.nl/   - http://www.sipo.nl/
K.v.K. Eindhoven 17097024
Attachment (linksys.txt.gz): application/x-gzip, 1720 bytes
Attachment (syslog.gz): application/x-gzip, 4776 bytes
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users <at> lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Gmane