Hi,
I'm looking to catch the local 408 response generated by kamailio after the
fr_timer strikes in. I was assuming to get it in the sl:local-request, but
I dont see it in my log messages.
I can catch responses like a 200 for register or a 487 for a message who's
transaction is not yet created. Any proper way on how do I get to know when
kamailio generates a local 408?
I'm on the master branch (commit: 54562b873c2c3d0a04f0587e7706188a3eb19a74).
Thanks,
- Jayesh
Hi,
we are suspending a transaction at one place in our route and resume
it later. I want to log the time difference between suspending and
resuming. I thought I could do it with saving $TV(Sn), but apparently
I can't. Kamailio says, it can't convert the saved value into integer.
This true, of course.
I was searching for a transformation function converting this string
into float, but there is none.
Is there any way to calculate a time difference other than to live
with seconds-only precision?
Best Regards,
Sebastian
Dear List:
I wonder if this has been asked before. Please ignore or point to the
appropriate source, if needed.
Simply, I have little experience with SIP servlets implementing WEBRTC/
Click2Call etc...
Considering a Call Centre scenario offering a WEBRTC solution. Following
are the confusions regarding requirements:
1: A Kamailio Box (running WEBSOCKET.config)
2: Customer will use web browser (websocket compatible of course) and enter
address of the KAMAILIO Box or we shall need another KAMAILIO to
statelessly forward the call to next available operator using Hunt Group or
similar scheme?
3: If we don't plan to implement TLS/ MSRP (disabling these in the config
file should be suffice?)
4: Last, but not the least, how will the users send request for login from
browser? (assuming they have accounts created in the DB on Kamailio Box
running WEBSOCKET supported KAMAILIO)
With anticipatory thanks & regards,
Zaka
Hello,
I would of your help installing Kamailio with the ability to authenticate
to an HSS. Mainly want each IMS service to run on a different machine, ie,
P / S / I-CSCF. I've tried several ways to set up, but without success.
Does anyone have a step by step?
I count on help.
Hug.
Att.,
--
Rodrigo M.
(37) 9132-4539
(34) 9889-3069
rodrigo.moreira2007
Hey list,
So I'm using the outbound module to ensure subsequent requests are
delivered over an active TCP connection established by the mobile client.
However, now I'm trying to add support for automatically responding to
network changes (WiFi <-> LTE), and it's creating problems.
Primarily, the issue is that when the device sends a re-INVITE for the
call, its Route: header includes a flow-token corresponding to its *old* socket
connection. Because the new request doesn't have the same source IP/port as
the old connection did Kamailio thinks that the next route hop it needs to
take is to pass the request over to the connection identified by the flow
token. So it actually tries to re-open a TCP connection back out to the
client even though I'm making the re-invite because that old transport is
no longer valid.
Does anyone have a recommended way of handling this case? I can add another
header/param to the route header and manually remove it. Before
loose_routing.
Essentially, on in-dialog INVITE requests I want to ignore the outbound
token on the originating side but I can't seem to find a way to do that
without re-writing the header before loose_routing.
Best,
Colin
Hi,
I'm trying to use this line in one route:
$shtinc(pushedUsers=>$avp(s:authuser));
However, when checking the syntax of this file, Kamailio says:
0(609) : <core> [cfg.y:3365]: yyerror_at(): parse error in config
file /etc/kamailio/kamailio_sip_proxy.cfg, line 3304, column 2-39:
read only pvar in assignment left side
According to the pseudo vars documentation, I should be able to use it
like that.
Can someone tell me what I am missing?
Best Regards,
Sebastian
Hello,
we are using tsilo to achieve mobile push notification in kamailio.
In tsilo module documentation, ts_append() function is used with the pseudo
variable “$tU” holding the username of the to-uri.
Our config looks like :
route[PUSHJOIN] {
$var(hjoin) = 0;
lock("$tu");
$var(hjoin) = $sht(vtp=>join::$tu);
$var(hstored) = $sht(vtp=>stored::$tu);
$sht(vtp=>join::$tu) = $null;
unlock("$tu");
if ($var(hjoin)==0) {
if ($var(hstored)) {
ts_append("location", "$tU");
}
return;
}
$var(id_index) = $(var(hjoin){s.select,0,:}{s.int});
$var(id_label) = $(var(hjoin){s.select,1,:}{s.int});
t_continue("$var(id_index)", "$var(id_label)", "INVRESUME");
}
In ts_append() function code, ts_check_uri() is called on a variable holding
a username and not a URI causing the failure of the function ts_check_uri()
and resulting in ts_append() to exit. The following line is displayed in the
log: [tsilo.c:205]: ts_check_uri(): bad uri [giovanni.mele].
The function ts_store() stores in the R-URI field the username and not the
request URI.
route[RELAY] {
# enable additional event routes for forwarded requests
# - serial forking, RTP relaying handling, a.s.o.
if (is_method("INVITE|BYE|SUBSCRIBE|UPDATE")) {
if(!t_is_set("branch_route")) t_on_branch("MANAGE_BRANCH");
}
if (is_method("INVITE|SUBSCRIBE|UPDATE")) {
if(!t_is_set("onreply_route")) t_on_reply("MANAGE_REPLY");
}
if (is_method("INVITE")) {
if(!t_is_set("failure_route"))
t_on_failure("MANAGE_FAILURE");
}
if (!t_relay(PROXY_IP, PROXY_PORT)) {
sl_reply_error();
}
if (is_method("INVITE")) {
ts_store();
$sht(vtp=>stored::$tu) = 1;
route(SENDPUSH);
}
exit;
}
route[INVRESUME] {
statsd_gauge("SIPRegistrar.InviteResumed", "+1");
lookup("location");
t_relay(PROXY_IP, PROXY_PORT);
ts_store();
$sht(vtp=>stored::$tu) = 1;
}
With the command “kamcmd ts.dump” we can see the following lines:
R-URIs: {
R-URI: giovanni.mele
Hash: 74014921
Transactions: {
Transaction: {
Tindex: 63704
Tlabel: 2105932514
}
}
}
If we try to use the ts_append() function with the pseudo variable “$tu”
holding the full to-uri address, there is no error returned by
ts_check_uri() (as this is called on a correct URI) but the transaction
corresponding to the to-uri cannot be found (maybe because the R-URI stored
by ts_store() is the username and not the full R-URI).
How can we make things work ? By storing the full R-URI with ts_store() ?
Thx for your help
Giovanni
--
View this message in context: http://sip-router.1086192.n5.nabble.com/tsilo-ts-append-problem-tp150184.ht…
Sent from the Users mailing list archive at Nabble.com.
Hi,
I upgraded one of our systems today to 4.4.1. And when checking
whether everything is okay, I noticed, that only the first UDP
listener (from kamcmd core.ps) is actually sending lines to the log.
The only other logs I see are from usrloc timer worker.
kamcmd> core.ps
10737
main process - attendant
10740
udp receiver child=0 sock=172.20.40.5:5060
10741
udp receiver child=1 sock=172.20.40.5:5060
10742
udp receiver child=2 sock=172.20.40.5:5060
10743
udp receiver child=3 sock=172.20.40.5:5060
We are sending quite a lot of information via xlog("L_NOTICE", "foo");
to syslog, but the only lines I see are from PID 10740. Kamailio works
fine otherwise, handling all requests, the usrloc entries didn't drop,
and customers don't complain. So I think it's only a logging issue.
There are about 50k registrations on the machine and more than 10 Mbit
of traffic.
When I downgrade to 4.3.5, I get output from all listeners again.
Has there been any change between 4.3 and 4.4 regarding logging? The
upgrade document says nothing about this.
Best Regards,
Sebastian
Hi,
Thanks. Well I tried it before also but could not proceed with since
I got the compilation errors.
Now also I am struck up with the same error mentioned in
http://lists.sip-router.org/pipermail/sr-users/2016-January/091574.html
Has anybody found a solution to this? Mine is Ubuntu 12.x LTS
regards
Ganesh Kumar
On 7/7/16, Daniel-Constantin Mierla <miconda(a)gmail.com> wrote:
> Hello,
>
> look at cnxcc module for implementing a prepaid system. There should be
> also a presentation about it at one of the kamailio world conferences --
> see kamailio.org/events/
>
> Cheers,
> Daniel
>
>
> On 07/07/16 11:33, Infinicalls Infinicalls wrote:
>> Hi Daniel,
>>
>> Thanks. I figured out later :-)
>>
>> I am actually trying to implement prepaid system with dialog and call
>> control. In Siremis, after a call the duration and other details get
>> updated but not the cost. This is inspite of having rates and
>> kamailio_cdr / kamailio_rating() in cron.
>>
>> Any idea?
>>
>> regards
>> Ganesh Kumar
>>
>> On 7/7/16, Daniel Tryba <d.tryba(a)pocos.nl> wrote:
>>> On Wed, Jul 06, 2016 at 11:01:17PM +0530, Infinicalls Infinicalls wrote:
>>>> " ERROR: <core> [modparam.c:150]: set_mod_param_regex(): No module
>>>> matching <call_control> found
>>>> "
>>>> while adding modparam("call_control", "disable", 1). I have already
>>>> included pv and dialog in the modules list.
>>>>
>>>> Any idea?
>>> Try loading the module first :)
>>>
>>> https://www.kamailio.org/wiki/cookbooks/4.4.x/core#loadmodule
>>>
>>>
>>> _______________________________________________
>>> 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
>>>
>> _______________________________________________
>> 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
>
> --
> Daniel-Constantin Mierla
> http://www.asipto.com - http://www.kamailio.org
> http://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
>
--
--
http://www.infinicalls.com
Dear All,
I'm trying to set a few parameters for an "INVITE", and access their values in the failure routine if the call fails. $var() doesn't seem suitable for my purpose as it only lasts for one process. I think if I set a $var() in "INVITE", it will be gone when I receive the failure response. $sht() seems able to last long but it will be accessed by all processes which might include ones not belonging to the same dialog. I wonder if somebody would give me some suggestions here to handle such situations. Does Kamailio provide a mechanism to set up a parameter with a life span of the entire dialog? Thanks.
Regards,Jay