<div dir="ltr"><div dir="ltr"><br></div><div>Thanks for reply.</div><div><br></div><div>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.   <br></div><div><div class="gmail_quote"><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Date: Wed, 16 Oct 2019 13:27:30 -0500<br>
From: Kevin Harwell <<a href="mailto:kharwell@digium.com" target="_blank">kharwell@digium.com</a>><br>
To: Asterisk Users Mailing List - Non-Commercial Discussion<br>
        <<a href="mailto:asterisk-users@lists.digium.com" target="_blank">asterisk-users@lists.digium.com</a>><br>
Subject: Re: [asterisk-users] PJSIP Setup Outbound SIP Trunk<br>
Message-ID:<br>
        <CAM-yhn=<a href="mailto:e2cUHG0xPdFpkiDA8ZrKOKVPV1S4ymQs9kgPOP%2BaE-A@mail.gmail.com" target="_blank">e2cUHG0xPdFpkiDA8ZrKOKVPV1S4ymQs9kgPOP+aE-A@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
On Mon, Oct 14, 2019 at 11:56 AM Ahmed Chohan <<a href="mailto:ahmedmunir007@gmail.com" target="_blank">ahmedmunir007@gmail.com</a>><br>
wrote:<br>
<br>
> Hi,<br>
><br>
> I've currently migrating from chan_sip to chan_pjsip, for now I'm able to<br>
> setup and configured extensions in PJSIP and incoming trunks but unable to<br>
> configure outbound trunk as getting unauth/unregistered trunk endpoint<br>
> message error message when making outbound calls. However, for inbound<br>
> calls I'm not facing any issues.<br>
><br>
> I would like to know how can I configured outbound sip trunk bypassing<br>
> registration and auth?<br>
><br>
<br>
Where are the messages coming from? Is Asterisk sending an outbound<br>
registration, but getting rejected? If so make sure your username/password<br>
credentials are correct.<br>
<br>
<br>
><br>
> See below current configuration;<br>
><br>
> [trunk_proxy]<br>
> type=endpoint<br>
> transport=transport-udp<br>
> context=fromsip<br>
> disallow=all<br>
> allow=ulaw<br>
> aors=trunk_proxy<br>
> force_rport=no<br>
> direct_media=yes<br>
> ice_support=no<br>
> trust_id_inbound=yes<br>
> outbound_auth=trunk_proxy<br>
><br>
> [trunk_proxy]<br>
> type=aor<br>
> contact=sip:<a href="http://10.3.120.208:5060" rel="noreferrer" target="_blank">10.3.120.208:5060</a><br>
><br>
> [trunk_proxy]<br>
> type=identify<br>
> endpoint=trunk_proxy<br>
> match=10.3.120.208<br>
><br>
> [trunk_proxy]<br>
> type=auth<br>
> auth_type=userpass<br>
> password=<br>
> username=sip_proxy<br>
><br>
> [trunk_proxy]<br>
> type=registration<br>
> outbound_auth=trunk_proxy<br>
> server_uri=sip:<a href="http://10.3.120.208:5060" rel="noreferrer" target="_blank">10.3.120.208:5060</a><br>
> client_uri=sip:<a href="http://10.3.120.208:5060" rel="noreferrer" target="_blank">10.3.120.208:5060</a><br>
> auth_rejection_permanent=no<br>
><br>
> --<br>
> Regards,<br>
><br>
> Ahmed Munir Chohan<br>
><br>
> --<br>
> _____________________________________________________________________<br>
> -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
><br>
> Check out the new Asterisk community forum at:<br>
> <a href="https://community.asterisk.org/" rel="noreferrer" target="_blank">https://community.asterisk.org/</a><br>
><br>
> New to Asterisk? Start here:<br>
>       <a href="https://wiki.asterisk.org/wiki/display/AST/Getting+Started" rel="noreferrer" target="_blank">https://wiki.asterisk.org/wiki/display/AST/Getting+Started</a><br>
><br>
> asterisk-users mailing list<br>
> To UNSUBSCRIBE or update options visit:<br>
>    <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" rel="noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
<br>
<br>
<br>
-- <br>
Kevin Harwell<br>
Digium - A Sangoma Company | Senior Software Developer<br>
445 Jan Davis Drive NW - Huntsville, AL 35806 - US<br>
Check us out at: <a href="https://digium.com" rel="noreferrer" target="_blank">https://digium.com</a> & <a href="https://asterisk.org" rel="noreferrer" target="_blank">https://asterisk.org</a><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.digium.com/pipermail/asterisk-users/attachments/20191016/e1e12adb/attachment-0001.html" rel="noreferrer" target="_blank">http://lists.digium.com/pipermail/asterisk-users/attachments/20191016/e1e12adb/attachment-0001.html</a>><br>
<br clear="all"></blockquote></div><br>-- <br><div dir="ltr" class="gmail_signature">Regards,<br><br>Ahmed Munir Chohan<br><br></div></div></div>