routing all calls thru asterisk 11.2 using Obi202 and obi110 with pstn

<< < (2/5) > >>

azrobert:
Here is another method to route inbound calls to extensions.

Define a dummy extension on Asterisk for each OBi extension.
In the Asterisk extension definition change the Dial parms to:
SIP/101@192.168.1.101:5060
SIP/201@192.168.1.102:5060
SIP/202@192.168.1.102:5060


Obi110
SP1 service X_InboundCallRoute
{robert1>(Msp1):li},{>101:ph}

Obi202
SP1 service X_InboundCallRoute
{>201:ph1},{>202:ph2}

I removed the peer number test in the inbound route because I'm not sure what it would be.
I think it will be the UserName you used for the SP1 extension, so it could be different names depending on which OBi originated the call.
You can see the peer number in the OBI Call History. You can then add it to the X_InboundCallRoute if you want more security.

I made changes to my 1st post. I forgot the extension numbers in the DigitMap.

drgeoff:
Quote from: azrobert on November 29, 2013, 03:47:46 pm

........
Setup a trunk for each OBi:
.........
Register SP1 as an Asterisk extension.
.........

I'm puzzled by that as I would have set the OBis as Asterisk extensions.  However, I did use the word "would" in the previous sentence to make it clear it isn't something I have done and I cannot say with certainty that it works.  Therefore I'm not going to say that setting a trunk for each OBi is incorrect or won't work.

azrobert:
I have a setup like this and it DOES work.
I'm sure there are other ways to do this.
I can see why my posts can be confusing, so here is an explanation.

In my 1st post you define an extension and a trunk in Asterisk for each OBi.
The extension is used to send outbound calls to Asterisk with a destination of the OBi110 Line Port or OBi Phone Ports.
The Trunk is used to send the above calls back to an OBi.
I used SP1 on the OBi's for both the extension and the trunk. You could use another SPx for the Asterisk trunk. The trunk is not defined on the OBi except for the inbound route and is not registered.

I'm an Asterisk novice and don't know how to send an outbound phone number to the OBi110 destined to the Line Port using only an extension. That is the reason for the Asterisk trunk.

You could use an Asterisk extension to route calls back to the OBi destined for a Phone Port. If you did it this way I think you would need an extension for each OBi Phone Port. The OBi would route the call based on which extension received the call. Doing my way using a trunk you route the call based on the extension number (101,201....).

In my 2nd post you define a dummy extension (not defined on the OBi) for each Obi Phone port. You could use the existing Asterisk extensions from my 1st post, but would need to define a dummy for the 2nd Phone Port on the OBi202s. The call comes in the same as using a trunk and OBi routes the call based on the extension number.

Edit:
I forgot about international calls. The DigitMaps have been updated.

cssobi:
>I have a setup like this and it DOES work.

Is it in asterisk?
if so what were entries for sip.conf and extensions.conf


azrobert:
I'm running PBX in a Flash with FreePBX version 2.9.0.12 and Asterisk version 1.8.13.0. I'm not familiar with any conf files nor do I use them.

There is nothing special you have to define with this setup. You define an extension and a trunk for each OBi. Define an outbound route for the OBi110 trunk that includes phone numbers, 911 and extension number 101. Define an outbound route for the OBi202 trunk which includes extension numbers 201 and 202.

For OBi110 inbound Line calls forwarded to Asterisk use an inbound route to send the call to an extension as described in my second post.

Navigation

[0] Message Index

[#] Next page

[*] Previous page