Hello everyone,
I’m facing an issue and I’m not sure where the problem lies.
I have a Kamailio server running on IP 192.168.1.75, acting as a media proxy. It redirects traffic to a machine at IP 192.168.1.190, which hosts a Kubernetes environment. Inside this Kubernetes cluster, Asterisk is running.
My pjsip.conf:
[telnyx]
type=aor
contact=sip:sip.telnyx.com:5060
max_contacts=10
; Address of Record for Telnyx endpoint
[telnyx]
type=endpoint
transport=transport-udp-nat
context=telnyx
disallow=all
allow=g722
allow=ulaw
allow=alaw
direct_media=no
aors=telnyx
outbound_auth=telnyx
; Configures the endpoint for incoming/outgoing calls and media handling
[telnyx]
type=identify
endpoint=telnyx
match=sip.telnyx.com
match=sip.telnyx.eu
; Maps incoming requests from Telnyx to the configured endpoint
And my SIP Invite looks like this:
2025/05/13 15:19:12.020596 192.76.120.10:5060 -> 192.168.1.75:5060
INVITE sip:+35122xx00xxx@192.168.1.75:5060 SIP/2.0
Record-Route: <sip:192.76.120.10;r2=on;lr;ftag=a2ajDUc15ZmNQ>
Record-Route: <sip:10.255.0.1;r2=on;lr;ftag=a2ajDUc15ZmNQ>
Via: SIP/2.0/UDP 192.76.120.10;branch=z9hG4bK8ee5.375d79ec169166dd9b6cac67f62f1075.0
v:SIP/2.0/UDP 10.239.90.224:6000;received=10.239.90.224;rport=6000;branch=z9hG4bKDUSy2ct78ctQH
Max-Forwards:48
f:"+351928024051"<sip:+3519xxxxxxxx@sip.telnyx.com>;tag=a2ajDUc15ZmNQ
t:<sip:+35122xx00xxx@192.168.1.75:5060>
i:50474890-fc7f-4e69-9e34-bca46e330d92
CSeq:99020983 INVITE
m:<sip:mod_sofia@10.239.90.224:6000>
Allow:INVITE,ACK,BYE,CANCEL,OPTIONS,MESSAGE,INFO,UPDATE,REFER,NOTIFY
k:timer,path
u:talk,hold,conference,refer
Privacy:none
c:application/sdp
Content-Disposition:session
l:205
P-Asserted-Identity:"+3519xxxxxxxx"<sip:+3519xxxxxxxx@sip.telnyx.eu;verstat=No-TN-Validation>
v=0
o=Telnyx 1747132273 1747132274 IN IP4 50.114.149.20
s=Telnyx
c=IN IP4 50.114.149.20
t=0 0
m=audio 17278 RTP/AVP 9
a=rtpmap:9 G722/8000
a=sendrecv
a=rtcp:17279 IN IP4 50.114.149.20
a=ptime:20
And I’m getting this error:
res_pjsip/pjsip_distributor.c:673 log_failed_request: Request ‘INVITE’ from ‘“+3519xxxxxxxx” sip:+3519xxxxxxxx@sip.telnyx.com’ failed for ‘10.244.9.0:37438’ (callid: 739d18ad-5327-40e4-bf4f-e9a55ce160e8) - No matching endpoint found