Hello guys,
Is there a method upon using lookup("location") to also pull out the
"socket" information for the original location the UAC registered to, for
scenarios of this example:
P1 & P2 share same usrloc database.
UA1 registers to P1
UA2 registers to P2
UA1 calls UA2
UA1 invites -> P1 -> INVITES -> UA2 (bypassing P2 -- where the actual nat
binding is).
Now upon P1 looking up usrloc for UA2, I would like to recognize that P1 is
not the Proxy to deliver the call, and forward the request to P2 to send to
UA2.
So currently I have:
UA1 INVITE -> P1 INVITE -> UA2
I wish to have:
UA1 INVITE -> P1 INVITE -> P2 INVITE -> UA2
Is there an easy method to do this? I have been looking at the new nat
traversal module it looks like it is doable with this (any further input as
far as that?). Also is it possible with the classic Nat Helper module? Any
input is appreciated, thanks!
I am working to get LCR implemented on my migration system, and when I
try to start kamailio i find the below information in the log file,
and kamailio fails to start. My lcr table has 30667 rows in it. I
have read about changing the config.h file to increase the private
memory, but my question is how much should I allocate. I forsee
going up to more than 200,000 routes within the next 12 month period.
I am currently working towards migrating up from openser 1.3.3 to
kamailio-1.4.4-notls. I am currently not using LCR in my production
openser 1.3.3 system. This is new functionality that we are
implementing as part of the upgrade.
Apr 29 17:13:49 n01-sip-c61-56-atl /sbin/kamailio[5372]:
ERROR:db_mysql:db_mysql_convert_row: no private memory left
Apr 29 17:13:49 n01-sip-c61-56-atl /sbin/kamailio[5372]:
ERROR:db_mysql:db_mysql_convert_rows: error while converting row #2808
Apr 29 17:13:49 n01-sip-c61-56-atl /sbin/kamailio[5372]:
ERROR:db_mysql:db_mysql_convert_result: error while converting rows
Apr 29 17:13:49 n01-sip-c61-56-atl /sbin/kamailio[5372]:
ERROR:db_mysql:db_mysql_store_result: error while converting result
Apr 29 17:13:49 n01-sip-c61-56-atl /sbin/kamailio[5372]:
ERROR:core:db_do_query: error while storing result
Apr 29 17:13:49 n01-sip-c61-56-atl /sbin/kamailio[5372]:
ERROR:lcr:reload_gws: Failed to query lcr data
Apr 29 17:13:49 n01-sip-c61-56-atl /sbin/kamailio[5372]:
CRITICAL:lcr:mod_init: Failed to reload gateways and routes
Apr 29 17:13:49 n01-sip-c61-56-atl /sbin/kamailio[5372]:
ERROR:core:init_mod: failed to initialize module lcr
Apr 29 17:13:49 n01-sip-c61-56-atl /sbin/kamailio[5372]:
ERROR:core:main: error while initializing modules
Thanks
Stagg
Hi all,
just installed SIREMIS on a Ubuntu server, on top of kamailio 1.5.
It seems to work alright, but for the charts sections. What I see is :
"""
Open Flash Chart
JSON Parse Error [Syntax Error]
Error at character 2, line 2:
0: 1: <div style='font-size: 12px; color: blue; font-family:Arial;
font-weight:bold;'>[2009-04-09 12:40:1
"""
Apache produces the following log (error.log):
*[Thu Apr 09 15:39:58 2009] [notice] Apache/2.2.9 (Ubuntu)
PHP/5.2.6-2ubuntu4 with Suhosin-Patch configured -- resuming normal
operations
[Thu Apr 09 15:40:07 2009] [error] [client 192.168.110.25] File does not
exist: /var/www/siremis-0.9.2/siremis-web/js/sound.js, referer:
http://v-srv-obama/siremis/bin/controller.php?view=main.CrtMainView
[Thu Apr 09 15:40:09 2009] [error] [client 192.168.110.25] File does not
exist: /var/www/siremis-0.9.2/siremis-web/js/sound.js, referer:
http://v-srv-obama/siremis/bin/charts.php?cg=system
*
The file indeed does not exist. I'd also like to note that while i
downloaded the 0.9.2 version, SIREMIS homepage shows v0.9.1 .
Any ideas?
Dear Sir:
I wrote a failure route for serial call mechanism, it help for no
answer call ...
but all these serial calls need to have a new CallerID,
so I use replace_from for this purpose.
modparam("uac","from_restore_mode","auto")
failure_route[3]
{
log(1,"******* I'm failure_route[3] *******\n");
if (avp_pushto("$ru", "$avp(forward)"))
{
append_branch();
avp_delete("$avp(forward)");
uac_replace_from("sip:1234@$fd"); # change from
header
t_on_failure("3"); # try next , recursive
t_relay();
}
}
If only one forward number in AVP array , this code working fine,
the issue will happen if multiple forward number trying, ( forward
2nd,3rd ...number)
the UAC module will restore from header in 200 OK of its following
message when a UA answered,
we will have a duplicated "from header" in 200 OK (sending out
opensips).
It means we will have 2 "from" headers (in 200 OK) to caller, if 2nd
forwarded callee answer.
Caller ---> Invite ---> opensips ----> UA 0, no answer
----> UA 1, no answer
---->UA 2, answer
<----200 OK
<---200OK<---
this 200ok will have 2 "from" header.
Most of UA just ignore redundant from header, but some can not.
I think it should be UAC modules issue, anyone can help me?
best regards
KK
Hi all,
I look for a way to use SIP DIVERSION. In case of a call transfer, I
have to conserve the original called number and send it to SS7 gateway.
But for a good interoperability between SIP and SS7 in this kind of
application I just see the way of SIP DIVERSION support.
Can someone help me ?
Regards,
A.L
I think I hijacked a thread when I posted this previously. Sorry 'bout that.
The issue we are having is where Kamailio relays an INVITE with the correct
To header field domain, however when it relays the subsequent CANCEL it
seems like it does not correctly change the To header field domain.
Here is what we use to try and put in the correct To header in the CANCEL:
remove_hf("To");
if ($tt == null)
insert_hf("To: <sip:$rU@1.2.3.4>\r\n", "From");
else
insert_hf("To: <sip:$rU@1.2.3.4>;tag=$tt\r\n",
"From");
xlog("DBG1: Trying to fix CANCEL: td=$td ci=$ci rm=$rm
ru=$ru ou=$ou\n");
Changes to the left side of the at-symbol persist, however changes to the
domain are reverted and changed back to what was received from adjacent
proxy.
Any ideas why it reverts?
Hi all!
I'm new in openSER and I'm trying to get correct CDRs when the call is forwarded on busy,
noanswer and uncond., but i have some troubles :(
I use accounting flags by acc module and radius - so, I can get cdrs from
acc table or raddact table
When I do any type of FWD call by AVP module, for example, A (pstn) ->
B (ser user, fwd to GSM) -> C (GSM) i get cdrs for A -> C, but I want
get cdrs for A - B and B - C
Example:
mysql> SELECT * FROM openser.usr_preferences u;
+----+---------+----------+------------+------------+------+-------------+---------------------+
| id | uuid | username | domain | attribute | type | value | last_modified |
+----+---------+----------+------------+------------+------+-------------+---------------------+
| 12 | 3097999 | 3097999 | xx.xxx.com | fwdall | 0 | 89112820419 | 0000-00-00 00:01:00 |
Make call 8123364000 (pstn) - 3097999 (SERuser fwdall to GSM) - 89112820419 (GSM)
and CDRs from raddact table:
mysql> SELECT callingstationid,canonicalURI, acctstarttime,acctstoptime, acctsessiontime FROM radacct r where acctstarttime>'2009-04-23' and callingstationid like '8123364000';
+------------------+--------------+---------------------+---------------------+-----------------+
| callingstationid | canonicalURI | acctstarttime | acctstoptime | acctsessiontime |
+------------------+--------------+---------------------+---------------------+-----------------+
| 8123364000 | 89112820419 | 2009-04-24 10:29:10 | 2009-04-24 10:29:12 | 2 |
+------------------+--------------+---------------------+---------------------+-----------------+
from acc table:
mysql> SELECT id,method,sip_code,sip_reason,time,src_user,dst_user FROM openser.acc a;
+------+--------+----------+------------+---------------------+------------+-------------+
| id | method | sip_code | sip_reason | time | src_user | dst_user |
+------+--------+----------+------------+---------------------+------------+-------------+
| 2420 | INVITE | 200 | OK | 2009-04-24 10:29:10 | 8123364000 | 89112820419 |
| 2421 | ACK | 200 | OK | 2009-04-24 10:29:10 | 8123364000 | 89112820419 |
| 2422 | BYE | 200 | OK | 2009-04-24 10:29:12 | 3097999 | 8123364000 |
+------+--------+----------+------------+---------------------+------------+-------------+
So, how do you bill diversion calls?
Help, pls.
--
Best Regards,
Ilya Pichugin
i.pichugin(a)ptl.ru
Hi,
short question:
I've noticed, when the UAC-Module (from 1.3) replaces the From-Headerin
subsequential requests, the From-Header is filled up with "zeros".
For most clients this is absolutely fine (tested with Snom's, AVM's,
Cisco's and many more). I've noticed, that some Zyxel devices however do
not like this and ignore the request in this case...
Is this somehow defined in the RFC? Can somebody give me hint on a
chapter or something? Or does it break the RFC?
Thanks in advance,
Carsten
The issue we are having is where Kamailio relays an INVITE with the
correct To header field domain, however when it relays the subsequent
CANCEL it seems like it does not correctly change the To header field
domain.
Here is what we use to try and put in the correct To header in the
CANCEL:
remove_hf("To");
if ($tt == null)
insert_hf("To: <sip:$rU@1.2.3.4>\r\n", "From");
else
insert_hf("To: <sip:$rU@1.2.3.4>;tag=$tt\r\n",
"From");
xlog("DBG1: Trying to fix CANCEL: td=$td ci=$ci rm=
$rm ru=$ru ou=$ou\n");
Changes to the left side of the at-symbol persist, however changes to
the domain are reverted and changed back to what was received from
adjacent proxy.
Any ideas why it reverts?