Unable to retrieve PJSIP transport 'transport-upd'

I’m getting this error I just installed in fresh system and configured pjsip.conf and exensions.conf

here are my configure
pjsip.conf
[transport-udp]
type=transport
protocol=udp ;upd,tcp,tls,ws,wss,flow
bind=0.0.0.0

[6001]
type=endpoint
transport=transport-upd
context=from-internal
disallow=all
allow=ulaw
allow=gsm
auth=6001
aors=6001

[6001]
type=auth
auth_type=userpass
password=6001
username=6001
[6001]
type=aor
max_contacts=1
contact=sip:6001@192.168.1.126:5060

[6002]
type=endpoint
transport=transport-udp
context=from-internal
disallow=all
allow=ulaw
allow=gsm
auth=6002
aors=6002

[6002]
type=auth
auth_type=userpass
password=6002
username=6002
[6002]
type=aor
max_contacts=1
contact=sip:6001@192.168.1.126:5060

extensions.conf
[from-internal]
exten => 6001,1,Dial(PJSIP/6001)
exten => 6002,n,Dial(PJSIP/6002)

Also note I have configured only these to file and nothing I did in any other file. So if anything else required then please guide me.

While dialling then getting this error

ERROR[3090]: res_pjsip.c:903 ast_sip_set_tpselector_from_transport_name: Unable to retrieve PJSIP transport 'transport-upd'

Thank you

This is the name of the transport. You have specified it as “transport-upd” on the 6001 endpoint and not “transport-udp”.

Oh :grinning: thank you.
But now getting this error

res_pjsip_session.c:4022 new_invite:  6001: Call (UDP:192.168.1.126:49976) to extension '6002' rejected because extension not found in context 'from-internal'.

It means what it says. There is no extension 6002 at priority 1 in from-internal. You have it at ‘n’ which won’t work.

I believe someone else said the same thing in another thread previously…

So they did:

You have written upd instead of udp.

Thank you guys finally after 4 days I’m success to make call but now not getting proper audio from one end.

Executing [6001@from-internal:1] Dial("PJSIP/6002-0000000c", "PJSIP/6001") in new stack
    -- Called PJSIP/6001
    -- PJSIP/6001-0000000d is ringing
    -- PJSIP/6001-0000000d answered PJSIP/6002-0000000c
    -- Channel PJSIP/6001-0000000d joined 'simple_bridge' basic-bridge <61e82f79-e080-43b6-82c7-36fdf34d178c>
    -- Channel PJSIP/6002-0000000c joined 'simple_bridge' basic-bridge <61e82f79-e080-43b6-82c7-36fdf34d178c>
    -- Channel PJSIP/6001-0000000d left 'native_rtp' basic-bridge <61e82f79-e080-43b6-82c7-36fdf34d178c>
    -- Channel PJSIP/6002-0000000c left 'native_rtp' basic-bridge <61e82f79-e080-43b6-82c7-36fdf34d178c>
  == Spawn extension (from-internal, 6001, 1) exited non-zero on 'PJSIP/6002-0000000c'

Thank you so much :partying_face: :partying_face: :partying_face: :partying_face: :partying_face:

In that case show us what your “from-internal” context contains.

Where I will get "from-internal " context as you can see all the file i have configured mentioned above if anything I’m missing then let me know.

Thank you