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?

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

Reply via email to