Send sr-users mailing list submissions to
sr-users@lists.sip-router.org
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
or, via email, send a message with subject or body 'help' to
sr-users-request@lists.sip-router.org
You can reach the person managing the list at
sr-users-owner@lists.sip-router.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of sr-users digest..."
Today's Topics:
1. FreeBSD build from git: i use that patch (Victor V. Kustov)
2. Re: Problems with Mar portion of registration [IMS]
(Daniel-Constantin Mierla)
3. Re: UAC module and SRV records (Daniel-Constantin Mierla)
4. Re: registrar and check registered (Daniel-Constantin Mierla)
5. Re: FreeBSD build from git: i use that patch
(Daniel-Constantin Mierla)
6. Re: FreeBSD build from git: i use that patch (Victor V. Kustov)
7. Re: FreeBSD build from git: i use that patch
(Daniel-Constantin Mierla)
----------------------------------------------------------------------
Message: 1
Date: Fri, 15 Mar 2013 11:43:55 +0400
From: "Victor V. Kustov" <coyote@bks.tv>
Subject: [SR-Users] FreeBSD build from git: i use that patch
To: "Kamailio \(SER\) - Users Mailing List"
<sr-users@lists.sip-router.org>
Message-ID: <20130315114355.2409d851@bkstv>
Content-Type: text/plain; charset=US-ASCII
diff --git a/modules/ims_icscf/cxdx_lir.c b/modules/ims_icscf/cxdx_lir.c
index faabd85..24686e7 100644
--- a/modules/ims_icscf/cxdx_lir.c
+++ b/modules/ims_icscf/cxdx_lir.c
@@ -51,6 +51,11 @@
#include "mod.h"
#include "location.h"
+#if defined (__OS_freebsd)
+#include "sys/limits.h"
+#define MAXINT INT_MAX
+#endif
+
//we use pseudo variables to communicate back to config file this takes the result and converys to a return code, publishes it a pseudo variable
int create_lia_return_code(int result) {
int rc;
diff --git a/modules/ims_icscf/scscf_list.c b/modules/ims_icscf/scscf_list.c
index bd5216c..8b6b79c 100644
--- a/modules/ims_icscf/scscf_list.c
+++ b/modules/ims_icscf/scscf_list.c
@@ -47,6 +47,11 @@
#include "db.h"
#include "../../lib/ims/useful_defs.h"
+#if defined (__OS_freebsd)
+#include "sys/limits.h"
+#define MAXINT INT_MAX
+#endif
+
extern int scscf_entry_expiry; //time for scscf entries to remain the scscf_list
extern struct tm_binds tmb; //Structure with pointers to tm funcs
--
SY,
Victor
JID: coyote@bks.tv
JID: coyote@bryansktel.ru
I use FREE operation system: 3.8.3-calculate GNU/Linux
------------------------------
Message: 2
Date: Fri, 15 Mar 2013 08:44:13 +0100
From: Daniel-Constantin Mierla <miconda@gmail.com>
Subject: Re: [SR-Users] Problems with Mar portion of registration
[IMS]
To: "Kamailio (SER) - Users Mailing List"
<sr-users@lists.sip-router.org>
Message-ID: <5142D14D.7080808@gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Hello,
I haven't played with IMS modules, but you said is causing scscf to die
-- is that a kamailio instance? What means 'to die' -- does it crash? If
yes, can you get the syslog messages and the gdb backtrace?
Cheers,
Daniel
On 3/13/13 3:01 PM, mrichardson wrote:
The MAR portion of registration is either not happening or failing
causing scscf to die. Using Kamailio 4.0 with the ims_auth module.
We're trying to determine what
the REGISTER block should look like and what ims_auth parameters are
necessary for a successful MAR challenge with auth vector delivery. We
currently only get the UAR by ICSCF then the SAR by SCSCF.
Module parameters:
# -- ims_auth params --
modparam("ims_auth", "name", URI)
modparam("ims_auth", "registration_default_algorithm",
REG_AUTH_DEFAULT_ALG)
modparam("ims_auth","ignore_failed_auth",0)
#!ifdef CXDX_FORCED_PEER
modparam("ims_auth", "cxdx_forced_peer", CXDX_FORCED_PEER)
#!endif
modparam("ims_auth", "cxdx_dest_realm", NETWORKNAME)
modparam("ims_auth", "av_request_at_once", 1)
modparam("ims_auth", "registration_qop", "auth")
route[REGISTER] {
xlog("L_ERR", "Enter register block");
t_newtran();
ims_www_authenticate(NETWORKNAME);
#check to see if user is authenticated - ie sip header has auth
information - (already challenged)
if ($avp(maa_return_code) == 1) {
# user has not been authenticated. Lets send a challenge
via 401 Unauthorized
ims_www_challenge("$td");
exit;
} else {
# We need to check if this user is registered or not
if (!impu_registered("location")) {
save("location");
if ($avp(saa_return_code) == 1) {
isc_match_filter_reg("0","location");
exit;
}
} else {
save("location");
if($avp(saa_return_code) == 1) {
isc_match_filter_reg("1","location");
exit;
}
}
}
}
12(22978) INFO: cdp [receiver.c:910]: peer_connect(): Peer
hss.ims.somecompany.com:3868 connected
0(22966) ERROR: <script>: Enter register block 0(22966) INFO:
ims_registrar_scscf [cxdx_sar.c:79]: created AVP successfully :
[saa_return_code] - [-2]
5(22971) INFO: ims_registrar_scscf [cxdx_avp.c:138]:
cxdx_get_experimental_result_code: Failed finding avp
5(22971) INFO: ims_registrar_scscf [cxdx_sar.c:79]: created AVP
successfully : [saa_return_code] - [1]
5(22971) WARNING: tm [t_lookup.c:1559]: WARNING: script writer didn't
release transaction
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
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://www.linkedin.com/in/miconda
Kamailio World Conference, April 16-17, 2013, Berlin
- http://conference.kamailio.com -
------------------------------
Message: 3
Date: Fri, 15 Mar 2013 08:48:53 +0100
From: Daniel-Constantin Mierla <miconda@gmail.com>
Subject: Re: [SR-Users] UAC module and SRV records
To: "Olle E. Johansson" <oej@edvina.net>
Cc: "Kamailio \(SER\) - Users Mailing List"
<sr-users@lists.sip-router.org>
Message-ID: <5142D265.3060104@gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
On 3/13/13 10:00 AM, Olle E. Johansson wrote:
13 mar 2013 kl. 09:35 skrev Daniel-Constantin Mierla <miconda@gmail.com>:
On 3/13/13 9:25 AM, Olle E. Johansson wrote:
13 mar 2013 kl. 09:08 skrev Daniel-Constantin Mierla <miconda@gmail.com>:
Hello,
do you set the port in r-uri/dst-uri?
No. That would invalidate SRV record lookup, right?
yes.
Have you watched the dns traffic? Is directly A/AAAA query? Afaik, this function should use just the usual logic to determine the next hop based on dst-uri/r-uri.
I will debug in more detail. Had to set an outbound URI with a hostname and a port number to get it to work.
There could be the possibility that some of the functions in the chain
of uac_req_send() set port to default 5060 if not set explicitly, but
from sending point of view, it should the same as for the rest of
messages. Thus a look over the code should be done as well. I'll do it
soon if nobody gets the time meanwhile.
Cheers,
Daniel
--
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio World Conference, April 16-17, 2013, Berlin
- http://conference.kamailio.com -
------------------------------
Message: 4
Date: Fri, 15 Mar 2013 08:53:29 +0100
From: Daniel-Constantin Mierla <miconda@gmail.com>
Subject: Re: [SR-Users] registrar and check registered
To: "Victor V. Kustov" <coyote@bks.tv>, sr-users@lists.sip-router.org
Message-ID: <5142D379.20402@gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Hello,
On 3/13/13 10:00 AM, Victor V. Kustov wrote:
Hello, Daniel. Thanks for reply.
do you want to check if caller (origin) is registered or if callee
(destination) is registered? Like one can call to pstn only if has a
phone registered for itself?
In our scheme all calls forwards to PSTN GW, if that call from our to
our users, GW turn call back and kamailio receive it as incoming.
So, no "local calls" in this scheme.
For outgoing calls (to PSTN) i want check caller (origin) is registered.
For incoming calls (from PSTN) i want callee is registered.
Need cache registrations (DB, memcached or something). I try that way:
1. REGISTER - if ok, than we save("location").
2. Other methods - check !registered("location") or !lookup("location").
But in INVITE seems both !registered("location")
and !lookup("location") return TRUE. I dont understand why.
In topicstart letter i citate part of my cfg: in INVITE i check
registration again and it work - registered users may call to PSTN,
unregged may not. But no cache for registration and look as overhead.
Must be more "beauty" solution.
when you need to check if caller is registered use:
- registered("location", "$fu")
See more details at:
- http://kamailio.org/docs/modules/stable/modules/registrar.html#id2512620
If used without the second parameter is checking if R-URI ($ru) is
registered.
Cheers,
Daniel
--
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio World Conference, April 16-17, 2013, Berlin
- http://conference.kamailio.com -
------------------------------
Message: 5
Date: Fri, 15 Mar 2013 08:55:28 +0100
From: Daniel-Constantin Mierla <miconda@gmail.com>
Subject: Re: [SR-Users] FreeBSD build from git: i use that patch
To: "Kamailio (SER) - Users Mailing List"
<sr-users@lists.sip-router.org>
Message-ID: <5142D3F0.4090408@gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Hello,
thanks for checking on bsd, can you please sent the patch as attachment?
Because it can saved locally and applied easier.
Cheers,
Daniel
On 3/15/13 8:43 AM, Victor V. Kustov wrote:
diff --git a/modules/ims_icscf/cxdx_lir.c b/modules/ims_icscf/cxdx_lir.c
index faabd85..24686e7 100644
--- a/modules/ims_icscf/cxdx_lir.c
+++ b/modules/ims_icscf/cxdx_lir.c
@@ -51,6 +51,11 @@
#include "mod.h"
#include "location.h"
+#if defined (__OS_freebsd)
+#include "sys/limits.h"
+#define MAXINT INT_MAX
+#endif
+
//we use pseudo variables to communicate back to config file this takes the result and converys to a return code, publishes it a pseudo variable
int create_lia_return_code(int result) {
int rc;
diff --git a/modules/ims_icscf/scscf_list.c b/modules/ims_icscf/scscf_list.c
index bd5216c..8b6b79c 100644
--- a/modules/ims_icscf/scscf_list.c
+++ b/modules/ims_icscf/scscf_list.c
@@ -47,6 +47,11 @@
#include "db.h"
#include "../../lib/ims/useful_defs.h"
+#if defined (__OS_freebsd)
+#include "sys/limits.h"
+#define MAXINT INT_MAX
+#endif
+
extern int scscf_entry_expiry; //time for scscf entries to remain the scscf_list
extern struct tm_binds tmb; //Structure with pointers to tm funcs
--
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio World Conference, April 16-17, 2013, Berlin
- http://conference.kamailio.com -
------------------------------
Message: 6
Date: Fri, 15 Mar 2013 12:01:37 +0400
From: "Victor V. Kustov" <coyote@bks.tv>
Subject: Re: [SR-Users] FreeBSD build from git: i use that patch
To: sr-users@lists.sip-router.org
Message-ID: <20130315120137.72b404c4@bkstv>
Content-Type: text/plain; charset="utf-8"
? Fri, 15 Mar 2013 08:55:28 +0100
Daniel-Constantin Mierla <miconda@gmail.com> ?????:
Hello,
thanks for checking on bsd, can you please sent the patch as
attachment? Because it can saved locally and applied easier.
--
SY,
Victor
JID: coyote@bks.tv
JID: coyote@bryansktel.ru
I use FREE operation system: 3.8.2-calculate GNU/Linux
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bsd.patch
Type: text/x-patch
Size: 1020 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20130315/f30765a4/attachment-0001.bin>
------------------------------
Message: 7
Date: Fri, 15 Mar 2013 09:06:35 +0100
From: Daniel-Constantin Mierla <miconda@gmail.com>
Subject: Re: [SR-Users] FreeBSD build from git: i use that patch
To: "Victor V. Kustov" <coyote@bks.tv>, sr-users@lists.sip-router.org
Message-ID: <5142D68B.7010101@gmail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Thanks, applied to master and 4.0 branches.
Cheers,
Daniel
On 3/15/13 9:01 AM, Victor V. Kustov wrote:
? Fri, 15 Mar 2013 08:55:28 +0100
Daniel-Constantin Mierla <miconda@gmail.com> ?????:
Hello,
thanks for checking on bsd, can you please sent the patch as
attachment? Because it can saved locally and applied easier.
--
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio World Conference, April 16-17, 2013, Berlin
- http://conference.kamailio.com -
------------------------------
_______________________________________________
sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
End of sr-users Digest, Vol 94, Issue 51
****************************************