With some help from 3CX (normaly they dont provide help integrating Asterisk to them.... so I'm lucky)... Here is what needs to be done on both 3CX and Asterisk side for trunking to work and Caller ID as well:
Hi, everything is working now, thank you. Just for my own notes (and yours if need be) in the ticket system, here is what needs to be setup on both side:
Client side PBX: (in our case, it's Asterisk 13 with Incredible PBX 13-12.2CENTOS6)
Trunk setup:
Trunk name : 3CX
Peer details:
host=[ip of 3cx]
username=[number for 3CX master bridge ID]
fromuser=[number for 3CX master bridge ID]
secret=[password for 3CX master bridge ID]
sendrpid=yes ; needed for CallerID to be sent to 3CX
type=peer
qualify=yes
Register String:
[bridgeID]:[bridge_password]@[3cx_ip]:5060/[bridgeID]
;example: 10000:
[email protected]:5060/10000
On the 3CX: (3CX bridge must be set as MASTER)
Make sure to set the bridge option: "Caller ID to send in "From Display Name" field = "Caller Name" or else Caller Name/Number does not work correctly.
Hope this helps someone else, as this took me 4 days in my LAB to set this up and get it working properly.