[OpenSIPS-Users] Simple Forwarding Proxy

Bogdan-Andrei Iancu bogdan at opensips.org
Tue Mar 13 15:08:43 CET 2012


Robert, at least I hacked the archive to remove the IPs from your 
original email.

Regards,
Bogdan

On 03/07/2012 09:58 PM, Robert wrote:
> And stupid n00b me -- left the IP addresses in this email... crash and 
> burn...
>
> From: Robert <robert at inteli-core.com <mailto:robert at inteli-core.com>>
> Reply-To: OpenSIPS users mailling list <users at lists.opensips.org 
> <mailto:users at lists.opensips.org>>
> Date: Wed, 07 Mar 2012 14:55:18 -0500
> To: <users at lists.opensips.org <mailto:users at lists.opensips.org>>
> Subject: [OpenSIPS-Users] Simple Forwarding Proxy
>
> I am trying to install OpenSIPS as a simple SIP proxy to allow users 
> to register on an offset port -- which then gets re-directed to our 
> VoIP platform.
>
> As far as registrations go -- I have that working.
>
> I have added a binding for port 53 and port 8080
> I also added rewritehostport statements in the config as per guides 
> for Asterisk integration.
>
> And I can complete calls outbound and get 2 way audio.
> The issue I am experiencing is that I cannot get inbound calls to come 
> through.
>
> I'm not sure if this a NAT issue with the UA -- or if possibly I have 
> not added enough headers in the config to allow the VoIP platform to 
> know that the UA is behind NAT.
>
> I'm a n00b at OpenSIPS -- so please bare with me :)
>
>         # account only INVITEs
>         if (is_method("INVITE")) {
>                 setflag(1); # do accounting
>                 rewritehostport("xxx.xxx.xxx.xxx:5060");
>         }
>
>         if (is_method("REGISTER"))
>         {
>                 # authenticate the REGISTER requests (uncomment to 
> enable auth)
>                 ##if (!www_authorize("", "subscriber"))
>                 ##{
>                 ##      www_challenge("", "0");
>                 ##      exit;
>                 ##}
>                 ##
>                 ##if (!db_check_to())
>                 ##{
>                 ##      sl_send_reply("403","Forbidden auth ID");
>                 ##      exit;
>                 ##}
>                 save("location");
>                 rewritehostport("xxx.xxx.xxx.xxx:5060");
>                 route(1);
>
>                 if (!save("location"))
>                         sl_reply_error();
>
>                 exit;
>         }
>
> route[1] {
>         # for INVITEs enable some additional helper routes
>         if (is_method("INVITE")) {
>                 rewritehostport("xxx.xxx.xxx.xxx:5060");
>                 t_on_branch("2");
>                 t_on_reply("2");
>                 t_on_failure("1");
>         }
>
>         if (!t_relay()) {
>                 sl_reply_error();
>         };
>         exit;
> }
>
> _______________________________________________ Users mailing list 
> Users at lists.opensips.org <mailto:Users at lists.opensips.org> 
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users


-- 
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20120313/8201dbb9/attachment.htm>


More information about the Users mailing list