Configuration of a trunk between asterisk and cisco call manager

Hi community, I have two servers asterisk and cisco call manager. When I run the CLI I get an error message like:

[Nov 12 05:03:49] WARNING[4078]: res_pjsip_endpoint_identifier_ip.c:290 common_identify: Identify ‘5180’ points to endpoint ‘5180’ but endpoint could not be found
[Nov 12 05:03:49] NOTICE[4078]: res_pjsip/pjsip_distributor.c:676 log_failed_request: Request ‘INVITE’ from ‘“SANE_TEST_APPEL” sip:5180@10.3.70.244’ failed for ‘10.3.70.244:49190’ (callid: 2238DFD1-42F011EC-BCCACE9E-46D4BD04@10.3.70.244) - No matching endpoint found
[Nov 12 05:03:49] WARNING[4078]: res_pjsip_endpoint_identifier_ip.c:290 common_identify: Identify ‘5180’ points to endpoint ‘5180’ but endpoint could not be found
ubuntu*CLI>

here are my configurations:
pjsip.conf

[general]
hasvoicemail = yes

[template_privilegies]
dtfmfmode = rfc2833

[100]
fullname = directeur

[template_cisco]
dtfmfmode = rfc2833

[5180]
fullname = SANE

[transport-udp]
type = transport
protocol = udp
bind = 0.0.0.0

[100]
type = aor
max_contacts = 1

[100]
type = auth
username = 100
password = secret

[100]
type = endpoint
context = privilegies
disallow = all
allow = ulaw
allow = alaw
allow = gsm
direct_media = no
mailboxes = 8888
auth = 100
outbound_auth = 100
aors = 100

[5180]
type = aor
contact = sip:5180@10.3.70.244:5060
max_contacts = 10
qualify_timeout = 4.0
qualify_frequency = 50

[5180]
type = auth
username = 5180
password = 1234

[5180]
type = endpoint
auto_rejection_permanent = no
from_domain = 5180@10.3.70.244:5060
from_user = 5180
context = cisco
rettry_interval = 30
forbidden_retry_interval = 290
disallow = all
allow = ulaw
allow = alaw
allow = g729
direct_media = no
mailboxes = 8888
auth = 5180
outbound_auth = 5180
aors = 5180
rewrite_contact = yes
force_rport = yes
server_uri = sip:10.3.70.244:5060
client_uri = sip:5180@10.3.70.244:5060
outbound_proxy = sip:10.3.70.244
transport = udp-transport

[5180]
type = identify
match = 10.3.70.244
endpoint = 5180

extensions.conf

[privilegies]
exten => _1XX,1,NoOp(appelant : ${CALLERID(num)} → ${EXTEN})
same => n,GotoIfTime(08:00-23:00,mon-sat,,?ouvert) ;Fait référence aux heures d’ouveture à l’isep
same => n,agi(googletts.agi,“isep n’est ouvert que du lundi au vendredi de 08h a 19h. Merci de rappeler plus tard”,fr,1.25) ;texte en cas de fermeture
same => n,HangUp()
same => n(ouvert), Set(CHANNEL(language)=fr) ;si isep est ouvert alors tout le monde peut s’appeler entre eux
same => n,Set(CHANNEL(musicclass)=mp3)
same => n,DIAL(PJSIP/${EXTEN},30,trm)
same => n,Voicemail(${EXTEN}@privilegies)
same => n,HangUp()

; messagerie pour “privilegies”
exten => 8000,1,Answer()
same => n,Set(CHANNEL(language)=fr)
same => n,VoiceMailMain(${CALLERID(num)}@privilegies)

exten => 5180,1,DIAL(PJSIP/${EXTEN},30,tT)
same => n,HangUp()
include => googletts

[cisco]
exten => _5XXX,1,DIAL(PJSIP/10.3.70.244:5060/${EXTEN},30,trm)
same => n,Hangup()
include => privilegies
include => standard

exten => _1XZ,1,Goto(privilegies,PJSIP/602,30,trm)
same => n,Congestion()
same => n,Hangup()

include => googletts

thank you very much for your help!

I don’t know what this is supposed to be doing, but it might be confusing it. More generally you seem to be defining but not using templates and not marking them as templates. You may need to mark things up as preformatted text, for the forum.

You have multiple things in the endpoint which are invalid, which would result in it not being loaded. You’ve mixed outbound registration options into it. At a quick glance:

auth_rejection_permanent, forbidden_retry_interval, retry_interval, server_uri, client_uri are all invalid for an endpoint. There may be more. When loading PJSIP it will state what is invalid.

now i have this; after deletion auth_rejection_permanent, forbidden_retry_interval, retry_interval, server_uri, client_uri

