<div>Thanks Bogdan, </div>
<div> </div>
<div>I think this would be useful for me</div>
<div> </div>
<div>Thanks!<br><br></div>
<div class="gmail_quote">
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote"><br>Message: 7<br>Date: Thu, 20 Jan 2011 12:35:30 +0200<br>From: Bogdan-Andrei Iancu <<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>><br>
Subject: Re: [OpenSIPS-Users] Gateways with SIP URIs<br>To: OpenSIPS users mailling list <<a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a>><br>Message-ID: <<a href="mailto:4D380FF2.3020107@opensips.org" target="_blank">4D380FF2.3020107@opensips.org</a>><br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br><br>Hi,<br><br>If I understand correctly, you want to send a call to GW (to the IP of<br>the GW), but having as RURI the URI identifying one of the cards. Like<br>
sending the call to 1.2.3.4 with RURI <a href="mailto:sip%3A444@foo.com" target="_blank">sip:444@foo.com</a> . Is this right ?<br>if so, you can do like (in route 4):<br> $ru = "<a href="mailto:sip%3A444@foo.com" target="_blank">sip:444@foo.com</a>"; #setting the RURI<br>
$du = "sip:1.2.3.4"; # setting the actual destination of the<br>requests (network level)<br><br>Regards,<br>Bogdan<br><br>Toyima Dias wrote:<br>> Hello,<br>><br>> I have some doubts about a configuration that i have to do very soon,<br>
> the problem is that we have a particular Gateway with many cards<br>> (ISDN, BRI, etc), each card has its own URI and the Gateway has it's<br>> IP address, the point is that the calls should go directly to the<br>
> cards (depending on the request uri or the uri of the caller), is it<br>> possible in OpenSIPS to send the calls directly to one of this<br>> cards (sending to the right SIP URI) ? i have been checking some<br>
> documentation and seems to be possible but only to IP addresses with<br>> rewritehostport, like this for example:<br>><br>> #--- Routing to the PSTN section ---#<br>><br>> if (uri=~"^sip:[2-9][0-9]{6}@") {<br>
><br>> route(4);<br>><br>> exit;<br>><br>> } else {<br>><br>> sl_send_reply("403", "No permissions for local calls");<br>><br>> exit; };<br>><br>> };<br>><br>><br>
> route[4] {<br>><br>> ## Send the call to the PSTN<br>> rewritehostport("10.1.30.45");<br>> route(1);<br>> }<br>><br>> Am i missing something? do i have any concept confussion?<br>><br>
> Any help would be appreciated<br>><br>> Regards<br>><br>> ------------------------------------------------------------------------<br>><br>> _______________________________________________<br>> Users mailing list<br>
> <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
><br><br><br>--<br>Bogdan-Andrei Iancu<br>OpenSIPS Event - expo, conf, social, bootcamp<br>2 - 4 February 2011, ITExpo, Miami, USA<br>OpenSIPS solutions and "know-how"<br><br></blockquote></div>