Koozali.org: home of the SME Server

How to accept incoming URI connections?

Offline judgej

  • *
  • 375
  • +0/-0
How to accept incoming URI connections?
« on: October 03, 2008, 05:09:14 PM »
I have installed the SAIL contribution (I think it is SAIL - lots of things seem to be installed, each with brand names, leaving me a little confused as to what part each plays in the overall 'Asterisk' server) on SME Server 7.3, and am trying to figure out how it all hangs together. One thing I would like to do is to be able to accept incoming SIP connections direct from SIP phones.

For example, I would like to dial "sip:5000@example.com" or "sip:5000@12.34.56.78" into the xtem softphone, and have it dial through to extension 5000 on my server at that domain or IP address.

Is that possible? If so, can it be done through the SAIL admin panels, or would it require some hacking? I am assuming that using 'sip:' in a softphone means that phone will attempt to go *direct* to that PBX - is that right, or have I got the wrong end of the stick?

If I do this, is it a potential security problem, or a gaping hole allowing voice spammers to dial all my extensions in bulk?

-- Jason
« Last Edit: October 03, 2008, 05:12:14 PM by judgej »
-- Jason

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: How to accept incoming URI connections?
« Reply #1 on: October 03, 2008, 09:30:33 PM »
SAIL won't accept a call from a number unless the number is defined in trunks.  Unsolicited calls are dumped.  Right now, it won't accept 4 digit number calls at all, but we are working on this for one of our customers.  There are some exceptions to this (Siblings and gateways), but they don't concern us here.  The general rule is that you must define a number you want to accept external calls on in Trunks.  The PTT-DiD trunk is designed to do this (and to accept PTT DDI's from T1/E1 and BRI circuits). 

There is nothing to stop you  creating your own numbering scheme (say, for example,  8 digits) and creating a PTT-DiD trunk with a number such as 12345678.  You can then accept calls on that number from other SIP UA's (e.g. 12345678@yoursail.com).

Kind Regards

S

Offline judgej

  • *
  • 375
  • +0/-0
Re: How to accept incoming URI connections?
« Reply #2 on: October 03, 2008, 11:11:15 PM »
PTT sounds intriguing. I'll read up on that.

I guess I am thinking of a PBX in the same terms as an e-mail server: e-mail connections are allowed from anywhere (so long as they are not black-listed) and e-mails can go to any valid internal recipient so long as there is not an open relay going on. Maybe one day we can take that approach for SIP, when there are sufficient SPAM protections in place.

Thanks for the tips.

-- Jason
-- Jason