Why pjsip messaging give me errors? I send one message from softphone (Microsip) to hardphone (GrandStream 2170).
The message go in the unknown
[Feb 21 15:29:49] -- Executing [1000@local:1] NoOp("Message/ast_msg_queue", "") in new stack
[Feb 21 15:29:49] -- Executing [1000@local:2] Dial("Message/ast_msg_queue", "PJSIP/telefono1,20,TtkK") in new stack
[Feb 21 15:29:49] -- Called PJSIP/telefono1
[Feb 21 15:29:49] ERROR[8967][C-00000001]: translate.c:1402 ast_translator_best_choice: Cannot determine best translation path since one capability supports no formats
[Feb 21 15:29:49] WARNING[8967][C-00000001]: channel.c:6756 ast_channel_make_compatible_helper: No path to translate from PJSIP/telefono1-00000007 to Message/ast_msg_queue
[Feb 21 15:29:49] == Spawn extension (local, 1000, 2) exited non-zero on 'Message/ast_msg_queue'
asterisk1*CLI>
This is the pjsip.conf
[transport-tls]
type=transport
protocol=tls
bind=0.0.0.0
cert_file=/etc/ssl/certs/asterisk1.blu.priv.crt
priv_key_file= /etc/ssl/private/asterisk1.blu.priv.key
ca_list_file= /etc/ssl/certs/blu.priv.crt
method=tlsv1_2
[transport-udp]
type=transport
protocol=udp
bind=0.0.0.0:5060
[telefono1]
type=aor
max_contacts=10
[telefono1]
type=auth
auth_type=userpass
username=telefono1
password=*****************; replace
[telefono1]
type=endpoint
context=local
allow=!all,alaw,ulaw,g729,g723,ilbc
direct_media=yes
callerid="*******" <************> ;replace with yourid
media_encryption=sdes
inband_progress=yes
tone_zone=it
language=it
auth=telefono1
aors=telefono1
[reg_192.168.0.1]
type=registration
retry_interval=20
max_retries=10
expiration=120
transport=transport-udp
outbound_auth=auth_reg_192.168.0.1
client_uri=sip:asterisk01@192.168.0.1
server_uri=sip:192.168.0.1
[auth_reg_192.168.0.1]
type=auth
password=************************ ; replace with the pass for phone on FritzBox
username=asterisk01
[asterisk01]
type=aor
contact=sip:asterisk01@192.168.0.1
[asterisk01]
type=identify
endpoint=asterisk01
match=192.168.0.1
[asterisk01]
type=auth
username=asterisk01
password=*************************; replace with the pass for phone on FritzBox
[asterisk01]
type=endpoint
context=uscita
allow=!all,alaw,ulaw,g729,g723,ilbc
direct_media=no
rtp_keepalive=1
inband_progress=yes
from_user=asterisk01
from_domain=192.168.0.1
tone_zone=it
language=it
auth=asterisk01
outbound_auth=asterisk01
aors=asterisk01
This is the extensions.conf
[globals]
TELEFONOSIP1=PJSIP/telefono1 ;1000
TELEFONOSIP2=PJSIP/telefono2 ;1001
TELEFONOANALOGICO1=DAHDI/17 ;4005
TELEFONOANALOGICO2=DAHDI/18 ;4006
TELEFONOANALOGICO3=DAHDI/19 ;4007
PHONEEXTNUMBER=*******************
[local]
include => uscita
include => from-dahdi
exten => 1000,1,NoOp()
same => n,Dial(PJSIP/telefono1,20,TtkK)
same => n,GotoIf($["${DIALSTATUS}" = "BUSY"]?busy:unavail)
same => n(unavail),VoiceMail(1000@interni,u)
same => n,Hangup()
same => n(busy),VoiceMail(1000@interni,b)
same => n,Hangup()
exten => 1001,1,NoOp()
same => n,Dial(PJSIP/telefono2,20,TtkK)
same => n,GotoIf($["${DIALSTATUS}" = "BUSY"]?busy:unavail)
same => n(unavail),VoiceMail(1001@interni,u)
same => n,Hangup()
same => n(busy),VoiceMail(1001@interni,b)
same => n,Hangup()
; Segreteria telefonica
exten => 7500,1,VoicemailMain(@interni)
; Test dell'eco
exten => 600,1,NoOp()
same => n(open),Answer()
same => n,Playback(demo-echotest) ; Let them know what
same => n,Echo() ; Do the echo test
same => n,Playback(demo-echodone) ; Let them know it
same => n(close),Playback(go-away2) ; Let them know it
same => n,Hangup()
; chiama il 511 per ascoltare la musica
exten => 511,1,Answer
exten => 511,n(musica),MusicOnHold()
; chiama il 200 per sentire ciao mondo
exten => 200,1,Answer()
same => n,Playback(hello-world)
same => n,Hangup()
; Tim uscita
[uscita]
exten => _XXXXX.,1,NoOp()
same => n,Dial(PJSIP/${EXTEN}@asterisk01,30,tTkK)
same => n,Hangup()
exten = s,1,NoOp()
same => n,Set(CDR(original_dst)=${PHONEEXTNUMBER})
same => n,Dial(PJSIP/telefono1&DAHDI/17,30,tTkK)
same => n,Hangup()
[from-dahdi]
include => uscita
include => local
exten => 4005,1,NoOp()
same => n,Dial(DAHDI/17,20,TtkK)
same => n,GotoIf($["${DIALSTATUS}" = "BUSY"]?busy:unavail)
same => n(unavail),VoiceMail(4005@interni,u)
same => n,Hangup()
same => n(busy),VoiceMail(4005@interni,b)
same => n,Hangup()
exten => s,1,Answer()
exten => s,n,Dial(Local/${EXTEN},20,tTkK)
exten => s,n,Hangup()
Any suggestion? Thanks