[asterisk-users] PJSIP Setup Outbound SIP Trunk
Ahmed Chohan
ahmedmunir007 at gmail.com
Thu Oct 17 12:25:53 CDT 2019
Thanks for reply.
After going through the all configurations, there was syntax error with the
dial plan for outbound call i.e. previously I was using
"Dial(PJSIP/trunk_proxy/${EXTEN})" and was unable to make outbound calls.
Later changed to "Dial( PJSIP/${EXTEN}@ trunk_proxy)" it worked as expected
i.e. no need to set auth/reg for the SIP trunk as not setting it up at SIP
Proxy end.
Date: Wed, 16 Oct 2019 13:27:30 -0500
> From: Kevin Harwell <kharwell at digium.com>
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> <asterisk-users at lists.digium.com>
> Subject: Re: [asterisk-users] PJSIP Setup Outbound SIP Trunk
> Message-ID:
> <CAM-yhn=
> e2cUHG0xPdFpkiDA8ZrKOKVPV1S4ymQs9kgPOP+aE-A at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> On Mon, Oct 14, 2019 at 11:56 AM Ahmed Chohan <ahmedmunir007 at gmail.com>
> wrote:
>
> > Hi,
> >
> > I've currently migrating from chan_sip to chan_pjsip, for now I'm able to
> > setup and configured extensions in PJSIP and incoming trunks but unable
> to
> > configure outbound trunk as getting unauth/unregistered trunk endpoint
> > message error message when making outbound calls. However, for inbound
> > calls I'm not facing any issues.
> >
> > I would like to know how can I configured outbound sip trunk bypassing
> > registration and auth?
> >
>
> Where are the messages coming from? Is Asterisk sending an outbound
> registration, but getting rejected? If so make sure your username/password
> credentials are correct.
>
>
> >
> > See below current configuration;
> >
> > [trunk_proxy]
> > type=endpoint
> > transport=transport-udp
> > context=fromsip
> > disallow=all
> > allow=ulaw
> > aors=trunk_proxy
> > force_rport=no
> > direct_media=yes
> > ice_support=no
> > trust_id_inbound=yes
> > outbound_auth=trunk_proxy
> >
> > [trunk_proxy]
> > type=aor
> > contact=sip:10.3.120.208:5060
> >
> > [trunk_proxy]
> > type=identify
> > endpoint=trunk_proxy
> > match=10.3.120.208
> >
> > [trunk_proxy]
> > type=auth
> > auth_type=userpass
> > password=
> > username=sip_proxy
> >
> > [trunk_proxy]
> > type=registration
> > outbound_auth=trunk_proxy
> > server_uri=sip:10.3.120.208:5060
> > client_uri=sip:10.3.120.208:5060
> > auth_rejection_permanent=no
> >
> > --
> > Regards,
> >
> > Ahmed Munir Chohan
> >
> > --
> > _____________________________________________________________________
> > -- 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
>
>
>
> --
> Kevin Harwell
> Digium - A Sangoma Company | Senior Software Developer
> 445 Jan Davis Drive NW - Huntsville, AL 35806 - US
> Check us out at: https://digium.com & https://asterisk.org
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.digium.com/pipermail/asterisk-users/attachments/20191016/e1e12adb/attachment-0001.html
> >
>
>
--
Regards,
Ahmed Munir Chohan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20191017/255f4c47/attachment.html>
More information about the asterisk-users
mailing list