Hi,
I need to configure SER as a SIP proxy and that all SIP requests go
through SER. To do it, you normally add SER as an outbound proxy into a
routing table in your SIP server. But actually I can't modify the server...
So, the solution I wish to implement is a way to register SER in SIP
server as an "UAC" when it receives a REGISTER request from a real one.
So first things first, is it possible ?
I think you could do it by doing the following :
- Save UAC real location.
- Rewrite Contact Header Field in SIP packet request with SER IP adress
and forward this request to SIP server.
Then when you receive a request from SIP server, SER searches for UAC
real location and forward request to it.
So finally, how could you do it ? I tought I could use subst() function
but it seems I can't master this function perfectly to make it work.
So does anyone have an idea ?
Thanks,
Anthony
Hi
I need to let the UAs speak directly to each other without force rtpproxy,
Is there any solution for this issue?
rafael
---------- Forwarded message ----------
From: Rafael J. Risco G.V. <rafael.risco(a)gmail.com>
Date: Apr 22, 2005 2:17 PM
Subject: UA´s behind same NAT using na thelper/rtpproxy, No Audio...
To: serusers(a)lists.iptel.org
I am using avpops to enable SER to see if the UAs are located behind
the same address and now I need to let the UAs speak directly to each
other (without force rtpproxy), please someone see my configuration
below and send some advice.
rafael
----.
if (!lookup("location")) {
log(1,"unable to locate user \n");
# handle user which was not found
route(4);
break;
};
### Test if UAS are in the same NAT:
# get the host part of the final uri (IP part)
# and store it in AVP ID 13
avp_write("$ruri/domain", "i:13");
if (avp_check("i:13","eq/$src_ip/i")) {
log(1, "source IP is the same as destination IP\n");
route(3);
break;
};
avp_delete("i:13/g");
.
.
# -------------- Same NAT Call Routing (no force rtpproxy) ----
route[3]{
log(1," route[3]: UAs are in the same nat, NO force_rtp_proxy ");
### Do something!!!!
if(!t_relay()){
sl_reply_error();
};
}
Hi all,
I have this scenario: A SIP Client needs to register with both a SER server
and a non-SER sip server (different domains). How can I achieve this in
SER's config?
I have seen this example in the list to forward the REGISTER message to
other SER servers:
if(method == "REGISTER")
{
if(src_ip==<IP of peer1> || src_ip==<IP of peer2>)
{
save_noreply("location");
}
else
{
if(!www_authorize("<my domain>", "subscriber"))
{
www_challenge("<my domain>", "0");
break;
}
if(!check_to())
{
sl_send_reply("403", "Use To=username next time");
break;
}
if(!save("location")) { sl_reply_error(); break; }
forward_tcp("<IP of peer1", 5060);
forward_tcp("<IP of peer2", 5060);
}
break;
}
Would it work for my scenario? I tried it but it seems the forward_tcp line
gave me this error:
"forward_req: ERROR: cannot forward to af 2, proto 2 no coresponding
listening socket"
I'm using SER 0.8.14, thanks all in advance.
_________________________________________________________________
Powerful Parental Controls Let your child discover the best the Internet has
to offer.
http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=ht…
Start enjoying all the benefits of MSN® Premium right now and get the
first two months FREE*.
Hi,
I am new to Ser, and hence I need some help on the following:
1. Someone makes a PSTN call and my cisco router forwards the call to
my SER sip server.
By default, my router will forward it to an account on SER, such as 1000.
2. Upon receiving the request, SER should make ALL registered phones
in the same domain ring. When someone picks up the phone, other
phones should stop ringing.
I am able to implement point 1, but how can I make all phones ring at
the same instance?
I am thinking of doing something like the following for INVITES :
if(uri =~"sip:1002@serproxy.com"){
rewriteuri("sip:1003@serproxy.com");
forward(uri:host, uri:port);
rewriteuri("sip:1004@serproxy.com");
forward(uri:host, uri:port);
}
Can someone pls advise me on the best approach?
Regards,
zan
Hi all,
I am trying to install SER with mysql on a debian distribution. The
installation went very good. But I am not
able to configure it to work as registrar and proxy in the same time.
Ser will serve a private network without any connection to the internet
because i need to test some security issues on SIP.
I think with a good ser.cfg file it will works. So if anyone have a
ser.cfg file that enable ser to work as a proxy and registrar in the
same time on a private lan, and could send it to me i will be very
thankfull.
Thank you all,
Simon HEBBO
Actaully, at the end I changed it in the source code nathelper.c and
recompiled it and it works fine for me.
I will look at your solution too..
Thank you,
Lada
Michal Matyska wrote:
> I have done a little test and have found, that we have to update the doc;
> the description of the tests is in opposite way...
> - nat_uac_test("1") tests for private IP in contact header
> - nat_uac_test("2") tests for mismatch of via IP/port and real IP/port
>
> Sorry for confusing. If you are getting true for the nated clients even for
> nat_uac_test("2"), try to put force_rport() into your script before the
> nat_uac_test...
>
> Michal
>
> On Sun, Dec 04, 2005 at 10:15:01AM +0100, Ladislav Andel wrote:
>
>> Thank you for your reply but nat_uac_test("1") will test src_ip
>> against RFC1918 addresses anyway.
>> I have tried and even seen it in nathelper.c .
>>
>> Ladislav
>>
>>
>
>
>
Hello,
We have a new FTP server containing the collection of your favorite SIP
and RTP related software. The FTP server is reachable either using FTP
at ftp://ftp.iptel.org
(use anonymous username and your email address as password), or through the web interface at
http://ftp.iptel.orgftp.iptel.org is a public FTP server dedicated to freely available SIP
(Session Initiation Protocol, RFC3261) based software. Here you can
find everything that you will need to implement robust and highly
scalable SIP based server systems.
Among others, this archive contains:
* SIP Express Router (SER)
* RTP proxy server for NAT traversal (RTPProxy)
* Web based administration interface (SERWeb)
* SIMPLE based instant messaging and presence server with
support for XCAP
* voicemail and announcement server (SEMS)
We also keep a local copy of IETF RFCs and Internet drafts.
Should you have any problems, requests, or suggestions for improvements, do
not hesitate to contact us by e-mail at <ftpmaster(a)iptel.org>.
The contents of the FTP server will be updated and expanded regularly,
it is not limited to iptel.org or SER related software.
Jan.