News:

On Tuesday September 6th the forum will be down for maintenance from 9:30 PM to 11:59 PM PDT

Main Menu

How do I configure OBi202 with OBiLINE as PSTN Gateway for Asterisk

Started by petersj, February 06, 2014, 10:55:30 AM

Previous topic - Next topic

petersj

I have a OBi202 with OBiLINE connected to my PSTN line.

I want to configure it to use as a gateway for my Asterisk server to be able to route all my calls from the Asterisk server through the PSTN line. I want to have both incoming and outgoing calls through the PSTN line to the Asterisk server

I've read through the forum but am completely stuck as to what I need to configure.


Thanks

Peter

azrobert

See: http://www.obitalk.com/forum/index.php?topic=6988.0

This is a solution for an OBi110, but should be the same for an OBi20X with OBiLine.

Skip to Reply #14

petersj

I'm struggling with the set up

I've set up the trunk in Asterisk and its showing as registered

I've also set up extension 101 in asterisk for the OBi202

So on the OBI202
I've done the following

1. ITSP A DigitMap:
Left as default

2. ITSP A -> SIP
X_SpoofCallerID: Enabled (checked)

3. SP1 Service-> X_InboundCallRoute
{peterobi1>((Msp1)|999|112):li},{ph}
(In Ireland we use 112 or 999 for Emergency Services)
I  also entered the extension registration details under SP1 - should it be ITSP A?

4. Phone 1 Port DigitMap:
((Msp1)|112|999)

5. Phone 1 PortOutboundCallRoute:
{999|112:li},{((Msp1)):sp1}

6.Line InboundCallRoute:
{sp1(101@192.168.215.4:5060}
I assumed that 999 in post #14 on thread should be changed to the Asterisk extension 101?

drgeoff

Missing ) in {sp1(101@192.168.215.4:5060}

Should be {sp1(101@192.168.215.4:5060)}

azrobert

Quote6.Line InboundCallRoute:
{sp1(101@192.168.215.4:5060}

The above can contain any number. If it's an extension Asterisk will route the call to that extension. If it's not an extension you need an inbound route to route the call anywhere you want.

QuoteI also entered the extension registration details under SP1 - should it be ITSP A?

Yes

The Asterisk trunk doesn't register to the OBi. It just points to SP1 and does not have a registry string.

{peterobi1>((Msp1)|999|112):li}

The above rule checks for username of peterobi and an outbound number that matches Msp1, 999 or 112. If both match the call is routed out Line.

You are using SP1 for the trunk and the extension. You could use another SP for the trunk. If you do use another SP it must have a valid SIP definition.

Have you tried inbound or outbound calls?
What happens?