[asterisk-users] PJSIP not performing outbound authentication

TTT lists at telium.io
Wed Jun 21 12:30:59 CDT 2023


Yes, I set 

Outbound_auth=Twilio

In the [Twilio] section of pjsip.endpoint.conf

But does that mean the initial invite should contain an authentication line, or only that it will expect a 407? 

-----Original Message-----
From: asterisk-users [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Carlos Chavez
Sent: Wednesday, June 21, 2023 1:26 PM
To: asterisk-users at lists.digium.com
Subject: Re: [asterisk-users] PJSIP not performing outbound authentication

     Dis you set "outbound_auth" in your endpoint configuration to Twilio?

On 21/06/23 11:19, TTT wrote:
> I am using Asterisk 20.3.0 with PJSIP.  I have setup a trunk to my ISP
> (Twilio) who requires outbound authentication.  My pjsip.auth.conf contains:
>
> [Twilio]
> type=auth
> auth_type=userpass
> password=mysecret
> username=myun
>
> However, my calls using the trunk are rejected with a 403. Using pjsip 
> logging I notice that the outgoing invite does not have an 
> authentication line. Why is Asterisk not sending credentials to the 
> ISP? SIP transactions
> are:
>   > INVITE
>   < 100 TRYING
>   < 403 FORBIDDEN
>
> Or is this normal?  Must Twilio respond with a 407 which will cause 
> Asterisk to authenticate?
>
>
--
Telecomunicaciones Abiertas de México S.A. de C.V.
Carlos Chávez
+52 (55)8116-9161


-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
      https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users




More information about the asterisk-users mailing list