Skip to main content

SIP Invite Rejected

Posted by oweiler00 on Mon, 12/23/2013

I'm a brand new thirdlane pbx user (running v7.1.1.3) and am trying to set up inbound SIP connections. I created a testing account at flowroute, added it to the trunks list as an inbound/outbound trunk and can make outbound calls. When inbound calls come in, the SIP INVITE is greeted with a "SIP/2.0 401 Unauthorized".

How do I authorize inbound sip connections from a SIP trunk provider like flowroute or where should I look for more information about how to do this kind of thing?


Submitted by oweiler00 on Tue, 12/24/2013 Permalink

I dug a little and found the answer: I registered flowroute using hostname (sip.flowroute.com) instead of IP address. When registering by IP, the SIP Invite was accepted and routing through asterisk started working.

Submitted by eeman on Wed, 01/01/2014 Permalink

they might send you calls from more than one IP. you will need to setup 1 trunk per ip. When using the IP trust method you simply need to set the type to 'outbound'. The name is wrong. It means 'peer'. Peer means only ip matters, no dynamic registrations allowed. In addition the insecure=port,invite will let any call, as long as its from that IP, be accepted by your pbx.