how to let the kamailio support Edge Proxy? - sip

As the RFC http://www.rfc-editor.org/rfc/rfc5626.txt describes , how can i extends a Edge Proxy by Kamailio ? should i write a module , or just write the configure file ?
have any one already do it ,could give me some advice .
thanks .

You could use an already configured instance - SipWise.
It's free, it's Kamailo based, it has an edge-proxy acting as a load-balancer at /etc/ngcp-config/templates/etc/kamailio/lb/kamailio.cfg.tt2, it's available as appliance and requires minimal configuration steps to run it with the basic features up.
You can use it directly, or you can just run it somewhere and take a look at the configuration.

Why write a module? Edge proxy is a pretty much a SIP proxy for REGISTERs.
You could accomplish that with just the configuration routes.

Related

PROXY protocol - test client /tool

Proxy Protocol is implemented by various software including of course HAProxy itself.
When testing from a host via a proxy, it would be useful to have a simple command-line tool to establish connections, controlling the various parameters.
I've looked at netcat, socat and other similar tools and it looks like it doesn't (yet) exist.
Does anyone know of a nice command-line testing tool?
As I couldn't find something, here's a start. Will add documentation etc. shortly.

Bonjour Host Discovery for REST Web Services

Up to now I have never worked with bonjour. I think it is an interesting approach for using it to discover hosts which run rest services (e.g. by defining a predefined URL for devices providing a specific service).
I read that I can ping the host with Bonjour via the bonjour-name but I have not found an approach how to call a REST service with bounjour (where I usually also need the port). Is this possible or do you know some references? I am thinking on something like this: xservice.Alice.local/rest?abc=......
Thank you

Setting up Plesk as proxy server for my browser

I have tried to find info on this, but can't seem to find what I am actually looking for.
I have a server running plesk. What I would like to do is set it up so that I can run my browser through that and have a static IP address. Is this possible and if so, any pointers on how to set this up?
I know that this is a few years old, but in case someone stumbles upon it. It's quite easy now with Onyx and Docker.
Create a new Docker instance with robhaswell/squid-authenticated.
Configure as follows:
Yes, you just need to install proxy server like squid or tinyproxy or 3proxy
Also as a more simpler but with more limitations you can create a domain and use one of PHP proxies like this one or this one
Don't forget about authentication.

adding a proxy support to specific perl module

I am using the following Perl module from CPAN Net::Whois::IANA which works well when there are no proxy but when a proxy is needed it fails .
from inspecting its code it using this module IO::Socket::INET to connect .
could someone provide how can I add proxy capability to this module ?
There is no such thing as a proxy for all protocols. A proxy is a protocol specific thing and there are different proxies needed for HTTP, SIP etc. As far as I know there is no such thing as a proxy defined for the whois protocol. What kind of proxy do you want to use with whois?

opendns and perl lwp::simple get

I am trying to filter web content that is accessed programmatically, lets say through lwp::simple or sockets.
I do not have any control over the server configuration, eg. dns settings
How will I be able to use opendns, with these restrictions.
is there per-request dns?
I am not that familiar with this topic, and I greatly appreciate your help.
LWP/Perl sockets use the operating system's resolver only. You need to set up a separate forwarder (e.g. dnsmasq) somewhere that can be configured to resolve certain hostname differently. Then either:
subclass LWP to use the external forwarder or
get permission to point the OS resolver there or
write something in C that hi-jacks the getnameinfo(3)/gethostbyaddr(3) and related system calls, then install this as preload hack.