[Kamailio-Users] Openser and Asterisk Configuration problem

Cosimo Fadda cfadda.lists at gmail.com
Thu Nov 27 11:01:39 CET 2008


Thank you for your answer Pablo,

Pablo Hernan Saro ha scritto:
> Considering what you explained, I don't see any other solution than 
> letting asterisk reach the public net.
>
> Pablo
>
Well, I think a possible solution could be to force RTP proxy every time 
the communication goes to asterisk.
I've also tried to implement it. So even if I have only one NIC I'v 
tried to run rtpproxy in bridge mode, distinguishing users registered 
from the outside network from those registerd from the inside network.
Starting from the alg.cfg script found in the openser example this is 
what I do:
-use two differente location tables
- always force rtpproxy distinguisching from itnternal/ external registered

But I've some problems with 200OK answers, the client registered from 
the outside don't send the ACK.
I've tried to add a 'set_adevertised address' with th epubli IP but with 
no luck.

Please have a look at the .cfg attached.

Thanks in advance,

Cosimo Fadda

> On Tue, Nov 25, 2008 at 12:14 PM, Cosimo Fadda <cfadda.lists at gmail.com 
> <mailto:cfadda.lists at gmail.com>> wrote:
>
>     Hi everybody,
>     so, I'm tryng to use Openser and Asterisk toghether in this scenario:
>     Ser and Asterisk are in the same LAN 10.2.7.X, and they are both
>     behind
>     a firewall.
>     SER can be reached from the outside network via a Public IP
>     forwarded to it,
>     Asterisck can only be reached from Ser, and it cannot reach the ouside
>     network.
>     I'm using Ser as proxy and registrar, all requests are forwarded to
>     Asteisk by the proxy.
>     In this way I can use all the feature of Asterisk.
>     Users can regiser to Ser both via the private LAN and the public
>     IP , so
>     I have to distinguish from where calls are coming from
>     in order to properly initialize rtpproxy.
>     IF a client is registered from the outsie and it has a Public IP,
>     rtpproxy is not called and the Asterisk try to send the media directly
>     to it,
>     but since asterisk cannot reach the outside network, no media is
>     passed.
>     How can I fix this?
>
>     Thanks in advance for any hints,
>
>     Cosimo
>
>
>
>     _______________________________________________
>     Users mailing list
>     Users at lists.kamailio.org <mailto:Users at lists.kamailio.org>
>     http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
>
>

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: newalg-list.cfg
Url: http://lists.kamailio.org/pipermail/users/attachments/20081127/d68f13c0/attachment.asc 


More information about the Users mailing list