A
A
Anton2018-06-03 13:02:10
Asterisk
Anton, 2018-06-03 13:02:10

SIP from Onlime (Rostelecom) - how to connect to Asterisk (PJSIP)?

There is a phone number of the Onlime provider. Works with softphone and sip phones.
There is Asterisk 15. Without Freepbx, it works with PJSIP (I have not yet figured out how to disable it and enable SIP). "Zadarma" in these conditions works without any problems.
There is, as they say, a working instruction for connecting Asterisk (Freepbx) to Onlime:

spoiler
Trunk Name: onlime
Outbound CallerID: 2000227499XXXXXXX (тут логин выданный онлайм)
Outgoing Settings:
Trunk Name: onlime
PEER Details:
secret= ВашПароль
remotesecret=ВашПароль
defaultuser= 2000227499XXXXXXX
host=tel.moscow.rt.ru
username= 2000227499XXXXXXX
type=peer
fromuser= 2000227499XXXXXXX
fromdomain=tel.moscow.rt.ru
nat=no
directmedia=no
qualify=yes
insecure=invite
disallow=all
allow=alaw&ulaw&g729
dtmfmode=rfc2833
context=from-trunk
Register String: 2000227499XXXXXXX: ВашПароль@tel.moscow.rt.ru

I tried to adapt this for my case (pjsip.conf, based on the example from "Zadarma"):
spoiler
[general]
srvlookup=yes
language=ru
register=>2000227499XXXXXX:[email protected]
[transport-udp]
type=transport
protocol=udp
bind=0.0.0.0
[2000227499XXXXXX]
type=registration
transport=transport-udp
outbound_auth=2000227499XXXXXX_auth
server_uri=sip:tel.moscow.rt.ru
client_uri=sip:[email protected]
retry_interval=60
expiration=120
contact_user=2000227499XXXXXX
[2000227499XXXXXX_auth]
type=auth
auth_type=userpass
password=PASSWORD
username=2000227499XXXXXX
[2000227499XXXXXX]
type=aor
contact=sip:tel.moscow.rt.ru:5060
max_contacts = 2
[2000227499XXXXXX]
type=endpoint
transport=transport-udp
context=call-in
disallow=all
allow=alaw
allow=ulaw
auth=2000227499XXXXXX_auth
aors=2000227499XXXXXX
from_user=2000227499XXXXXX
from_domain=tel.moscow.rt.ru
direct_media=no
dtmfmode=rfc2833
nat=force_rport,comedia
canreinvite=no
[2000227499XXXXXX]
type=identify
endpoint=2000227499XXXXXX
match=tel.moscow.rt.ru

As a result, there is no connection. I only get a lot of messages like
spoiler
res_pjsip/pjsip_distributor.c:659 log_failed_request: Request 'INVITE' from '"1101" sip:[email protected] failed for '185.107.80.8:5073' (callid: 71338ccd65964b959ca03534d7818835) - No matching endpoint found

I would be very grateful if you point out my mistakes

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question