D
D
Dmitry Shitskov2016-04-20 19:24:14
Asterisk
Dmitry Shitskov, 2016-04-20 19:24:14

Problem with migrating to PJSIP?

Trying to migrate Asterisk 13.8.1 to PJSIP. Many problems arose immediately.
The config file loads, but pjsip show aors and all the others return No objects found. In this case, the devices are registered on Asterisk. When you try to call another device, it falls into the error log

ERROR[101065] res_pjsip.c: Could not create dialog to endpoint '6767' as URI '6767' is not valid id
ERROR[101065] chan_pjsip.c: Failed to create outgoing session to endpoint '6767'

pjsip.conf looks like this:
;===TRANSPORT

[maintrans]
type=transport
protocol=udp
bind=0.0.0.0
external_media_address=1.1.1.1
external_signaling_address=1.1.1.1
local_net=192.128.0.0/24


;===PHONE TEMPLATES

[aor-single](!)
type=aor
max_contacts=1
remove_existing=yes

[aor-unlim](!)
type=aor

[auth-userpass](!)
type=auth
auth_type=userpass

;==OFFICE

[endpoint-phone](!)
type=endpoint
disallow=all
allow=alaw,ulaw
context=office-phones
direct_media=no
tone_zone=ru
language=ru
device_state_busy_at=2

[6767](aor-unlim)
[6767](endpoint-phone)
auth=6767
aors=6767
[6767](auth-userpass)
username=6767
password=6767

[6779](aor-single)
[6779](endpoint-phone)
auth=6779
aors=6779
call_group=4
pickup_group=4
[6779](auth-userpass)
username=6779
password=6779

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2016-04-21
@sim3x

https://wiki.asterisk.org/wiki/display/AST/Dialing...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question