I think I found my missing ACKs! Can anyone tell me why they work be
being sent to the loopback interface? The destination address is
still the external (eth0) IP.
--
Marc Soda, Sr. Systems Engineer
*CoreDial, LLC* | www.coredial.com
1787 Sentry Parkway West, Building 16, Suite 100, Blue Bell, PA 19422
Office: (215) 297-4400 x203 | Fax: (215) 297-4401 | Email:
msoda(a)coredial.com
- - - - -
The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you received
this in error, please contact the sender and delete the material from any
computer.
i have noticed lots of these kind of attacks in my syslog:
/var/log/syslog.1:Aug 21 04:23:46 host /usr/sbin/sip-proxy[13490]: ERROR: <core> [parser/parse_cseq.c:95]: parse_cseq(): ERROR: CSeq EoL expected
/var/log/syslog.1:Aug 21 04:23:46 host /usr/sbin/sip-proxy[13490]: ERROR: <core> [parser/parse_cseq.c:98]: parse_cseq(): ERROR: parse_cseq: bad cseq
/var/log/syslog.1:Aug 21 04:23:46 host /usr/sbin/sip-proxy[13490]: ERROR: <core> [parser/msg_parser.c:161]: get_hdr_field(): ERROR: get_hdr_field: bad cseq
in order to be able to fail2ban the attacker, source ip address should
appear in syslog message.
is there a way to catch sip request syntax errors in config file so that
appropriate syslog message could be generated?
-- juha
Dear All,
I am looking into feature 'file transfer' between my two SIP
clients(IMSDroid). With this regards i found two kamailio modules - XMPP
and MSRP. I do read its README files and after i stuck with the following
queries:
Which module is suits to achieve file transfer feature ?
Is there any relation between these two modules in getting file transfer ?
If so how can i use this modules in my kamailio configuration ?
please anyone help me in getting this issue solved.
Any help will greatly appreciate.
Regards,
Nandini
Dear All,
I am working on XMPP module of kamailio(4.0.2) server along with Jabberd2
xmpp server (as recommended in XMPP module's README).
I was successful in setting-up Jabberd sever and i can transfer files
through it (using Jitsi's XMPP clients) as a standalone xmpp server.
But the problem is when trying to integrate this jabberd2 server with my
kamailio server.
*Problem*:
After starting Kamailio sever, Syslog is given the error as follows:
Aug 28 19:45:14 kamailio /usr/local/sbin/kamailio[
19648]: ERROR: xmpp [network.c:110]: net_connect(): resolving
xmpp.example.com failed (Unknown host).
And XMPP related Configuration in Kamailio.cfg is as follows:
# ----- XMPP -----
#!ifdef WITH_XMPP
modparam("xmpp", "backend", "component")
modparam("xmpp", "domain_separator", "*")
modparam("xmpp", "gateway_domain", "192.168.2.41")
modparam("xmpp", "xmpp_domain", "192.168.2.41")
modparam("xmpp", "xmpp_host", "192.168.2.41")
modparam("xmpp", "xmpp_port", 5347)
modparam("xmpp", "xmpp_password", "xmpp")
modparam("xmpp", "outbound_proxy", "sip:192.168.2.41;transport=tcp")
modparam("xmpp", "gwmap", "192.168.2.41")
modparam("presence", "db_url", "mysql://kamailio:kamailiorw@kamailio
/kamailio")
modparam("usrloc", "db_url", "mysql://kamailio:kamailiorw@kamailio
/kamailio")
modparam("pua", "db_url", "mysql://kamailio:kamailiorw@kamailio/kamailio")
modparam("pua", "db_table", "pua")
modparam("presence_xml", "db_url", "mysql://kamailio:kamailiorw@kamailio
/kamailio")
#modparam("presence_xml", "integrated_xcap_server", 1)
modparam("presence", "max_expires", 3600)
modparam("presence", "server_address", "sip:192.168.2.41:5060")
modparam("pua_xmpp", "server_address", "sip:192.168.2.41")
#!endif
#-----XMPP----
# Presence server route
route[PRESENCE]
#!ifdef WITH_XMPP
# if ($rd =="192.168.2.41") {
if (!t_newtran())
{
sl_reply_error();
exit;
};
};
# if( is_method("NOTIFY") && uri=~"sip:.+@192.168.2.41")
if( is_method("NOTIFY"))
{
xlog("processing NOTIFY...\n");
pua_xmpp_notify();
t_reply("200", "OK");
exit;
}
if(is_method("PUBLISH"))
{
xlog("processing PUBLISH ...\n");
if($hdr(Sender)!= $null)
{
xlog("Sender header found.\n");
}
handle_publish();
t_release();
}
else
if( is_method("SUBSCRIBE"))
{
xlog("processing SUBSCRIBE ...\n");
handle_subscribe();
if( uri=~"sip:.+@192.168.2.41" && $hdr(Event)== "presence")
{
xlog("calling pua_xmpp_req_winfo()\n");
pua_xmpp_req_winfo("$ruri", "$hdr(Expires)");
}
t_release();
}
exit;
#!endif
What could be the wrong with this ?
And regarding *File transfer *feature in kamailio, is there any other ways
to get through?
Any help will greatly appreciate.
Regards,
Nandini
Hello,
I just want to announce that we will have a consistent presence this
year at Astricon - it is the 10th edition, taking place in Atlanta, GA,
USA, during October 8-10, 2013.
Using Kamailio and Asterisk together is very common and we want to make
sure everyone uses properly the best of each. There will be several
presentation from Kamailio developers as well as presence in expo area
for demos and group chats. You can read more details at:
-
http://www.kamailio.org/w/2013/08/astricon-2013-the-10-years-celebration/
For details about the event itself, head directly to:
- http://www.astricon.net
Looking forward to meeting many of you at Astricon!
Cheers,
Daniel
--
Daniel-Constantin Mierla - http://www.asipto.comhttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Hi,
I know that this is not the purpose of the proxy but there is a situation
in which our kamailio needs to playback early media for a small number of
calls.
Which module will be most suitable for this?
One way is to use rtpproxy and just functions such asrtpproxy_stream2... to
play back the prompts to the caller.
Note that the caller is not behind NAT or behind any symmetric firewall. So
we a free to choose.
We know we could do it easily by dispatching to asterisk where we use the
Progress() app or similar for freeswitch but we don't want add the overhead
of a new media server installation and configuration.
We need a kamailio based one box solution.
Hello, I have a question about the load balancer module of kamailio.
As the site http://kb.asipto.com/ say, Kamailio is as a SIP proxy router to scale Asterisk.
Can I run a kamailio instance as the load balancer, and other several instances as voice service replace of Asterisk?
If I can do that, could you give me a tutoral? We are using kamailio as our server. Thank you very much.
------------------
Best Regards!
Hello,
Can any one please provide the documentation for integrating PCSCF with
Kamailio.
The link for the documentation for ims_registrar_pcscf is not found. (
http://kamailio.org/docs/modules/devel/modules/ims_registrar_pcscf.html)
Please tell me what are the modules are to be loaded before pcscf.
Thank you,
Kota Sai Krishna
The example is the raw command to send, but kamctl takes care to format
it. You should do:
kamctl fifo profile_list_dlg callers
or
kamctl fifo profile_list_dlg callers _URI_
Replace the _URI_ with the value that was in $fu.
Cheers,
Daniel
On 8/23/13 3:34 PM, Gertjan Wolzak wrote:
>
> I have tried with kamctl...
>
> But because I found the documentation not very clear, I think I am
> doing it wrong.
>
> Let's take the 8.6:
>
> :profile_list_dlgs:_reply_fifo_file_
>
> inbound_calls
>
> _empty_line_
>
> Where the parameters are profile and value, whereby the value is optional.
>
> I tried : kamctl fifo :profile_list_dlgs:
> _/reply_fifo_file/_inbound_calls callers
>
> Im pretty sure that is not correct.
>
> Been looking for the correct why on google, but can find a clear
> explanation.
>
> Gertjan.
>
> *From:*sr-users-bounces@lists.sip-router.org
> [mailto:sr-users-bounces@lists.sip-router.org] *On Behalf Of
> *Daniel-Constantin Mierla
> *Sent:* vrijdag 23 augustus 2013 15:06
> *To:* Kamailio (SER) - Users Mailing List
> *Subject:* Re: [SR-Users] hanging active dialog...
>
> Have you listed the profile via kamctl or kamcmd? The commands are in
> the readme:
>
> http://kamailio.org/docs/modules/stable/modules/dialog.html#idp3737432
>
> Is the afferent profile listing any dialog?
>
> Cheers,
> Daniel
>
> On 8/23/13 2:50 PM, Gertjan Wolzak wrote:
>
> Hello Carlos,
>
> I have been looking at your module, can't wait to work with it,
> especially the prepaid part.
>
> But as this system is in production, can't just start
> experimenting, want to.... But cant.
>
> So just have to wait for some tips on the cli....
>
> But thanks.
>
> Rgds,
>
> Gertjan
>
> *From:*sr-users-bounces@lists.sip-router.org
> <mailto:sr-users-bounces@lists.sip-router.org>
> [mailto:sr-users-bounces@lists.sip-router.org] *On Behalf Of
> *Carlos Ruiz Díaz
> *Sent:* vrijdag 23 augustus 2013 14:37
> *To:* Kamailio (SER) - Users Mailing List
> *Subject:* Re: [SR-Users] hanging active dialog...
>
> I don't know what exactly happened in your case but if you don't
> have time to investigate you can try cnxcc module [1] channel
> control to achieve the same goal.
>
> Take a look at the sample configuration file located in [2]
>
>
>
> xlog("L_INFO", "Setting up channel based
>
> credit control")/;/
>
>
>
>
>
> $var(max_chan) *=* 2;
>
>
>
> $var(retcode) = cnxcc_set_max_channels("$var(client)", "$var(max_chan)");
>
>
>
>
>
> if ($var(retcode) *=*= -1) {
>
>
>
> xlog("Error setting up credit control");
>
> return;
>
>
>
> }
>
>
>
>
>
> $var(count) *=* -1;
>
>
>
>
>
> if (!cnxcc_get_channel_count("$var(client)", "$var(count)")) {
>
>
>
> xlog("Error getting customer's channel count"
>
> )/;/
>
>
>
> }
>
>
>
>
>
> xlog("L_INFO", "CNXCC ROUTE: $var(client) has $var(count) call(s)")/;/
>
>
>
>
>
> if ($var(retcode) < -1) {
>
>
>
> xlog("Too many channels for custome
>
> r")/;/
>
>
>
> sl_send_reply(403, "Forbidden")/;/
>
>
>
>
>
> if (!cnxcc_terminate_all("$var(client)")) {
>
>
>
> xlog("Error terminating customer's calls")/;/
>
>
>
> }
>
>
>
>
>
> exit/;/
>
> }
>
>
>
>
>
> [1]http://kamailio.org/docs/modules/devel/modules/cnxcc.html
>
> [2]https://github.com/caruizdiaz/cnxcc/blob/master/example/kamailio-cnxcc.cfg
>
>
>
> Regards,
>
> Carlos
>
>
>
> On Fri, Aug 23, 2013 at 5:16 AM, Gertjan Wolzak
> <g.wolzak(a)foize.com <mailto:g.wolzak@foize.com>> wrote:
>
> Goodmorning All,
>
> I use the following route to check for concurrent calls by the
> same user, if a concurrent call is tried it is not allowed.
>
> route[CONCURRENT]
>
> {
>
> xlog("SCRIPT: Conccurrent call check");
>
> if(!get_profile_size("caller","$fu","$avp(nrcalls)"))
>
> {
>
> sl_send_reply("403", "Call not matching profile");
>
> exit;
>
> }
>
> xlog("SCRIPT: caller value for $fu is $avp(nrcalls)");
>
> if($avp(nrcalls)>= 1)
>
> {
>
> sl_send_reply("403", "Active calls limit exceeded");
>
> exit;
>
> }
>
> dlg_manage();
>
> if(!set_dlg_profile("caller","$fu"))
>
> {
>
> sl_send_reply("500", "No new channels in this profile");
>
> exit;
>
> }
>
> xlog("SCRIPT: caller value for $fu is now $avp(nrcalls)");
>
> }
>
> Now I had a situation where a user could not call because the
> get_profile_size for this user gave the value 1. So another call
> was not allowed.
>
> But the user did not have a call active. As no dialogs were
> active, checked that.
>
> I assume there can be a lot of reasons why this happens, also I
> want to use the "I don't want to know the cause" method to solve this.
>
> So I looked at the dialog module documentation, to see if I can
> just clear the profile size for this specific user.
>
> I wanted to use the profile_list_dlgs(8.6) to get the dialog
> details, then the dlg_terminate_dlg(8.4) to, you guessed it,
> terminate that dialog.
>
> But it's not clear to me how I can give those commands....
>
> Is there a way to give those commands on the cli, if so can
> someone please write down some examples...
>
> Would be really appreciated.
>
> Rgds,
>
> Gertjan
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing
> list
> sr-users(a)lists.sip-router.org <mailto:sr-users@lists.sip-router.org>
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
>
> --
> Carlos
>
> http://caruizdiaz.com
>
> +595981146623
>
>
>
>
> _______________________________________________
>
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>
> sr-users(a)lists.sip-router.org <mailto:sr-users@lists.sip-router.org>
>
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
>
> --
> Daniel-Constantin Mierla -http://www.asipto.com
> http://twitter.com/#!/miconda <http://twitter.com/#%21/miconda> -http://www.linkedin.com/in/miconda
--
Daniel-Constantin Mierla - http://www.asipto.comhttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Hello,
Can any one please provide the documentation for integrating PCSCF with
Kamailio.
The link for the documentation for ims_registrar_pcscf is not found. (
http://kamailio.org/docs/modules/devel/modules/ims_registrar_pcscf.html)
Please tell me what are the modules are to be loaded before pcscf.
Thank you,
Kota Sai Krishna