Hello,
I have searched quite a bit on this subject over the past couple of weeks and not sure if I am completely off track or not.
Basically this is the setup we have.
Machine 1 - FreePBX Installed handles a trunk connected to a SIP provider and has incoming routes for various DID’s
Machine 2 - FreePBX Installed has no direct trunks coming in so I want to setup a interPBX trunk first and then try to route certain DID’s to this machine.
On both ends I have a similar trunk config.
Machine 1 has a regular trunk and is able to get inbound calls properly and has caller ID on the incoming side.
Machine 1 has a interconnect with Machine 2 on a trunk called machine1-machine2
Machine 1 also has an extension setup to handle trunk calls (not sure if I am doing this wrong)
Outgoing Settings
Trunk Name; machine2-peer
Peer Details
host=ipaddress of machine 2
username=xxxx ’ (extension on machine 1) - Lets say for example this is 9992
fromuser=xxxx ’ (same as above extension)
secret=xxxx
type=peer
qualify=yes
Incoming Settings
Trunk Name: machine1-peer
secret=xxxxx
type=user
context=from-trunk
Machine 2 has the exact same settings as above, but with the trunk names reversed and changed accordingly and an extension on that side.
Outgoing Settings
Trunk Name; machine1-peer
Peer Details
host=ipaddress of machine 1
username=xxxx ’ (extension on machine 2) - Lets say for example this is 3333
fromuser=xxxx ’ (same as above extension)
secret=xxxx
type=peer
qualify=yes
Incoming Settings
Trunk Name: machine2-peer
secret=xxxxx
type=user
context=from-trunk
I also have an outbound route on both sides to dial extensions on each others sides…so both machines can reach each others set of extensions.
Everything works here and I can dial extensions on machine 1 from machine 2’s extensions without an issue and so on. However every time machine 1 dials machine 2 the caller ID is always 9992 (whatever extension I set above on machine 1).
I have an incoming route for the DID in question getting routed to a Ring group (This is the only way I could make an inbound call get routed to an extension on the other side).
Is there any way I can generate a diversion header to work for the caller ID? - I have the latest build of freepbx where I can navigate to Setup->Advanced Settings->Generate Diversion Headers and set it to true.
I would like to see Machine 2 get caller ID from the inbound route on Machine 1. Is this even possible with this config? or am I doing this totally wrong?
Thanks for your help.