Hello,
Claudio Furrer <elcaio(a)gmail.com> has now git commit access for his work on
gentoo packaging. He create several patches and extensions for our gentoo
package files in the last months and also maintain an own unofficial portage
overlay tree at http://gpo.zugaina.org/net-misc/sip-router since some time.
He just updated the gentoo packages in git master today, so if you're an
gentoo user why not just give it a try - he is looking forward to your
feedback.
Welcome Claudio!
Best regards,
Henning
Hello,
I would like to package 3.2.2 on the same day with IRC devel meeting
announced in the previous email (if is is happening this month) -- it is
getting close to 2 months since v3.2.1.
If you are aware of issues, report them on bug tracker to see what can
be done before 3.2.1.
Cheers,
Daniel
--
Daniel-Constantin Mierla -- http://www.asipto.comhttp://linkedin.com/in/miconda -- http://twitter.com/miconda
Hi,
I guess this is more of an xpath question than a Kamailio one, so
forgive me. All the same, how does one deal with a document like this
using $xml(...):
<?xml version="1.0" encoding="utf-8" ?>
<sheep>
<lamb>
...
</lamb>
<lamb>
...
</lamb>
</sheep>
Specifically, how do I access the second, third, Nth element with the
same tag, but without knowledge of any unique identifying attributes?
Is there a useful way to iterate through them in Kamailio route script?
I would have thought something like this could work:
$var(i) = 0;
while(defined $xml(x=>xpath:/sheep/lamb[$var(i)])) {
...
$var(i) = $var(i) + 1;
}
However, obviously, that's not it. So what's the right way to do it?
My desire is to buffer data from these nodes into an AVP array. As
you might guess, it's a route set over which I need to serially fork.
Thanks!
-- Alex
--
Alex Balashov - Principal
Evariste Systems LLC
260 Peachtree Street NW
Suite 2200
Atlanta, GA 30303
Tel: +1-678-954-0670
Fax: +1-404-961-1892
Web: http://www.evaristesys.com/, http://www.alexbalashov.com/
On Mon, Jan 30, 2012 at 7:39 PM, Uri Shacked <uri.shacked(a)gmail.com> wrote:
> Hi,
> thanks for the options. i will test it soon.
> looks like a perfect solution.
>
> BR,
> Uri
>
Hi
I am running Kamailio and at times it just crashes, sometimes it happens
once a day sometimes a few times a day, in debug mode it shows the
following when it crashes
http://pastebin.com/ZcQRnXmM
GDB shows
http://pastebin.com/02wVK0eZ
GDB BT Shows
http://pastebin.com/3TBAuQAp
Please advice
--
*Ali Jawad
*
*Information Systems Manager*
*Splendor Telecom (www.splendor.net)
Beirut, Lebanon
Phone: +9611373725/ext 116
FAX: +9611375554*
My whole configuration is:
[Sip clients] < = > Kamailio 3.2 <=> Asterisk servers (behind Kamailio)
Asterisk servers have only local IP addresses, and I use t_relay instead of
forward.
Kamailio runs on same server as rtpproxy.
Everything is fine if clients connect to Kamailio with its IP address -
global, or if they are behind Kamailio with local address.
When clients connect to Kamailio using sip.ourcompany.com, then call (video
also) is OK, but ACK and BYE do not work.
BYE receives not here (404), and ACK die somewhere.
I forward BYE and ACK in case when src_ip==$td to Asterisk server.
If one of clients use IP - then calls initiated from it are OK (BYE/ACK -
are going correctly - to Asterisk and to other client also). But calls from
other client have problems with BYE and ACK.
To use sip.ourcompany.com - I put:
alias=sip.ourcompany.com
route[ACKBYE] {
#!ifdef WITH_PSTN
if (is_method("BYE|ACK"))
{
xlog("L_ALERT","AB $rm $sht(forw=>$ft) $td");
if(src_ip==$td){
#I have to rewrite du - messages loop in Kamailio, I store
in $sht(forw=>$ft) $du which I use during INVITE.
$du=$sht(forw=>$ft);
route(RELAY);
exit;
}
xlog("L_ALERT","ACK,Bye Not me");
}
#!endif
return;
}
Looking for open source billing solution for Kamailio:
1) rating
2) client interface for cdr
3) admin interface
Help needed. Thanks and keep inspiring!
-abid
Sent from my iPhone
Hi folks,
I'm having problems with exec_avp because is truncating the output of the script executed. Looking at the code I see exec_avp is imposing a limit of MAX_URI_SIZE (1024) but I don't understand why. The limit should be the maximum size for an avp variable in my opinion.
Regards,
G.
Este mensaje se dirige exclusivamente a su destinatario. Puede consultar nuestra política de envío y recepción de correo electrónico en el enlace situado más abajo.
This message is intended exclusively for its addressee. We only send and receive email on the basis of the terms set out at
http://www.tid.es/ES/PAGINAS/disclaimer.aspx
Hi Daniel,
I'm sending you some memory leak fix we have found and fixed on
modules/utils/xcap_ auth.c.
The fixed memory leak is in pres_watcher_allowed (), and it is about
the "xmlFreeDoc" that it's never called for the "xcap_tree" variable.
We downloaded the source file from master branch and then we fixed it.
You can find here the diff from original and new code and in attach
both the original and the new files.
diff -u a/modules/utils/xcap_auth.c b/modules/utils/xcap_auth.c
--- a/modules/utils/xcap_auth.c
+++ b/modules/utils/xcap_auth.c
@@ -280,13 +280,15 @@
}
node= get_rule_node(subs, xcap_tree);
- if (node== NULL)
+ if (node== NULL){
+ xmlFreeDoc(xcap_tree);
return 0;
-
+ }
/* process actions */
actions_node = xmlNodeGetChildByName(node, "actions");
if (actions_node == NULL) {
LM_DBG("actions_node NULL\n");
+ xmlFreeDoc(xcap_tree);
return 0;
}
LM_DBG("actions_node->name= %s\n", actions_node->name);
@@ -294,6 +296,7 @@
sub_handling_node = xmlNodeGetChildByName(actions_node, "sub-handling");
if (sub_handling_node== NULL) {
LM_DBG("sub_handling_node NULL\n");
+ xmlFreeDoc(xcap_tree);
return 0;
}
sub_handling = (char*)xmlNodeGetContent(sub_handling_node);
@@ -302,6 +305,7 @@
if (sub_handling == NULL) {
LM_ERR("Couldn't get sub-handling content\n");
+ xmlFreeDoc(xcap_tree);
return -1;
}
if (strncmp((char*)sub_handling, "block", 5) == 0) {
@@ -325,10 +329,12 @@
else {
LM_ERR("unknown subscription handling action\n");
xmlFree(sub_handling);
+ xmlFreeDoc(xcap_tree);
return -1;
}
xmlFree(sub_handling);
+ xmlFreeDoc(xcap_tree);
return 0;
Kind Regards,
laura
I found that my TLS client was not happy because my server cert is
signed by an intermediate root.
A quick search in Google found other people mentioning the same problem,
but no solution or documentation.
I've had a quick look in the Kamailio source and I notice it is using
the call:
SSL_CTX_use_certificate_chain_file
to load the certificate specified in tls.cfg with
certificate=myserver.pem
In practice, this means the intermediate certificates can be appended to
myserver.pem and Kamailio will present them to the TLS client:
Example:
Trust heirarchy:
trusted root
- inter 1
- inter 2
- server.example.com.pem
Construct the PEM file in this exact order:
cat server.example.com.pem > chain-server.example.com.pem
cat inter2.pem >> chain-server.example.com.pem
cat inter1.pem >> chain-server.example.com.pem
and then, in tls.cfg:
certificate=chain-server.example.com.pem