EDIT, Working config for Localphone Inbound/Outbound via FreePBX:
First a quick blurb on how Localphone works their accounts.
Inside of your Localphone account you have a SIP ID that is linked to one or multiple DID numbers. That SIP ID is what you use in configuration for anywhere that you would normally put the actual DID number. By default all of your DIDs are linked to that single SIP ID and hence all of those DIDs will be seen by your switch as the same thing, but you can request them to be split off into their own SIP IDs. This is pretty much essential to do if you need DIDs to ring different extensions, with the exception of also tagging on incoming CID...but that's a singular case that I came up with and actually am using.
Here is how to configure a single SIP ID. For multiple SIP IDs just duplicate with different names (I just numbered them localphone1-inbound, localphone2-inbound).
Under Trunks, Add Trunk:
Trunk Description:
Trunk Name:
PEER Details:
Register String:
Under Trunks, Add Trunk again:
Trunk Description:
Trunk Name:
Dial Rules: (This is the setting for North America only, other locations edit for local prefix)
PEER Details:
Under Inbound Routes, Add an Incoming Route:
Description:
DID Number:
Destination:
Under Outbound Routes, Add Route:
Route Name:
Dial Patterns: (Again, North American patterns, edit for other locations...I happened to use the new feature in FreePBX 2.7 that allows Outbound Routes by Extension without needing to load additional modules)
Trunk Sequence:
Position the new Outbound Route in the sequence that makes the most sense for your configuration. My sequence at this point is now:
ORIGINAL TEXT OF POST:
I'm going to blame the lateness of the hour, but I am having a heck of a time figuring out how to configure outbound using Localphone.
Using the Asterisk guide on their site at http://www.localphone.com/help/voip/devices/asterisk I was able to successfully set up inbound calling from multiple DID's via multiple SIP IDs (what you actually tag on for inbound routes) into multiple extensions.
What is hanging me up is trying to configure an outbound from one little tiny extension. I've even gone so far as to try to duplicate a working Vitelity outbound trunk using Localphone's info and all I get is a loop back to my PiaF box (or so it appears when looking at the 'CDR' on Localphone's portal).
For some reason I am under the impression that unlike Vitelity's config with both an inbound and outbound trunk, Localphone almost looks like it only uses a single trunk config, and I am not wrapping my head around that.
Anyone with a working Localphone outbound (or heck, just a "Hey stupid, do this") that can give me any hints on what it is that I need to do to get this working based on what is in their guide?
First a quick blurb on how Localphone works their accounts.
Inside of your Localphone account you have a SIP ID that is linked to one or multiple DID numbers. That SIP ID is what you use in configuration for anywhere that you would normally put the actual DID number. By default all of your DIDs are linked to that single SIP ID and hence all of those DIDs will be seen by your switch as the same thing, but you can request them to be split off into their own SIP IDs. This is pretty much essential to do if you need DIDs to ring different extensions, with the exception of also tagging on incoming CID...but that's a singular case that I came up with and actually am using.
Here is how to configure a single SIP ID. For multiple SIP IDs just duplicate with different names (I just numbered them localphone1-inbound, localphone2-inbound).
Under Trunks, Add Trunk:
Trunk Description:
Code:
localphone-inbound
Trunk Name:
Code:
localphone-inbound
PEER Details:
Code:
type=friend
insecure=very
nat=no
canreinvite=no
authuser=[SIP ID]
username=[SIP ID]
fromuser=[SIP ID]
fromdomain=localphone.com
secret=[SIP Password]
host=localphone.com
dtmfmode=rfc2833
context=from-trunk
disallow=all
allow=ulaw
allow=alaw
Register String:
Code:
[SIP ID]:[SIP Password]@localphone.com/[SIP ID]
Under Trunks, Add Trunk again:
Trunk Description:
Code:
localphone-outbound
Trunk Name:
Code:
localphone-outbound
Dial Rules: (This is the setting for North America only, other locations edit for local prefix)
Code:
1+NXXNXXXXXX
PEER Details:
Code:
type=friend
insecure=very
nat=no
canreinvite=no
authuser=[SIP ID]
username=[SIP ID]
fromuser=[SIP ID]
fromdomain=localphone.com
secret=[SIP Password]
host=localphone.com
dtmfmode=rfc2833
context=from-trunk
disallow=all
allow=g729&ulaw&alaw
Under Inbound Routes, Add an Incoming Route:
Description:
Code:
Whatever suits your fancy
I made the descriptions:
Localphone [DID Number]
DID Number:
[SIP ID]
Destination:
Code:
The extension or whatever other destination that you want to receive calls via this DID
Under Outbound Routes, Add Route:
Route Name:
Code:
Whatever suits your fancy
Dial Patterns: (Again, North American patterns, edit for other locations...I happened to use the new feature in FreePBX 2.7 that allows Outbound Routes by Extension without needing to load additional modules)
1NXXNXXXXXX/8000
NXXNXXXXXX/8000
Trunk Sequence:
Code:
SIP/localphone-outbound
Position the new Outbound Route in the sequence that makes the most sense for your configuration. My sequence at this point is now:
Code:
Google Voice using 48+ dialing
Toll Free via ENUM
Toll Free via free toll free outbound
Localphone (only on distinct extensions via FreePBX 2.7 config)
Google Voice
ORIGINAL TEXT OF POST:
I'm going to blame the lateness of the hour, but I am having a heck of a time figuring out how to configure outbound using Localphone.
Using the Asterisk guide on their site at http://www.localphone.com/help/voip/devices/asterisk I was able to successfully set up inbound calling from multiple DID's via multiple SIP IDs (what you actually tag on for inbound routes) into multiple extensions.
What is hanging me up is trying to configure an outbound from one little tiny extension. I've even gone so far as to try to duplicate a working Vitelity outbound trunk using Localphone's info and all I get is a loop back to my PiaF box (or so it appears when looking at the 'CDR' on Localphone's portal).
For some reason I am under the impression that unlike Vitelity's config with both an inbound and outbound trunk, Localphone almost looks like it only uses a single trunk config, and I am not wrapping my head around that.
Anyone with a working Localphone outbound (or heck, just a "Hey stupid, do this") that can give me any hints on what it is that I need to do to get this working based on what is in their guide?