Hi, im having problems trying to accept invites from a non registered extension.
Im trying to deploy a kamailio in front of two asterisk using dispatcher module in order to have a HA support for our applications
All of our extensions and SIP phone Numbers register against kamailio and then kamailio resend all Register to both asterisk and Invites only to main asterisk.
I had no problem with calls between registered extensions, but now im trying to receive an incoming call from a SIP phone number that is registered on kamailio and resend invite to asterisk.
Asterisk always responds with
[Jun 12 13:19:32] NOTICE[17812]: res_pjsip/pjsip_distributor.c:676 log_failed_request: Request ‘INVITE’ from ‘sip:Phone_number@Provider;user=phone’ failed for ‘IP’ (callid: 10.25.37.28_2833585_4132225722583551516_b2b-1) - No matching endpoint found
The configuration for this extension is the following
[Phone_Number]
type=endpoint
context=from_extension
;subscribe_context=subscribe
disallow=all
allow=ulaw,g722
dtmf_mode=rfc4733
direct_media=no
force_rport=yes
rtp_symmetric=yes
transport=transporte
aors=Phone_number
outbound_proxy=sip:IP_Kamailio
I’ve seen that i can fix this if i configure that endpoint like a trunk, but if it’s configured like that my extensions can’t be registered on asterisk, and it sends the following message
[Jun 12 12:47:38] WARNING[17428]: res_pjsip_registrar.c:1080 find_registrar_aor: AOR ‘’ not found for endpoint ‘Phone_number’
Does someone face this problem before?
Any help will be very much appreciated
Good evening thank you for your response.
I’m sorry english is not my main language and i’m not use to the technical language.
By extensions i reffer to the endpoint created in asterisk to allow a SIP phone/WebRTC client to register into asterisk
By trunk i reffer to the endpoint created to allow invites from a geographic number (like the ones provided by LCR, or europesip). This type of endpoint sends options in order to make sure that the communicaction is working propperly
I’m not sure if this is what you were asking or if i’m completly wrong.
If this is not what you needed, can you explain to me what do you need me to send or explain?
Thank you for your time
I’m sorry about the language barrier. I’ll try to do my best to explain myself
When this works, if i use the command pjsip show endpoints i can see this information
Endpoint: Phone_Number Not in use 0 of inf
Aor: Phone_Number 0
Contact: Phone_Number/sip:IP_Kamaialio:5060 4134cd55a7 NonQual nan
Transport: transporte udp 0 0 0.0.0.0:5080
Identify: Phone_Number/Phone_Number
Match: IP_Kamailio/32
But i cannot register the endpoint related to the softphone, whenever i try it register propperly on kamailio but i receive this message on the asterisk console
[Jun 12 15:33:20] WARNING[17812]: res_pjsip_registrar.c:1080 find_registrar_aor: AOR ‘’ not found for endpoint ‘Phone_Number’
My dialplan is set to dial to a softphone when asterisk recives a call from the geographic number.
but i recieve this message from asterisk
[Jun 12 15:20:57] ERROR[18203]: res_pjsip.c:3589 ast_sip_create_dialog_uac: Endpoint ‘1000’: Could not create dialog to invalid URI ‘1000’. Is endpoint registered and reachable?
[Jun 12 15:20:57] ERROR[18203]: chan_pjsip.c:2710 request: Failed to create outgoing session to endpoint ‘1000’
I guess it’s because my extension can’t be register because of the error
I don’t know what changes should i make to in order to make it work.
Let me know if i had to explain something again or if there is something that isn’t explained propperly
But it is still not finding ‘’ rather than not finding a named section. That could be a bug with the message. Obviously both having a null user and and having no AORs at all will both cause a failure.
I’m sorry for the late response. I’ve been troubleshooting and i solved it by changing the to and from fields in the invites send by my kamailio. Asterisk didn’t accept the phone number in “from” field, so we changed it to proxy to force asterisk to accept the message and we send the phone number in the display part of “from” field
Thank you all for your time and response. Especially to david551, you were right, the problem was related to the “to” header