[OpenSIPS-Users] Users Digest, Vol 30, Issue 61

Toyima Dias toyimads at gmail.com
Thu Jan 20 16:37:02 CET 2011


Thanks Bogdan,

I think this would be useful for me

Thanks!


> Message: 7
> Date: Thu, 20 Jan 2011 12:35:30 +0200
> From: Bogdan-Andrei Iancu <bogdan at opensips.org>
> Subject: Re: [OpenSIPS-Users] Gateways with SIP URIs
> To: OpenSIPS users mailling list <users at lists.opensips.org>
> Message-ID: <4D380FF2.3020107 at opensips.org>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> 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:444 at foo.com <sip%3A444 at foo.com>. Is this right ?
> if so, you can do like (in route 4):
>    $ru = "sip:444 at foo.com <sip%3A444 at foo.com>"; #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
> > Users at lists.opensips.org
> > 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"
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20110120/c5c27703/attachment.htm>


More information about the Users mailing list