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.html>