Asterisk setup with OBi110

<< < (3/6) > >>

justin:
ok I have the Obi110 line port as an ext on the asterisk server. Tested and works

I have setup the line physical inbound call route as SP2(10digitPOTSnumber) with the ring delay set. and extended disconnect settings.

The obi110 History shows the call coming in and supposed to connect to my POTS number on SP2 but it never connects.

I have the SP2 X_InboundCallRoute as {>(202):ph}, {>(1xxx xxx xxxx):sp1}, {>( xxx xxx xxx):pp}

202 is the obi110 line ext number in asterisk.

I have 2 Inbound routes with GV DID and POTS DID

So to wrap up I currently have working...
Inbound GV. Pointed to Asterisk
The OBi110 phone port as an ext in Asterisk.

What I need to have working is:
Incoming POTS calls from line port to Asterisk
Outgoing Calls from asterisk to GV. with 911 going to POTS.

Any Idea where I could check?

MichiganTelephone:
Quote from: justin on February 24, 2011, 04:38:41 pm

What I need to have working is:
Incoming POTS calls from line port to Asterisk

On your OBi110, check your settings under Physical Interface, Line Port.  For the InboundCallRoute put SP2 and then in parenthesis the 10 digit number of your PSTN line.  And make sure the RingDelay value is set it to 3500 (you may be able to cut that back to 3000 or even a bit less after you get it working, depending on how long it actually takes to reliably receive Caller ID).  Then, make sure you have an inbound route for the same 10 digit number, and also that in extensions_custom.conf, in the [custom-from-obi] context, you add a line at the top for the PSTN line - where in the article it shows you to do this:

[custom-from-obi]
exten => 9-DIGIT-OBiTALK-NUMBER,1,Goto(from-trunk,${EXTEN},1)
exten => 10-DIGIT-GV-NUMBER,1,Goto(from-trunk,${EXTEN},1)

Right under that, add a line like this:

exten => 10-DIGIT-PSTN-NUMBER,1,Goto(from-trunk,${EXTEN},1)

You need the exact same ten digit number in all three places (InboundCallRoute on the OBi110, the DID field of your Inbound Route in FreePBX, and the above context line) for it to work.

Quote from: justin on February 24, 2011, 04:38:41 pm

Outgoing Calls from asterisk to GV. with 911 going to POTS.

This is where it gets a bit more complicated, because there are several things that all need to be right for it to work.  You need a proper Outbound Route, that selects the OBi110 SIP trunk you should have created.  If you have those two things, and your SP2 X_InboundCallRoute is as you show, then calls should go out the Google Voice trunk.  If you want to divert 911 calls to the LINE port, then you should be able to change your SP2 X_InboundCallRoute to this:

{>(911):li}, {>(202):ph}, {>(1xxx xxx xxxx):sp1}, {>( xxx xxx xxx):pp}

HOWEVER you will also have to make sure that you have an Outbound Route in FreePBX that actually sends your 911 calls to the OBi110 trunk.  From what you've shown me so far and what you've said works, I tend to think your trunk is okay and your OBi configuration may be okay, but you don't have your Outbound Route(s) set up correctly.  That’s why it can be very helpful to watch the Asterisk CLI while actually trying to place a call - you can see the path the call is taking and you can see if it's ever reaching the trunk.  And remember, once Asterisk has seen a pattern match in any outbound route, it will never look any further, so you have to be careful how you have your Outbound Routes prioritized and that you don't have a pattern that could match the number called in a higher Outbound Route - if you do, the call will use that route and never get to the one you want it to use (even if the call ultimately fails on that route).

Hope that helps!

justin:
POTS > Asterisk
I have all 3 locations set but I still seem to be getting a 404 error with sip debug.  :'(

MichiganTelephone:
SIP debug is not going to tell you anything useful about your incoming calls.  If your trunk it working (and it IS working if you're receiving any calls from your OBi device), then the 404 is totally irrelevant.

The problem with SIP debug (which I rarely use) is that it mixes all kinds of input from various sources so unless you know how to use it, it can confuse you more than anything.  No, you should not see a 404 error BUT are you sure that packet has anything at all to do with the OBi110?  It could be right in the middle of a packet stream from the OBi but still be from another source entirely.  If it is from the OBi110 then you may have a mismatch between your Service Provider 2 SIP Credentials and your FreePBX trunk USER Context and USER Details (particularly your password/secret), although if that were the case I'd be surprised that the trunk works at all.

Concentrate on using the Asterisk CLI during your debugging — it will give you much more useful information than SIP debug (unless your unit were not connecting at all, which is clearly not the case here).

justin:
I used the CLI debug with verbosity set as 15 but when I call in using POTS all i see is


  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5

When Calling from GV I can see that it is preforming "Executing", and "GoTo".


Could this be an issue as I don't have CID on my POTS line?

Navigation

[0] Message Index

[#] Next page

[*] Previous page