Dialling out on SIP trunk, CID is the number I am trying to call!

Hi,

I’ve got FreePBX connected to a SIP trunk provider, but every time I try and dial out, the CID is presented to the trunk provider as being the number I am trying to call, and so isn’t allowed.

Any suggestions as to what’s going wrong? This trunk was previously used with a test number, and worked both ways. It’s now a real number, but only works outgoing. I changed the CID. I had tried adding another trunk with the same settings and a different CID, that didn’t work so I deleted them and started again, but still no joy. Might it have gotten in a mess after having two trunks registering with the same ID?

Here are the trunk settings …

PEER Details:
host=sip.hidden.co.uk
username=hidden
secret=hidden
type=peer
allow=g722
trustrpid=yes
sendrpid=yes
insecure=very

USER Details
secret=hidden
type=user
context=from-trunk

Register String
user:[email protected]/user