PJSIP trunk issues with IP Based SIP

Hello, I am trying to configure SIP IP BASED AUTHENTICATION, But failed to make Inbound and Outbound. Here is my real configuration:

[my-siptrunk-auth]
type=auth
auth_type=userpass
username=222333444

[my-siptrunk-aor]
type=aor
contact=sip:192.x.x.x.x:5060

[my-siptrunk]
type=endpoint
context=from-pstn
disallow=all
allow=g722
allow=ulaw
allow=g729
outbound_auth=my-siptrunk-auth
aors=my-siptrunk-aor

[my-siptrunk-registration]
type=registration
transport=transport-udp
outbound_auth=my-siptrunk-auth
server_uri=sip:192.x.x.x.x:5060:5060
client_uri=sip:222333444@192.x.x.x.x:5060:5060
contact_user= 222333444
outbound_auth=my-siptrunk-auth
retry_interval=60

[my-siptrunk-identify]
type=identify
match=192.x.x.x.x
endpoint=my-siptrunk

Any missing Please?

If you want IP based auth you don’t have to register and/or send auth

Also, failed is not an error, it’s a state, you should be more explicit on what happend exactly :wink:

1 Like

What shall I remove from the parameters?

Answer the question about how it failed, first, as bogus configuration for registration and authentication wouldn’t break a true IP authenticated configuration.

Is the trunk registering fully with the carrier or gateway?

Try running sngrep if you can and check for the error.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.