answering me.
I created self-sign certificate and modify pjsip_transport_custom as below :
[transport-tls]
type=transport
protocol=tls
allow_reload=true
cert_file=/etc/asterisk/keys/asterisk.crt
priv_key_file=/etc/asterisk/keys/asterisk.key
ca_list_file=/etc/pki/tls/certs/ca-bundle.crt
bind=0.0.0.0:5061
[transport-udp]
type=transport
protocol=udp
allow_reload=true
bind=0.0.0.0:5060
[transport-tcp]
type=transport
protocol=tcp
allow_reload=true
bind=0.0.0.0:5060
[transport-ws]
type=transport
protocol=ws
allow_reload=true
bind=0.0.0.0:5060
[transport-wss]
type=transport
protocol=wss
allow_reload=true
bind=0.0.0.0:5060
now microsip softphone shows that it's registered but in asteirsk cli i see this error :
ERROR[2616]: res_pjsip.c:3624 ast_sip_set_tpselector_from_transport_name: Unable to retrieve PJSIP transport 'transport-tls'
and also in operator panel the extension is off.
any idea??
update 1:
it seems pjsip_transport_custom does not override on pjsip_transport_additional. (issabel execute both files)
It gave me an error duplicate transport-udp
finally I put ; before pjsip_transport_additional in the pjsip.conf file.
not I have no errors but the extension immediately goes unreachable as below :
Added contact 'sip:8003@10.139.2.39:2346;transport=TLS;ob' to AOR '8003' with expiration of 300 seconds
-- Contact 8003/sip:8003@10.139.2.39:2346;transport=TLS;ob is now Unreachable. RTT: 0.000 msec
still looking up for the solution!
is it pjsip or asterisk bug??