[Serusers] How SER communicate to other SIP server
roayu
roayu at ctisys.net
Tue Jul 3 06:08:22 CEST 2007
Hi, Olaf!
I've used 'rewritehostport("sipB.net:5060")' under the INVITE message
handler.
The following are my configuration, pls correct me if I'm wrong.
if(uri =~ "^sip:[0-9{8}@.*") {
if(!proxy_authorise("","subscriber")){
proxy_challenge("","0");
break;
}else if(!check_from()) {
sl_send_reply("403","Use From ID");
break;
};
consume_credentials();
rewritehostport("sipB.net:5060");
setflag(1);
route(1);
break;
}
When I dialed 8-digit of the number, it will pass to another SIP
server(sipB.net). But on the TO header, I still found that the TO address
still under the sipSER.net. You may refer to the following.
From : <sip:12345 at sipSER.net:5060>
To : <sip:88888888 at sipSER.net:5060>
Does that means that it's still looping inside sipSER.net instead of routing
to sipB.net? If yes, how do I change the TO header or make it route to
sipB.net?
Thanks.
Best regards,
Roa Yu
-----Original Message-----
From: Olaf Bergmann [mailto:Olaf.Bergmann at freenet-ag.de]
Sent: Monday, July 02, 2007 4:55 PM
To: roayu
Cc: serusers at lists.iptel.org
Subject: Re: [Serusers] How SER communicate to other SIP server
roayu wrote:
> Hi, Olaf!
>
> I'm not sure what functions that I can use to include inside ser.cfg.
Could
> you pls let me know where I can see all those functions like
> sl_send_reply(), so that I can use them.
Have a look at <http://www.iptel.org/doc>. You will find several
tutorials as well as reference documents, especially for the
available modules. In addition, there is an excellent interactive
search tool at <http://www.iptel.org/ser/doc/search> to lookup
function definitions etc.
Regards,
Olaf
More information about the sr-users
mailing list