Jun 27 15:28:42 elx /usr/sbin/kamailio[25189]: ERROR: uac [replace.c:590]: restore_uri(): new URI shorter than old URI
Jun 27 15:28:44 elx /usr/sbin/kamailio[25187]: ERROR: uac [replace.c:590]: restore_uri(): new URI shorter than old URI
Jun 27 15:28:48 elx /usr/sbin/kamailio[25188]: ERROR: uac [replace.c:590]: restore_uri(): new URI shorter than old URI
Jun 27 15:28:49 elx /usr/sbin/kamailio[25188]: ERROR: uac [replace.c:590]: restore_uri(): new URI shorter than old URI
I am not really sure of what this message is supposed to indicate. It looks something related to uac_restore_[from,to] functions, but some debugging statements just before the use show that the message is not originating from there. This message is showing
up hundreds of times per day.
Hello,
I set two entries of rtpproxy like :
modparam("rtpproxy", "rtpproxy_sock", "1 == udp:127.0.0.1:7722")
modparam("rtpproxy", "rtpproxy_sock", "2 == udp:127.0.0.1:7723")
For a particular case, I want to use the second RTPProxy and the first one
as the default one.
If in a conditional block I set set_rtp_proxy("2"), all other call to
rtpproxy_manage will use the first RTPProxy? Or there is a load-balancing
introduce by default.
Regards,
Igor.
Hello,
I've started playing with an idea to add multiple asterisk servers and
using dispatcher to balance the sip load between them. I added the code
according to dispatcher module documentation (
http://www.kamailio.org/docs/modules/4.2.x/modules/dispatcher.html), but I
think there's something off in my setup:
kamctl ul output shows 2 AORs for one client:
AOR:: 770(a)testers.com
Contact:: sip:770@2.2.2.2:64340;rinstance=c634da314e12385f;transport=UDP Q=
Expires:: 3221
Callid:: ZTE1MWYwYzM3NGNjNjMxMmEzM2JjYWNmNzQyZTdiNGI.
Cseq:: 2
User-agent:: Z 3.2.21357 r21367
State:: CS_SYNC
Flags:: 0
Cflag:: 0
Socket:: udp:1.1.1.1:5060
Methods:: 5087
Ruid:: uloc-53bfe447-35ae-2a2
Reg-Id:: 0
Last-Keepalive:: 1405174150
Last-Modified:: 1405174150
AOR:: 770(a)1.1.1.1
Contact:: sip:770@1.1.1.1:5070 Q=
Expires:: 68
Callid:: 327fcf07641f80006e962821112a61b5(a)testers.com
Cseq:: 754
User-agent:: Asterisk PBX 11.10.2
State:: CS_SYNC
Flags:: 0
Cflag:: 0
Socket:: udp:1.1.1.1:5060
Methods:: 4294967295
Ruid:: uloc-53bfe447-35af-a82
Reg-Id:: 0
Last-Keepalive:: 1405174477
Last-Modified:: 1405174477
I don't think I should be seeing an AOR for 770 where Contact is the public
address of my server (here 1.1.1.1) and User-Agent which is Asterisk.
I'm using Asterisk Realtime integration, and by what I can tell the sip
messages are going nicely, client authenticates with Kamailio and sends
this message to Asterisk (which is on the same machine; Kamailio at 5060
and Asterisk at 5070):
1.1.1.1.sip > 1.1.1.1.vtsas: SIP, length: 374
REGISTER sip:1.1.1.1:5070 SIP/2.0
Via: SIP/2.0/UDP
1.1.1.1;branch=z9hG4bKbc8a.f4473947000000000000000000000000.0
To: <sip:770@1.1.1.1>
From: <sip:770@1.1.1.1>;tag=4a9c3f1c98b9f1c5704acfd1770d93d2-d0c1
CSeq: 10 REGISTER
Call-ID: 7ffa0191-13742(a)1.1.1.1
Max-Forwards: 70
Content-Length: 0
Contact: <sip:770@1.1.1.1:5060>
Expires: 3600
Currently I can make calls from 770 to 123 which is an Asterisk extension
that answers, plays hello world and hangs up. However I can't call another
sip clients when I route calls through Asterisk, they do work fine if I
don't use Asterisk for handling calls, but I'd like Kamailio to be in the
role of proxy/loadbalancer and Asterisk to handle calls.
My config is the simple default config, added with realtime stuff and then
dispatcher according to the documentation. I wonder if there's something
wrong in the REGISTER that Kamailio sends to Asterisk, or maybe something
else going wrong?
Has anyone seen results like this and do you spot something here that needs
fixing?
Thanks,
Olli
sr-users,hello:
http://127.0.0.1:8890/siremis/ser/xrcmds
error info:
[2014-07-14 08:49:30 (GMT)] An exception occurred while executing this script:
Error message: #2, require_once(XML/RPC.php): failed to open stream: No such file or directory
Script name and line number of error: /xxxx/siremis-4.1.0/siremis/modules/ser/service/asipto/libs/cmds/serxr.php:2
why?
can not find the XML/RPC.php file。
2014-07-1417:56:16
MARY
Hi All,
I have been struggling with this issue for a long and could not find a way
to solve it. I have setup FreeSWITCH and Kamailio on the single server but
on a private server with a private IP and fronted by firewall. Firewall has
all the ports opened.
FreeSWITCH is running with nonat. Kamailio has public IP advertised on port
5060 and private IP on 5070 for phones on LAN. Problem is with outbound
calls there is no audio and reason I can see is contact field in SDP has
the private IP of the server instead of the public IP.
Internal device to device calls is working fine. I have tried to rewrite
the SDP and have written below code, but got no success:
request_route
> {
> xlog("L_DBG", "Request Route Enter");
> if (is_method("INVITE"))
> {
> xlog("L_DBG", "Request Route Enter in Invite");
> if (has_body("application/sdp"))
> {
> xlog("L_DBG", "Request Route Enter in SDP of
> Invite");
> if (search("IN IP4 PRIVATE_IP"))
> {
> xlog("L_DBG", "Request Route Search IN IP4
> PRIVATE_IP");
> fix_nated_sdp("8", "PUBLIC_IP");
> fix_nated_sdp("2", "PUBLIC_IP");
> }
> }
> }
> }
>
Can anyone help me to get rid of this.
Thanks,
Anurag Mishra
I don't know how to apply the global flag in Kamailio. Can you give me an
example?
-H
From: Daniel-Constantin Mierla <miconda(a)gmail.com>
Reply-To: <miconda(a)gmail.com>, "Kamailio (SER) - Users Mailing List"
<sr-users(a)lists.sip-router.org>
Date: Thursday, 3 July, 2014 1:47 AM
To: "Kamailio (SER) - Users Mailing List" <sr-users(a)lists.sip-router.org>
Subject: Re: [SR-Users] how to remove non-digits using dp_translate
Hello,
you have to replace [^0-9] with empty, using the global flag.
Cheers,
Daniel
On 02/07/14 23:11, Henry Fernandes wrote:
>
> I'd like to use the dialplan module to remove all non-digits from a string.
> For example, "1-306-555-1234" becomes "13065551234" and "(306) 555-1234"
> becomes "3065551234".
>
>
>
>
> Unfortunately, I can't figure out the regular expressions for subst_exp and
> repl_exp. I can easily replace one instance of a non-digit, however I can't
> figure out how to replace all non-digits.
>
>
>
>
> -H
>
>
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listi
> nfo/sr-users
>
--
Daniel-Constantin Mierla -
http://www.asipto.comhttp://twitter.com/#!/miconda -
http://www.linkedin.com/in/miconda
_______________________________________________ SIP Express Router (SER) and
Kamailio (OpenSER) - sr-users mailing list sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hi
We would like to upgrade or debian instances to the apt repo
for 4.1.4+wheezy.
Is this release soon to be stable and ready for use?
We would like to upgrade so we can get around the memory leak that arises
when many reloads occur as described here:
http://sip-router.org/tracker/index.php?do=details&task_id=436
Thank you very much for any advice any one can offer us.
All the best.
Will Ferrer
Hi,
I have a basic yet weird problem with Rtimer module.
I cannot make it execute a route block for me at an interval of my choice
(which is what it is supposed to do, right?)
Here is a simplified example with relevant parts of my config script:
Assume I want to print "hello" every 100 ms:
I have a script like this (I've put all my global variables, in case they
matter and my relevant route blocks...)
Is there anything I am doing wrong here in the usage of rtimer?
*####### Global Parameters #########*
>
> *#!ifdef WITH_DEBUG*
> *debug=4*
> *log_stderror=yes*
> *#!else*
> *debug=-2*
> *log_stderror=no*
> *#!endif*
>
> *memdbg=5*
> *memlog=5*
>
> *log_facility=LOG_LOCAL0*
>
> *fork=yes*
> *children=4*
>
> */* comment the next line to enable TCP */*
> *disable_tcp=yes*
>
> */* uncomment the next line to disable the auto discovery of local aliases*
> * based on revers DNS on IPs (default on) */*
> *auto_aliases=no*
>
> */* add local domain aliases */*
> *# alias="mysipserver.com <http://mysipserver.com>"*
> *dns=no # (cmd. line: -r)*
> *rev_dns=no # (cmd. line: -R)*
>
> *port=5060*
>
> */* uncomment and configure the following line if you want Kamailio to *
> * bind on a specific interface/port/proto (default bind on all
> available) */*
> *listen=eth0:5060*
>
> *sip_warning=no*
>
> *####### Modules Section ########*
>
> *#set module path*
>
> *#mpath="/usr/local/lib/kamailio/modules_k/:/usr/local/lib/kamailio/modules/"*
> *loadpath "/usr/lib/x86_64-linux-gnu/kamailio/modules"*
>
>
> *#loadmodule "db_mysql.so"*
> *loadmodule "mi_fifo.so"*
> *loadmodule "kex.so"*
> *loadmodule "tm.so"*
> *loadmodule "tmx.so"*
> *loadmodule "sl.so"*
> *loadmodule "rr.so"*
> *loadmodule "pv.so"*
> *loadmodule "maxfwd.so"*
> *loadmodule "textops.so"*
> *loadmodule "siputils.so"*
> *loadmodule "xlog.so"*
> *loadmodule "xprint.so"*
> *loadmodule "sanity.so"*
> *loadmodule "ctl.so"*
> *loadmodule "mi_rpc.so"*
> *loadmodule "acc.so"*
> *loadmodule "dispatcher.so"*
> *loadmodule "exec.so"*
> *loadmodule "rtimer.so"*
> *loadmodule "benchmark.so"*
>
>
> *# ----------------- setting module-specific parameters ---------------*
>
>
> *# ----- mi_fifo params -----*
> *modparam("mi_fifo", "fifo_name", "/tmp/kamailio_fifo")*
>
>
> *# ----- rr params -----*
> *# add value to ;lr param to cope with most of the UAs*
> *modparam("rr", "enable_full_lr", 1)*
> *# do not append from tag to the RR (no need for this script)*
> *modparam("rr", "append_fromtag", 0)*
>
>
> *# ----- acc params -----*
> *modparam("acc", "log_flag", 1)*
> *modparam("acc", "failed_transaction_flag", 3)*
> *modparam("acc", "log_extra", *
> *
> "src_user=$fU;src_domain=$fd;dst_ouser=$tU;dst_user=$rU;dst_domain=$rd;src_ip=$si")*
>
> *# ----- tm params -----*
> *modparam("tm", "fr_timer", 2000)*
> *modparam("tm", "fr_inv_timer", 40000)*
>
> *# ----- dispatcher params -----*
> *modparam("dispatcher", "list_file",
> "/home/ubuntu/Downloads/dispatcher.list")*
> *modparam("dispatcher", "flags", 2)*
> *modparam("dispatcher", "dst_avp", "$avp(AVP_DST)")*
> *modparam("dispatcher", "grp_avp", "$avp(AVP_GRP)")*
> *modparam("dispatcher", "cnt_avp", "$avp(AVP_CNT)")*
>
> *# ----- xlog params -----*
> *modparam("xlog", "buf_size", 8192)*
> *modparam("xlog", "log_facility", "LOG_LOCAL0")*
>
> *# ----- rtimer params -----*
> *modparam("rtimer", "timer", "name=ta;interval=1;mode=1;")*
> *modparam("rtimer", "exec", "timer=ta;route=8")*
>
>
> *####### Routing Logic ########*
>
>
> *# main request routing logic*
> *route {*
> * ...*
>
* # calls various routing blocks, but no explicit call to route("8")*
*}*
*route[8] {*
* # to be executed on timer *
* xplog("L_ALERT","hello");*
*}*