sipstateless (Re: Greetings and a question)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 23 Jan 2014 09:45:30 -0500, Daniel Ellison wrote:
> On Jan 23, 2014, at 9:02 AM, Dennis Guse <dennis.guse at alumni.tu-berlin.de> wrote:
>>
>> Just two question: 
>> 1. for how many people are going to deploy this?
>> 2. how does the API to the CNS look like? (Any restrictions? is it reliable and responsive enough for VoIP calls [limited time to setup]?)
> 
> 1. At first this would only be for me. So one person. :) Eventually, after it's matured a bit, I would release it for people to use on their own servers.


Why would you want to relay/proxy outgoing connections too?

 *****

Maybe it would be worth to take a look at
"pjsip-apps/src/samples/sipstateless.c" in pjsip distribution, esp.
"static pj_bool_t on_rx_request()" there.

Though it looks like this small utility currently doesn't work (doesn't
do what its supposed to do (tcpip connections don't get through to the
rx_request callback), if I understand it correctly) if started like

    sipstateless 302 -H 'Expires: 300' -H 'Contact: <sip:192.168.1.1>'

but the intention is clear: to utilise a minimalistic redirect-server
for personal use (i.e. not something supposed to accomplish like 500000
requests per second) to be run publicly accessibly in order to make you
available for incoming calls.

Currently "sipstateless" would ask the caller to redirect *any* methods
to you (192.168.1.1), but tweaking rx_request above to respond only to
PJSIP_INVITE_METHOD (and PJSIP_SC_NOT_IMPLEMENTED to anything else, or
if a particular INVITE is to be denied) should be straightforward.

Someone knowledgeable in pjsip datastructures and internals could easily
turn this little tool into something very useful, like creating an
interface to some externally running "pseudo-registrar/authorisation"
utility (in order to ensure flexibility; e.g. by local file socket or
whatever), passing into this external utility the "From" and "To" fields
of the invite request, reading back a SIP status code with to be
appended headers and then executing "pjsip_endpt_respond_stateless()".

Wouldn't such tool be great?  :-)

    Eeri Kask





[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux