If all else fails I'm going to try to figure this out myself in the next few days, but since Marcelo Rodriguez at
Voxilla says they are working on it (specifically, "
Coming soon in this series: A detailed guide to connecting OBi to Asterisk/FreePBX") I'd also keep an eye on their site. That said, I see one glaring thing wrong in your approach, and that's how you're doing your FreePBX trunk. You should not need the username or secret lines at all (nor the register string down below) but
you do need a context statement, else your incoming calls have no place to go. And it does need to go in the PEER details. Typically the string is context=from-trunk but in this case you want to make it
context=from-trunk-sip-Obi_Trunk_Peer (using
-sip-your_trunk_name at the end) so that the Maximum Channels setting will be honored (and you do want to set the Maximum Channels to 1, since you can only have one call at a time on the Line port).
Don't forget that you'll also need to create an Inbound Route or FreePBX will drop your calls on the floor, unless you have Anonymous Inbound SIP calling enabled. That's not a good idea for security reasons, but you can do it temporarily (in the FreePBX General settings) to see if that's your issue. If it is, watch the CLI as a call comes in, and it will likely tell you what you should be using as a DID in the Inbound Route (so you can turn off Anonymous Inbound SIP).
As for the ITSP InboundCallRoute, I am not really sure what you are attempting to do there but I believe that you could use x. and it would match on anything (which makes me wonder why you have x. followed by a number, but maybe I'm not quite getting the OBi syntax). So, for example, a pattern like 514XXXXXXX would match on any 514 number, but so would 514X. the difference being the latter would match if the number were four digits or longer starting with 514, whereas the former would require the number to be ten digits long starting with 514). Check the documentation to be sure:
http://www.obihai.com/docs/OBiDeviceAdminGuide.pdfAlso, you did see this post, right?
http://www.obitalk.com/forum/index.php?topic=57.0That is for use with raw Asterisk (not FreePBX per se) but the configuration of the OBi110 should be the same unless you are trying to do something special. Just as a wild guess, I'd suspect that in step 6 of that document, where it says "6. Set LINE Port - InboundCallRoute = SP1(2000)", what you'd really want to use there instead of 2000 is the actual phone number associated with the line, and then use that exact same number as the DID in your Inbound Route in FreePBX. But for the moment consider that a wild guess — just something to try.
I hope this helps, at least somewhat. If you make any headway please come back and tell us what worked (or what didn't) so we can all benefit.