Topic: Receive SIP calls from provider [Comments: 6]
rraborg

Tue, 03/09/2010 - 15:28 | Receive SIP calls from provider

Hi,
I have a SIP provider that gave us a range of DIDs to receive calls. They are pointing the calls to a public IP address in our network where Thirdlane MT is installed, so we are autheticated by IP, no username and password.
Some of the DIDs have already a destination inside Thirdlane MT, but I would like to have also a destination for the orphaned DIDs, the ones that don't have an extension assigned.
How can I receive all orphaned calls from my sip provider and send them to an IVR or forward them to other PBX in another location? I could do this with Trixbox/Elastix creating a "Inbound Route" with "any CID/any DID".
I'm new in THirdlane, but used to program PBXs with Trixbox/Elastix/FreePBX.
Please advice.
Thank you.

eeman

Wed, 03/10/2010 - 01:38 | Single tenant edition?

Single tenant edition?

Erik Smith
CTO
BluegrassNet Voice
dCAP
Thirdlane Support by BluegrassNet Voice
eeman at bluegrassnetvoice dot com

rraborg

Wed, 03/10/2010 - 14:53 | Multi Tenant

Thanks eeman for your fast answer. I have the Multi Tenant edition.

eeman

Wed, 03/10/2010 - 15:22 | you cannot run a catch-all in

you cannot run a catch-all in multi tenant since the did is required to determine what tenant to send the call to.

you can, however, create an invalid handler 'i' extension to do something like playback a message.

Erik Smith
CTO
BluegrassNet Voice
dCAP
Thirdlane Support by BluegrassNet Voice
eeman at bluegrassnetvoice dot com

rraborg

Wed, 03/10/2010 - 15:39 | so you mean that for every

so you mean that for every orphaned DID create an extension that points to an IVR or message that says "Number not in service"?
If I have 200 numbers and only 50 in use, is there another solution? instead of doing one by one?
Please advice.
Thank you.

eeman

Wed, 03/10/2010 - 15:53 | as long as you want something

as long as you want something as simple as the number not in service then yes theres an easier way.

add an invald handler at the top of inbound.include

Personally I would probably not play a message since that will result in the wrong reply code from asterisk. You are answering a call and then playing a message which has a disposition of ANSWERED. Not only is that call billable but if you peer with a carrier that requires an interop of compliance then you are sending the wrong responce. You should be sending a 404 on unallocated messages.

I would personally do this at the top of inbound.include:

exten => i,1,Hangup(1)

the 1 is a hangup cause code of unallocated number.

in the PSTN world this message is sent back over SS7 to the caller's switch. It is the callers switch that plays their message of 'the number you are trying to call is not in service' or something similar.

give that method a try and test the result of a non-used number from your cellphone.

If that method doesnt work for you and you still want to answer a call and play some other kind of message, reply back and I'll give you a multi-liner that plays a recording.

Erik Smith
CTO
BluegrassNet Voice
dCAP
Thirdlane Support by BluegrassNet Voice
eeman at bluegrassnetvoice dot com

rraborg

Wed, 03/10/2010 - 16:48 | Thank youy, I will try that

Thank youy, I will try that option and let you know.