DIAL command in Asterisk 11 not working in Asterisk 16

I have two Asterisk 11 intallations that I need to update to Asterisk 16 and pjsip.

I have a question about the DIAL command.

In Asterisk 11 extensions.conf this works perfectly:

DIAL(SIP/callwithus/${EXTEN})

In Asterisk 16 I get an error message using this:

DIAL(PJSIP/callwithus/${EXTEN})

This works fine:

DIAL(PJSIP/${EXTEN}@callwithus)

Why doesn’t the same DIAL command work with “SIP” changed to “PJSIP”? Is there something I need to change in pjsip.conf?

This is the relevant section of pjsip.conf:

[transport-udp]
type = transport
protocol = udp
bind = 0.0.0.0:23332
external_media_address = xxx.xxx.xxx.xxx
external_signaling_address = xxx.xxx.xxx.xxx
local_net = yyy.yyy.yyy.0/255.255.255.0

[reg_sip.callwithus.com]
type = registration
retry_interval = 20
max_retries = 10
expiration = 120
transport = transport-udp
outbound_auth = auth_reg_sip.callwithus.com
client_uri = sip:myusername@sip.callwithus.com
server_uri = sip:sip.callwithus.com

[auth_reg_sip.callwithus.com]
type = auth
password = mypassword
username = myusername

[callwithus]
type = aor
contact = sip:myusername@sip.callwithus.com

[callwithus]
type = identify
endpoint = callwithus
match = sip.callwithus.com

[callwithus]
type = auth
username = myusername
password = mypassword

[callwithus]
type = endpoint
context = outgoing
dtmf_mode = rfc4733
rtp_symmetric = yes
force_rport = yes
rewrite_contact = yes
timers = no
direct_media = no
auth = callwithus
outbound_auth = callwithus
aors = callwithus

Thanks!

This dialing syntax doesnt work using PJSIP channel driver, on Asterisk 11 worked because you were using chan_sip

https://wiki.asterisk.org/wiki/display/AST/Dialing+PJSIP+Channels

1 Like

Thank you for taking the time to help me!

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