[Nov 12 06:44:33] ERROR[4078]: res_pjsip.c:4004 ast_sip_set_tpselector_from_transport_name: Unable to retrieve PJSIP transport ‘udp-transport’
[Nov 12 06:44:33] ERROR[4078]: res_pjsip.c:4480 create_out_of_dialog_request: Unable to create outbound OPTIONS request to endpoint 5180
[Nov 12 06:44:33] ERROR[4078]: res_pjsip/pjsip_options.c:877 sip_options_qualify_contact: Unable to create request to qualify contact sip:5180@10.3.70.244:5060 on AOR 5180
– Added contact ‘sip:600@10.3.30.82:61911;transport=UDP;rinstance=e966b306e7e3bd8a’ to AOR ‘600’ with expiration of 60 seconds
== Endpoint 600 is now Reachable
[Nov 12 06:45:23] ERROR[4078]: res_pjsip.c:4004 ast_sip_set_tpselector_from_transport_name: Unable to retrieve PJSIP transport ‘udp-transport’
[Nov 12 06:45:23] ERROR[4078]: res_pjsip.c:4480 create_out_of_dialog_request: Unable to create outbound OPTIONS request to endpoint 5180
[Nov 12 06:45:23] ERROR[4078]: res_pjsip/pjsip_options.c:877 sip_options_qualify_contact: Unable to create request to qualify contact sip:5180@10.3.70.244:5060 on AOR 5180
[Nov 12 06:46:13] ERROR[4078]: res_pjsip.c:4004 ast_sip_set_tpselector_from_transport_name: Unable to retrieve PJSIP transport ‘udp-transport’
[Nov 12 06:46:13] ERROR[4078]: res_pjsip.c:4480 create_out_of_dialog_request: Unable to create outbound OPTIONS request to endpoint 5180
[Nov 12 06:46:13] ERROR[4078]: res_pjsip/pjsip_options.c:877 sip_options_qualify_contact: Unable to create request to qualify contact sip:5180@10.3.70.244:5060 on AOR 5180
– Executing [5180@privilegies:1] Dial(“PJSIP/600-00000004”, “PJSIP/5180,30,tT”) in new stack
[Nov 12 06:46:20] ERROR[4078]: res_pjsip.c:4004 ast_sip_set_tpselector_from_transport_name: Unable to retrieve PJSIP transport ‘udp-transport’
[Nov 12 06:46:20] ERROR[4078]: res_pjsip.c:4115 ast_sip_create_dialog_uac: Could not parse URI ‘sip:5180@5180@10.3.70.244:5060’ for endpoint ‘5180’
[Nov 12 06:46:20] ERROR[4078]: chan_pjsip.c:2657 request: Failed to create outgoing session to endpoint ‘5180’
[Nov 12 06:46:20] WARNING[5604][C-00000005]: app_dial.c:2604 dial_exec_full: Unable to create channel of type ‘PJSIP’ (cause 3 - No route to destination)
– No devices or endpoints to dial (technology/resource)
– Executing [5180@privilegies:2] Hangup(“PJSIP/600-00000004”, “”) in new stack
== Spawn extension (privilegies, 5180, 2) exited non-zero on ‘PJSIP/600-00000004’
[Nov 12 06:47:03] ERROR[4078]: res_pjsip.c:4004 ast_sip_set_tpselector_from_transport_name: Unable to retrieve PJSIP transport ‘udp-transport’
[Nov 12 06:47:03] ERROR[4078]: res_pjsip.c:4480 create_out_of_dialog_request: Unable to create outbound OPTIONS request to endpoint 5180
[Nov 12 06:47:03] ERROR[4078]: res_pjsip/pjsip_options.c:877 sip_options_qualify_contact: Unable to create request to qualify contact sip:5180@10.3.70.244:5060 on AOR 5180
ubuntu*CLI>

That’s obviously true of the latest configuration you have shared. The rest of the errors are inevitable given this.

I have just corrected this but I have this, when I do the command “pjsip show contacts”:

ubuntu*CLI> pjsip show contacts

Contact: <Aor/ContactUri…> <Hash…> <RTT(ms)…>

Contact: 5180/sip:5180@10.3.70.244:5060 e27ee557d5 NonQual nan
Contact: 600/sip:600@10.3.30.82:61911;transport=UDP;rin 9bc9f66052 NonQual nan

Objects found: 2

my two servers see each other but it tells me that there is a problem with the endpoints, and with the command “pjsip show contacts” I can’t see “transport=udp,” for the 5180

That’s because it is the default. It looks like you do not have two way communication with either 5180, or 600. You should use “pjsip set logger on” and check the addresses used in the OPTIONS requests.