PJSIP2.4.5. unsuitable transport selected


#1

Hello.
I have problem PJSIP TCP transport trunk to Avaya.
Asterisk 14.7.8 + PJSIP 2.4.5

[2018-11-28 18:13:36.512] WARNING[1480]: pjproject:0 <?>: tsx0x7f42c0007 …Failed to send Request msg INVITE/cseq=11285 (tdta0x7f42c000b6b0)! err=171064 (Unsuitable transport selected (PJSIP_ETPNOTSUITABLE))

UDP transport trunk work ok.

i tried combinations:
Asterisk 14.7.7 + PJSIP 2.3 - no result
Asterisk 14.7.8 + PJSIP 2.3 - no result
Asterisk 14.7.8 + PJSIP 2.7.5 - error segmetation
any ideas?!


#2

pjsip configuration please


#3

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

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

[trusted-peer]
type=aor
contact=sip:172.27.15.10

[trusted-peer]
type=endpoint
transport=transport-tcp
context=default
disallow=all
allow=alaw
allow=ulaw
aors=trusted-peer
from_user=invalid
from_domain=172.27.15.10
direct_media=no

[trusted-peer]
type=identify
endpoint=trusted-peer
match=172.27.15.10


#4

Your SIP URI does not specify TCP, so TCP would be an unsuitable transport. The contact= would need to be written as:

contact=sip:172.27.15.10\;transport=tcp

#5

It works. 2 weeks of manipulation of different src codes… Thank you!!! where did you find this URI record?


#6

There’s a wiki page talking about transport selection[1] which generally follows the RFC[2]. As I wrote a lot of chan_pjsip I’m familiar with that kind of thing.

[1] https://wiki.asterisk.org/wiki/display/AST/PJSIP+Transport+Selection
[2] https://www.ietf.org/rfc/rfc3263.txt


#7

Thanks.
“Live and learn” ))