Hi,

If I understand correctly, you want to send a call to GW (to the IP of the GW), but having as RURI the URI identifying one of the cards. Like sending the call to 1.2.3.4 with RURI sip:[email protected] . Is this right ?
if so, you can do like (in route 4):
   $ru = "sip:[email protected]"; #setting the RURI
$du = "sip:1.2.3.4"; # setting the actual destination of the requests (network level)

Regards,
Bogdan

Toyima Dias wrote:
Hello,

I have some doubts about a configuration that i have to do very soon, the problem is that we have a particular Gateway with many cards (ISDN, BRI, etc), each card has its own URI and the Gateway has it's IP address, the point is that the calls should go directly to the cards (depending on the request uri or the uri of the caller), is it possible in OpenSIPS to send the calls directly to one of this cards (sending to the right SIP URI) ? i have been checking some documentation and seems to be possible but only to IP addresses with rewritehostport, like this for example:

#--- Routing to the PSTN section ---#
if (uri=~"^sip:[2-9][0-9]{6}@") {

route(4);
exit;

} else {

sl_send_reply("403", "No permissions for local calls");

exit; };

};


route[4] {

## Send the call to the PSTN rewritehostport("10.1.30.45"); route(1); }

Am i missing something? do i have any concept confussion?

Any help would be appreciated

Regards

------------------------------------------------------------------------

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


--
Bogdan-Andrei Iancu
OpenSIPS Event - expo, conf, social, bootcamp
2 - 4 February 2011, ITExpo, Miami,  USA
OpenSIPS solutions and "know-how"


_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to