INVITE method has empty number


when I try to make an outbound call via a pjsip trunk via sipgate, the SIP log shows some weird behavior:

Via: SIP/2.0/UDP {{local-ip}}:5060;rport;branch=z9hG4bKPj541705dc-fe7a-4edf-9d0b-7817394589c7
To: <sip:{{dialednumber}}>
Route: <sip:{{dialednumber}}>


SIP/2.0 404 Not found (no match)

As you can see: the dialed number is not present in the first line: INVITE SIP/2.0
The number and the following @ sign are missing!
In the To and Route header, both are as expected.

This leads to an answer: 404 Not found from the provider…

If I take this SIP packet and send it to the provider via the linux netcat command, I get the same error: 404 Not found.

If I add the dialed number to the first INVITE line of the packet, so that it looks now like that:

INVITE sip:{{dialednumber}} SIP/2.0

it works! I get an answer 407 Proxy Authentication Required

I don’t understand, why FreePBX or Asterisk or pjsip or whoever is responsible does not include the number I want to dial in the INVATE header…

Could anyone please help me here…?


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.