SIP Invite header uses proxy, not domain


(Shane Dalgleish) #1

I am trying to connect FreePBX to an AAPT Bizphone trunk.
They provide no support, but do provide a document with examples of the sip requests, which has got me through registration and inbound calls.

From what I can see, the only difference between the documented example and what is happening is that when my pbx sends the sip invite to the proxy address (210.9.35.9), the header contains the proxy url instead of the domain url.

So my header looks like this:

Reliably Transmitting (NAT) to 210.9.35.9:5060: 
INVITE sip:[DialedNumber]@trunk-nsw.bizphone.aapt.com.au SIP/2.0
Via: SIP/2.0/UDP xxx.xxx.xxx.xxx:5160;branch=xxxxxxxxxxxxxx;rport
Max-Forwards: 70
From: <sip:[DIDNumber]@bizphone.aapt.com.au:5160>;tag=xxxxxxxxxxxx
To: <sip:[DialedNumber]@trunk-nsw.bizphone.aapt.com.au>
Contact: <sip:[DIDNumber]@xxx.xxx.xxx.xxx:5160>

But it should look like this:

Reliably Transmitting (NAT) to 210.9.35.9:5060: 
INVITE sip:[DialedNumber]@bizphone.aapt.com.au SIP/2.0
Via: SIP/2.0/UDP xxx.xxx.xxx.xxx:5160;branch=xxxxxxxxxxxxxx;rport
Max-Forwards: 70
From: <sip:[DIDNumber]@bizphone.aapt.com.au:5160>;tag=xxxxxxxxxxxx
To: <sip:[DialedNumber]@bizphone.aapt.com.au>
Contact: <sip:[DIDNumber]@xxx.xxx.xxx.xxx:5160>

I’ve set up the trunk using fromuser and fromdomain, but this doesn’t change the behavior of the To Domain. trunk-nsw shouldn’t appear in the header at all according to the documentation and it is giving me a 604 response.

Is there a way to configure so the header INVITE and To contain the correct domain?
I’ve spent all day reading the docs and trying things.

Does anyone know what my next step should be?