[OpenSIPS-Users] Topology Hiding Presence Proxy

Bogdan-Andrei Iancu bogdan at opensips.org
Tue Nov 21 04:36:05 EST 2017

Hi Nate,

If you just need to change the Contact hdr, the topology-hiding will do 
the job - have you tried to simply use the the topology_hiding() 
function when routing the initial SUBSCRIBE request ?


Bogdan-Andrei Iancu
   OpenSIPS Founder and Developer

On 11/17/2017 03:57 PM, Nathan Baker wrote:
> Hi Bogdan,
> Yes, I think that's correct, although I didn't see any module that 
> would implement a mid-presence agent.  I don't so much need to hide 
> IPs, but I do need to change the Contact header, so I started using 
> topology_hiding for that since it has it built in.  I originally tried 
> to use mid_registrar but stopped for now because it doesn't store 
> locations in the database and doesn't support presence (yet).  Any 
> insight or suggestions would be greatly appreciated, I would basically 
> be fine with a B2BUA if there was one that did forward registrations 
> and presence.
> Thanks,
> Nate
> On Nov 17, 2017 4:28 AM, "Bogdan-Andrei Iancu" <bogdan at opensips.org 
> <mailto:bogdan at opensips.org>> wrote:
>     Hi Nathan,
>     Based on your description you do not want topology-hiding (to
>     simply hide IPs from the end-points), but a mid-presence agent,
>     right ?
>     Regards,
>     Bogdan-Andrei Iancu
>        OpenSIPS Founder and Developer
>        http://www.opensips-solutions.com <http://www.opensips-solutions.com>
>     On 11/17/2017 08:13 AM, Nathan Baker wrote:
>>     Hello,
>>     I have been looking for some examples on how to use the topology
>>     hiding module and proxying presence (SUBSCRIBE, NOTIFY, etc.)
>>     together, similar to how the mid_registrar module would handle
>>     registrations.  Does anyone have any examples or suggestions on
>>     how to do this?
>>     I have the clients subscribing to the server (through OpenSIPS
>>     proxy to another presence server), but I'm not sure how to store
>>     the subscriptions and how to route the presence messages.  For
>>     registrations you can just do save("location"), but is there an
>>     equivalent for subscriptions/presence?  It seems like the
>>     handle_subscribe() function from the presence module wouldn't
>>     apply because it's part of a presence server, or can you just use
>>     it for storing subscriptions but never publish anything?  I don't
>>     see a function to look up these stored subscriptions.
>>     Would it be better to just assume that the subscriptions are
>>     valid and relay the messages?  If so, what is the best way to
>>     handle the routing?
>>     Any help or insight would be greatly appreciated!
>>     Thanks,
>>     Nate
>>     _______________________________________________
>>     Users mailing list
>>     Users at lists.opensips.org <mailto:Users at lists.opensips.org>
>>     http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>     <http://lists.opensips.org/cgi-bin/mailman/listinfo/users>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20171121/f609b69e/attachment.html>

More information about the Users mailing list