Hi!
I want to test rtpproxy with late offer-answer (SDP in 200-ok and ACK).
Thus, I'm looking for a SIP client which support that. Do you know any?
thanks
klaus
Hello,
if I create a response with sl_send_reply then the message contains not
an Allow header.
How could I add an Allow header to this responses?
thanks in advance,
Andreas
Hi,
I simply trying to modify URI and FROM headers as follow. tcpdump packet
capture shows the values are changed for both URI and FROM headers.
However, the syslog only shows the new value for URI and not for FROM
header.
How can I verify new value in FROM header in the log file?
# main request routing logic
route
{
$rU = avp(i:1);
$rd = avp(i:2);
....
uac_replace_from("$avp(i:3)");
xlog ("fu after perl: $fu");
xlog ("ru after perl: $ru");
...
}
Thanks,
Rob
Hello All,
I'm trying to setup a test scenario, where i have Kamailio and rtpproxy
running on one CentOS box(server1) and asterisk running on another
CentOS box(server2). Server1 has 2 NIC's installed, eth0 connected to
the WAN and eth1 connected to Server2 in a bridge mode. I will be
modifying rtpproxy to intercept data flowing to Server2 and process them
before i let them continue to flow along their original path.
Server2 has to have a Public IP. For this i am having to use 4 Public
IP's- eth0,eth1 and bridge br0 on Server1 and eth0 on Server2. Is there
an alternate way of doing this ? Do you suspect there will be a problem
with setting things up this way while trying to use rtpproxy to
intercept data.
Thanks and regards,
Vikram.
Hi All,
Did anybody tried to setup Kamailio with CSQL database.
Please post your experiences using CSQL and what are parameters we need to
change in modules to connect CSQL DB Server.
Thanks,
Ramu
Hi All,
I am trying to setup kamailio 1.5.3-notls for use with rtpproxy 1.2.1. I
have a partially working setup, however, when I have a softphone
configured behind nat it appears that rtpproxy is using the internal ip
(prior to nat) to setup the sdp ports.
I have rtpproxy configured in bridge mode as follows:
rtpproxy -f -F -l public_ip/internal_ip -s udp:*:11211
I have kamailio's nathelper module setup as follows:
modparam("nathelper", "rtpproxy_sock", "udp:internal_ip:11211")
I then use a softphone (x-lite) behind a nat firewall (ip =
192.168.11.2) to establish a call, and the log of rtpproxy is as follows:
INFO:handle_command: new session
ZmRkNjRlNjM0NzExZjQ5MWUxYjllOTFhZWFmZGZkMjY., tag 8330585e;1 requested,
type strong
INFO:handle_command: new session on a port 52572 created, tag 8330585e;1
INFO:handle_command: pre-filling caller's address with 192.168.11.2:35498
INFO:handle_command: lookup on ports 52572/40380, session timer restarted
INFO:handle_command: pre-filling callee's address with internal_ip:11250
INFO:handle_delete: forcefully deleting session 1 on ports 52572/40380
INFO:remove_session: RTP stats: 906 in from callee, 0 in from caller,
906 relayed, 0 dropped
INFO:remove_session: RTCP stats: 3 in from callee, 0 in from caller, 3
relayed, 0 dropped
INFO:remove_session: session on ports 52572/40380 is cleaned up
In the log above it looks like rtpproxy is using 192.168.11.2:35498 as
the remote ip/port combination to contact for the sdp session of the
x-lite softphone. I would have thought that it would use the IP address
that initial request was received from to establish this connection (via
the fix_nated_contact() function).
My route logic in kamailio is a slightly modified default configuration
that is installed with kamailio :
route{
.
.
.
# NAT detection
route(4);
.
.
.
route(1);
}
route[1]{
if (check_route_param("nat=yes")) {
setbflag(6);
}
# if (isflagset(5) || isbflagset(6)) {
route(5);
# }
/* example how to enable some additional event routes */
if (is_method("INVITE")) {
#t_on_branch("1");
t_on_reply("1");
t_on_failure("1");
}
if (!t_relay()) {
sl_reply_error();
}
exit;
}
route[4]{
force_rport();
if (nat_uac_test("19")) {
if (method=="REGISTER") {
fix_nated_register();
} else {
fix_nated_contact();
}
setflag(5);
}
return;
}
Would the "fix_nated_contact" function in the "nat detection" route not
fix the contact before passing over the request to rtpproxy to establish
the sdp session?
route[5] {
if (is_method("BYE")) {
unforce_rtp_proxy();
} else if (is_method("INVITE")){
# force_rtp_proxy();
if(src_ip==internal_ip_of_media_server)
force_rtp_proxy("ocfaei");
else
force_rtp_proxy("ocfaie");
}
if (!has_totag()) add_rr_param(";nat=yes");
return;
}
onreply_route[1] {
xdbg("incoming reply\n");
# if ((isflagset(5) || isbflagset(6)) &&
status=~"(183)|(2[0-9][0-9])") {
if (status=~"(183)|(2[0-9][0-9])") {
# force_rtp_proxy();
if(src_ip == internal_ip_of_media_server)
force_rtp_proxy("ocfaei");
else
force_rtp_proxy("ocfaie");
}
if (isbflagset(6)) {
fix_nated_contact();
}
}
failure_route[1] {
if (is_method("INVITE")
&& (isbflagset(6) || isflagset(5))) {
unforce_rtp_proxy();
}
if (t_was_cancelled()) {
exit;
}
}
Any pointers would be greatly appreciated.
Thanks
Bruce
Hello,
cc-ed back the list as others may look for same issues in the future ...
On 12/15/09 11:30 AM, alex pappas wrote:
> Daniel hi,
>
> In my config I don't have any authentication. I also configured in
> mysql the log-slow-query with long_query_time = 2
> In my kamailio.cfg is a lot of ACC loging:
>
> Log acc to a file (extra fields)
> Log to mysql with axtra fields(I disabled this for the moment because
> was causing high load)
> Log to a Radius (the radius is in the same machine and as far as I
> know the radius after i swriting his data to a mysql also) I diden't
> know that we have radius installed localy
>
> From the log-slow-query now I see a message about sip_trace query wich
> obiesly took time more than 2 sec. Now I know that I'm doing also
> sip_trace inserts in mysql
sip_trace is writing big amount of data, this can make mysql do a lot of
work. Try without it and see the difference.
Also, doing acc to syslog brings some penalty if syslog is not
configured in asyncronous mode (see my previous email).
Cheers,
Daniel
--
Daniel-Constantin Mierla
* http://www.asipto.com/
Hello,
cc-ed back the list as others may look for same issues in the future ...
On 12/15/09 11:30 AM, alex pappas wrote:
> Daniel hi,
>
> In my config I don't have any authentication. I also configured in
> mysql the log-slow-query with long_query_time = 2
> In my kamailio.cfg is a lot of ACC loging:
>
> Log acc to a file (extra fields)
> Log to mysql with axtra fields(I disabled this for the moment because
> was causing high load)
> Log to a Radius (the radius is in the same machine and as far as I
> know the radius after i swriting his data to a mysql also) I diden't
> know that we have radius installed localy
>
> From the log-slow-query now I see a message about sip_trace query wich
> obiesly took time more than 2 sec. Now I know that I'm doing also
> sip_trace inserts in mysql
sip_trace is writing big amount of data, this can make mysql do a lot of
work. Try without it and see the difference.
Also, doing acc to syslog brings some penalty if syslog is not
configured in asyncronous mode (see my previous email).
Cheers,
Daniel
--
Daniel-Constantin Mierla
* http://www.asipto.com/