Claim your Biolink Click Here
2 like 0 dislike
1.6k views
Hi,

When I using static my configuration is working perfectly but when I am changing it to realtime with mysql db somehow it is not showing >pjsip show endpoints

Below is my configuration:

sorcery file:
[res_pjsip]
endpoint=realtime,ps_endpoints
;endpoint=config,pjsip.conf,criteria=type=endpoint
auth=realtime,ps_auths
aor=realtime,ps_aors
domain_alias=realtime,ps_domain_aliases
contact=realtime,ps_contacts

[res_pjsip_endpoint_identifier_ip]
identify=realtime,ps_endpoint_id_ips

extconfig file
[settings]
ps_endpoints => odbc,asterisk
ps_auths => odbc,asterisk
ps_aors => odbc,asterisk
ps_domain_aliases => odbc,asterisk
ps_endpoint_id_ips => odbc,asterisk
ps_contacts => odbc,asterisk

For tables I have used alembic and tables created succesfully

When I am trying to register it is not registering and giving me the error

[Sep 13 06:13:06] NOTICE[61437]: res_pjsip/pjsip_distributor.c:508 log_failed_request: Request 'REGISTER' from '<sip:101@192.168.2.116>' failed for '192.168.2.214:61945' (callid: 4d133de913a845d7a86dfda1b7d9b007) - No matching endpoint found

What else I have missed the point ? Please suggest
in Education & Reference by (1.1k points) | 1.6k views

1 Answer

0 like 0 dislike

Have you checked the console output to see if there’s anything of note? Is ODBC also configured on the system? How does your setup compare to the wiki[1]?

[1] https://wiki.asterisk.org/wiki/display/AST/Setting up PJSIP Realtime1

by
0 0
ODBC showing

localhost*CLI> odbc show all

ODBC DSN Settings
Name: asterisk
DSN: asterisk
Last connection attempt: 2017-09-13 06:04:34
Number of active connections: 0 (out of 1)

==================

And yes I have only followed the wiki[1]
[1] https://wiki.asterisk.org/wiki/display/AST/Setting+up+PJSIP+Realtime

=================

Console shows the above error on my first post while registering and when I run a command
localhost*CLI> pjsip show endpoints
No object specified.

Anything else I can check for?
0 0
Your ODBC does not appear to be connecting. This is usually because it is not configured properly. I don’t have much experience in that area, but that’s where you should focus your efforts.
0 0
Thank you so much as I was using centos 6.9 and my ODBC was 5.3 so I downgraded to 5.1 and now it shows

ODBC DSN Settings
Name: asterisk
DSN: asterisk
Last connection attempt: 1969-12-31 16:00:00
Number of active connections: 1 (out of 1)

Thanks once again

Related questions

2 like 0 dislike
2 answers
1 like 0 dislike
1 answer
0 like 0 dislike
0 answers
asked Sep 19, 2017 in Education & Reference by Sam (1.6k points) | 229 views
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked May 30, 2019 in Education & Reference by Marc (4.6k points) | 278 views
0 like 0 dislike
1 answer

Where your donation goes
Technology: We will utilize your donation for development, server maintenance and bandwidth management, etc for our site.

Employee and Projects: We have only 15 employees. They are involved in a wide sort of project works. Your valuable donation will definitely boost their work efficiency.

How can I earn points?
Awarded a Best Answer 10 points
Answer questions 10 points
Asking Question -20 points

1,308 questions
1,469 answers
568 comments
4,809 users