Hi,
I am trying to use t_suspend()/t_continue() multiple times on the same
transaction. Calling t_suspend() more than once works, but the second
time I call t_continue() the transaction is killed and a 500 response is
sent. It is the "if (branch == t->nr_of_outgoings)" check from the code
fragment below (from t_suspend.c:t_continue()) that results in the
transaction being killed - you can see the debug/error line I added to
determine this in the fragment.
Is using t_suspend()/t_continue() multiple times something that should
work?
Thanks,
Peter
if (t->uas.status < 200) {
/* No final reply has been sent yet.
* Check whether or not there is any pending branch.
*/
for ( branch = 0;
branch < t->nr_of_outgoings;
branch++
) {
if ((t->uac[branch].request.buffer != NULL)
&& (t->uac[branch].last_received < 200)
)
break;
}
if (branch == t->nr_of_outgoings) {
/* There is not any open branch so there is
* no chance that a final response will be
received. */
ret = 0;
LM_ERR("branch == t->nr_of_outgoings\n");
goto kill_trans;
}
}
--
Peter Dunkley
Technical Director
Crocodile RCS Ltd
Module: sip-router
Branch: master
Commit: 37812cef5fb1ee2022592de24bbae48352e17524
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=37812ce…
Author: Peter Dunkley <peter.dunkley(a)crocodile-rcs.com>
Committer: Peter Dunkley <peter.dunkley(a)crocodile-rcs.com>
Date: Tue Apr 10 18:05:10 2012 +0100
modules_k/presence: RFC 4827 (presence hard-state) support
- Hard-state presence documents are stored as pidf-manipulation
documents in the integrated XCAP server.
- When one of these documents is put/deleted/changed it can
be "published" using the new pres_update_presentity() exported
function.
- Because the original document is in XCAP a client can download
it and manipulate it directly.
- Hard-state documents have an expiry time of -1 and never expire
(the clean function in presence has been updated to make sure of
this).
- The filename of the document is used as the ETag value in the
presentity table. This enables multiple hard-state documents
(with different filenames) to be uploaded for each subscriber.
- Hard-state is useful for permanently setting an avatar, or an
out-of-office message, etc.
---
modules_k/presence/README | 302 ++++++++++++++++++-----------
modules_k/presence/doc/presence_admin.xml | 99 ++++++++++
modules_k/presence/presence.c | 128 ++++++++++++-
modules_k/presence/presence.h | 5 +
modules_k/presence/presentity.c | 87 ++++++---
modules_k/presence/publish.c | 200 +++++++++++++++++++-
modules_k/presence/publish.h | 2 +-
7 files changed, 679 insertions(+), 144 deletions(-)
Diff: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commitdiff;h=378…
Hello,
currently I am looking for an option to evaluate a string with
pseudo-variables at script runtime.
For example when reading the following string (in script) from database
"from is $fu and to-uri-user is $(tu{uri.user}) and cl is $cl"
into a pseudo-variable $var(tmp)
I want kamailio to parse the _content_ of $var(tmp): replace the
"inside"-pvs with their values and perform transformations.
Is there a function exported to script, that could do that?
(Background: I would like to make the lcr-module a bit more flexible:
read "template"-string for fromuri, touri, ruri from database instead of
ruri-strip, ruri-prefix etc.)
Kind Regards
Jasmin
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
A new Flyspray task has been opened. Details are below.
User who did this - Jon Tsiros (CiscoGeek)
Attached to Project - sip-router
Summary - Kamailio looses track of location entries
Task Type - Bug Report
Category - Core
Status - Unconfirmed
Assigned To -
Operating System - All
Severity - Low
Priority - Normal
Reported Version - Development
Due in Version - Undecided
Due Date - Undecided
Details - Over a period of time, location entries in memory become out of sync with entries in the database. I managed to capture the MySQL queries that attempt to update a particular entry after it is deleted from the database:
5 Query update location set expires='2012-04-27 05:21:55',q=0.80 ,cseq=393,flags=0,cflags=0,user_agent='PolycomSoundPointIP-SPIP_550-UA/3.2.4.0267',received='sip:xx.xx.xx.xx:5060',path='<sip:xx.xx.xx.xx;lr;received=\"sip:xx.xx.xx.xx:5060\">',socket='udp:xx.xx.xx.xx:5060',methods=8159,last_modified='2012-04-27 05:16:18' where username='2012049699' AND contact='sip:2012049699@xx.xx.xx.xx:5060' AND callid='54f18079-9ca165bc-9eed12e3(a)192.168.1.7'
5 Query update location set expires='2012-04-27 05:26:36',q=0.80 ,cseq=395,flags=0,cflags=0,user_agent='PolycomSoundPointIP-SPIP_550-UA/3.2.4.0267',received='sip:xx.xx.xx.xx:5060',path='<sip:xx.xx.xx.xx;lr;received=\"sip:xx.xx.xx.xx:5060\">',socket='udp:xx.xx.xx.xx:5060',methods=8159,last_modified='2012-04-27 05:20:59' where username='2012049699' AND contact='sip:2012049699@xx.xx.xx.xx:5060' AND callid='54f18079-9ca165bc-9eed12e3(a)192.168.1.7'
5 Query insert into location (username,contact,expires,q,callid,cseq,flags,cflags,user_agent,received,path,socket,methods,last_modified ) values ('2012049699','sip:2012049699@xx.xx.xx.xx:5060','2012-04-27 05:31:16',0.80 ,'54f18079-9ca165bc-9eed12e3(a)192.168.1.7',396,0,0,'PolycomSoundPointIP-SPIP_550-UA/3.2.4.0267','sip:xx.xx.xx.xx:5060','<sip:xx.xx.xx.xx;lr;received=\"sip:xx.xx.xx.xx:5060\">','udp:xx.xx.xx.xx:5060',8159,'2012-04-27 05:25:39')
5 Query delete from location where username='2012049699' AND contact='sip:2012049699@xx.xx.xx.xx:5060' AND callid='54f18079-9ca165bc-9eed12e3(a)192.168.1.7'
5 Query insert into location (username,contact,expires,q,callid,cseq,flags,cflags,user_agent,received,path,socket,methods,last_modified ) values ('2012049699','sip:2012049699@xx.xx.xx.xx:5060','2012-04-27 05:35:53',0.80,'54f18079-9ca165bc-9eed12e3(a)192.168.1.7',398,0,0,'PolycomSoundPointIP-SPIP_550-UA/3.2.4.0267','sip:xx.xx.xx.xx:5060','<sip:xx.xx.xx.xx;lr;received=\"sip:xx.xx.xx.xx:5060\">','udp:xx.xx.xx.xx:5060',8159,'2012-04-27 05:30:16')
5 Query delete from location where username='2012049699' AND contact='sip:2012049699@xx.xx.xx.xx:5060' AND callid='54f18079-9ca165bc-9eed12e3(a)192.168.1.7'
5 Query update location set expires='2012-04-27 05:40:30',q=0.80 ,cseq=399,flags=0,cflags=0,user_agent='PolycomSoundPointIP-SPIP_550-UA/3.2.4.0267',received='sip:xx.xx.xx.xx:5060',path='<sip:xx.xx.xx.xx;lr;received=\"sip:xx.xx.xx.xx:5060\">',socket='udp:xx.xx.xx.xx:5060',methods=8159,last_modified='2012-04-27 05:34:53' where username='2012049699' AND contact='sip:2012049699@xx.xx.xx.xx:5060' AND callid='54f18079-9ca165bc-9eed12e3(a)192.168.1.7'
5 Query update location set expires='2012-04-27 05:45:07',q=0.80 ,cseq=401,flags=0,cflags=0,user_agent='PolycomSoundPointIP-SPIP_550-UA/3.2.4.0267',received='sip:xx.xx.xx.xx:5060',path='<sip:xx.xx.xx.xx;lr;received=\"sip:xx.xx.xx.xx:5060\">',socket='udp:xx.xx.xx.xx:5060',methods=8159,last_modified='2012-04-27 05:39:30' where username='2012049699' AND contact='sip:2012049699@xx.xx.xx.xx:5060' AND callid='54f18079-9ca165bc-9eed12e3(a)192.168.1.7'
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=226
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
i started sr on amd64 architecture and it didn't start with exactly same
configuration file that works ok on i386 architecture. syslog got these
error messages:
Not starting sip-proxy: invalid configuration file!
0(11601) : <core> [cfg.y:3591]: parse error in config file /etc/sip-proxy/sip-proxy.cfg, line 4918, column 18-22: internal error: failed to create rval expr
0(11601) : <core> [cfg.y:3591]: parse error in config file /etc/sip-proxy/sip-proxy.cfg, line 4918, column 18-22: '('')' expected (function call)
0(11601) : <core> [cfg.y:3591]: parse error in config file /etc/sip-proxy/sip-proxy.cfg, line 4918, column 18-22: internal error: failed to create rval expr
0(11601) : <core> [cfg.y:3594]: parse error in config file /etc/sip-proxy/sip-proxy.cfg, line 4918, column 28: bad expression
0(11601) : <core> [cfg.y:3594]: parse error in config file /etc/sip-proxy/sip-proxy.cfg, line 4918, column 28: invalid route statement
0(11601) : <core> [cfg.y:3594]: parse error in config file /etc/sip-proxy/sip-proxy.cfg, line 4918, column 31:
ERROR: bad config file (6 errors)
sr started fine then i increased the amount of pkg memory, i.e., there
was no syntax error in the config.
this is pretty confusing for new users. it would good if the real
reason for the failure would be reported.
-- juha
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#173 - Double Free -- Crash/Coredump and possible security vulnerability
User who did this - bayram (forza198419)
----------
Hi Daniel,
Is this fix solved in 3.2.3 version?
we face this problem in 3.2.0 and updated to 3.2.3
# kamailio -V
version: kamailio 3.2.3 (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, DBG_QM_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 14:19:25 Apr 19 2012 with gcc 4.4.5
----------
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=173#comment635
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
Hi, I'm using Siremis 3.2 ans Kamailio 3.2.3
I would like to know how Siremis and Kamailio work together? Like:
If I decide to set a protocol in the acl trusted in Siremis like TLS, ok,
it works well !!
But I need to know the different links between siremis and kamailio to
working well.. Why?
Cause I need to implement in Siremis a choise form about the sdpops module,
and it has to work well of course with the database of ser!
So.. What are the diffrent steps to do this?
- Create new table sdpops in ser
- create the form in siremis and view ..
- what in kamailio.cfg??
Thanks in advance
Best regards
--
*Grégoire Vandendeurpel, *
*
*
*IT Sector*