Error when connecting baresip to asterisk

I know this is a baresip issue, but does anyone know what I might be missing in my baresip configuration?

I have both asterisk and baresip running on same machine, and I have configured baresip to connect to the local network IP 192.168.2.249

[Apr 24 15:17:18] ERROR[18004]: pjproject: <?>: 	       sip_transport.c Error processing 904 bytes packet from UDP 192.168.2.249:5062 : PJSIP syntax error exception when parsing 'From' header on line 7 col 20:
INVITE sip:baresip@192.168.2.249:5062 SIP/2.0
Via: SIP/2.0/UDP 192.168.2.249:5062;branch=z9hG4bKf0407491131c3a31;rport
Contact: <sip:-0x55c93472a3a0@192.168.2.249:5062>
Max-Forwards: 70
Route: <sip:192.168.2.249;transport=udp;lr>
To: <sip:baresip@192.168.2.249:5062>
From: <sip:baresip@>;tag=61d9457b4d90fe36
Call-ID: 1aa635e9e2783ef5
CSeq: 20516 INVITE
User-Agent: baresip v3.0.0 (x86_64/Linux)
Allow: INVITE,ACK,BYE,CANCEL,OPTIONS,NOTIFY,SUBSCRIBE,INFO,MESSAGE,UPDATE,REFER
Supported: gruu,replaces,norefersub
Content-Type: application/sdp
Content-Length: 326

The message tells you, the From header is invalid. It’s invalid because the URI has an empty hostname.

1 Like

thanks, yes, it was a typo in baresip accounts file

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