Hi,
With this LCR release from Kamailio 3.1 the table 'lcr_gw' makes four
fields unique: lcr_id, ip_addr, port and hostname.
This table is also responsible for setting 'strip' and 'tag' parameters
values for the gateways.
What I am trying to accomplish is to use different strip and tag values for
the SAME gateway based only on what was dialed by the user.
In 1.5 LCR for example, if user dialed 444 or 555 and both prefix belongs to
the same gateway, I could use gw-sip for 444 (…
[View More]with values strip 1 and
prefix 22) and also gw-sip for 555 (with values strip 2 and prefix 33).
While this duplicate data, it was possible to play with routes without
touching the config file.
I am looking for ideas on how to implement that on K3.1 without using ifs,
strip and prefix tied (statically) in the script file. As far as I know, for
every new lcr_id inserted, I will need a corresponding load_gws(new_lcr_id)
in the script.
Regards,
Alexandre.
[View Less]
Hi,
does anybody have some knowledge or experience with DBTEXT module? I'm
searching for working DBTEXT files examples and config files examples...
thanks
palo
Is there any framework available to do functional and regression testing
of SIP presence and BLF? Ideally I'm looking for a tool for asserting
the signaling flow and contents of the XML body (state, version numbers
etc), also I'd like to be able to extract the tags and call-id into
variables so as to create INVITE with Replaces.
Working with message body variables in sipp is a pain. I'm also familiar
with SIPr, Net::SIP and a few others, but that doesn't look suitable for
someone without …
[View More]much development experience. Spirent is a perhaps a
little closer than others in implementing pickup scenario but awkward
when you go beyond the default test scenarios.
So I'm interested in any information, tips, suggestions, commercial
tools etc. I'm asking here 'cause judging from the quality of their
BLF&presence OpenSIPS and Kamailio got the testing process just right.
--
Sincerely,
Andrew Pogrebennyk
[View Less]
Hi everybody,
We are having an uncontrolled crash in Kamailio 3.1:
May 10 20:34:51 tip1 /usr/local/kamailio-3.1/sbin/kamailio[23366]: : <core> [pass_fd.c:293]: ERROR: receive_fd: EOF on 39
May 10 20:34:51 tip1 /usr/local/kamailio-3.1/sbin/kamailio[23327]: ALERT: <core> [main.c:741]: child process 23364 exited by a signal 11
May 10 20:34:51 tip1 /usr/local/kamailio-3.1/sbin/kamailio[23327]: ALERT: <core> [main.c:744]: core was not generated
I've read in several posts I must …
[View More]generate the "Core Dump" to know what is happening. I'm trying to generate it in this way.
"/etc/init.d/Kamailio" file:
if test "$DUMP_CORE" = "yes" ; then
1. set proper ulimit
ulimit -c unlimited
directory for the core dump files
COREDIR=/dumps/
[ -d $COREDIR ] || mkdir $COREDIR
chmod 777 $COREDIR
echo "$COREDIR/core.%e.sig%s.%p" > /proc/sys/kernel/core_pattern
fi
"/etc/default/Kamailio" file:
DUMP_CORE=yes
But the core is not yet generated.
Then I've added -w option:
OPTIONS="-P $PID_FILE -m $MEMORY -u $USER -g $GROUP -w /dumps/"
But core still not generated
In "kamailio.cfg" I´ve also added:
disable_core_dump=no
User running Kamailio is "kamailio" who has 777 permissions in /dumps/ directory. No way.
Anyhelp would be appreciated.
Cheers,
Ricardo Domínguez
[View Less]
Hi All,
So I'm still banging away at monitoring various SIP trunk capacity,
the dialog module is working well for this purpose. I am running
local server cron job scripts to pull data and put into local flat
files for reference.
My next step is to pull this data from a remote server and graph with
MRTG (this is what I use for most other network monitoring). It looks
like I can use the mi_xmlrpc module and remotely query the SIP Router
with kamctl commands and parse the results into MRTG.
I'…
[View More]m interested in hearing from others that may have already done this
and would not mind sharing some scripts or from anyone that has an
alternative method.
Any guidance or affirmation that this is a good method that works
would be helpful.
On the MRTG server, I'm using perl scripts for a lot of my data
pulling. I am using Kamailio 3.0.
Thanks.
JR
--
JR Richardson
Engineering for the Masses
[View Less]
Hi All,
Been playing around with the dialog module to help me keep track of
SIP trunk utilization, trying to identify how many calls are active on
each SIP trunk. My dialog count for inbound calls is 10 (correct) but
my outbound calls are always double that and I'm not sure why. Here
is a snip of my config:
loadmodule "dialog.so"
if($rU=~"^111") {
dlg_manage();
dlg_setflag("4");
set_dlg_profile("inbound","trunk111");
…
[View More]route(PDT);
exit;
}
PDT lookup for prefix then call is forwarded to dispatcher to route
out to carrier through 'route[relay]'
route[RELAY] {
dlg_setflag("4");
set_dlg_profile("outbound","$rd");
if (!t_relay()) {
sl_reply_error();
exit;
}
exit;
}
I setup 10 active calls and here are my results:
test-sip-router2:~# kamctl fifo profile_get_size inbound
profile:: name=inbound value= count=10
test-sip-router2:~# kamctl fifo profile_get_size outbound
profile:: name=outbound value= count=20
Also 'kamctl fifo dlg_list' will list only 10 active dialogs.
So my question is, why am I getting a 20 count for outbound and only
10 count for inbound?
Thanks.
JR
--
JR Richardson
Engineering for the Masses
[View Less]
Hi!
In the Documentation of the TMX Module for the t_reply function there is given a list of Parameters as can be seen here:
http://www.kamailio.org/docs/modules/3.1.x/modules_k/tmx.html#id2822345
The third parameter is a trans_id. I cannot find any references for this. Is it possible to send a query to the MI Datagram socket, to do a lookup of the trans_id for a given callid or is there any other solution to get this information through the MI datagram socket, to be able to execute t_reply?
…
[View More]
It seems that t_reply_callid is doing what I want to do, but currently not through the MI Datagram socket and not including a body or new headers.
Greetings Torge
[View Less]
Hello,
Is this still applicable?
See INSTALL file (line 669)
3.1) create MySQL tables for SER flavour
- if you have a previously installed SER on your system, use
/usr/sbin/ser_mysql.sh reinstall
to convert your SER database into new structures
- otherwise, if this is your very first installation, use
/usr/sbin/ser_mysql.sh create
to create SER database structures
(you will be prompted for password of MySql "root" user)
Because I did …
[View More]not found the *reinstall* option on sources..
Thanks,
Claudio
[View Less]
> On 09.05.2011 22:44, JR Richardson wrote:
> > Would there be any usage examples of dialog module? I'm not sure if I
> > really need profiles and [values] and when to set and unset. A push
> > in the right direction would be helpful.
>
> Hi,
> here is an example I've used for incoming and outgoing calls tracking,
> just tune it for your purposes:
>
> loadmodule "dialog.so"
> modparam("dialog", "dlg_flag", 4)
> modparam("dialog", "db_mode", 1)
&…
[View More]gt; modparam("dialog", "profiles_with_value", "carrierin;carrierout")
> ...
> create_dialog();
> if(is_from_gw())
> {
> # Monitor number of incoming calls
> get_profile_size("carrierin","$si","$avp(s:cnt)");
> xlog("L_INFO", "----- currently, the carrier $si has
> $avp(s:cnt) active outgoing calls\n");
> set_dlg_profile("carrierin","$si");
> } else {
> # Monitor number of outgoing calls
> get_profile_size("carrierout","$rd","$avp(s:cnt)");
> xlog("L_INFO", "----- currently, the carrier $rd has
> $avp(s:cnt) active outgoing calls\n");
> set_dlg_profile("carrierout","$rd");
> }
>
> --
> Sincerely,
> Andrew Pogrebennyk
Thanks Andrew, very nice example, this will definitely help.
Have a great day.
JR
[View Less]