Closed osmaterdca closed 7 months ago
Oh what an id**t I am. Thank you !
Now all is configured, but i get this error in the log after script execution :
[Info] Starting addon... PJSUA_CUSTOM_OPTIONS = '-–no-tcp' [Info] Listening for messages via stdin service call... [Info] Received messages {"call_sip_uri":"sip:308@voip.XXXXX","message_tts":"Prova segnalazione allarme"} Converting audio file 'http://192.168.XXXX:8123/api/tts_proxy/d622ce2af2a501b2f2d236bdb35178058db3ed5d_en_-_google_translate.mp3'... Audio succesfully converted... Starting SIP Client and calling 'sip:308@vvoip.XXXXX'... This call will be terminated after '50' seconds. 18:25:33.812 os_core_unix.c !pjlib 2.11.1 for POSIX initialized 18:25:33.812 sip_endpoint.c .Creating endpoint instance... 18:25:33.813 pjlib .select() I/O Queue created (0x7ff9e53be100) 18:25:33.813 sip_endpoint.c .Module "mod-msg-print" registered 18:25:33.813 sip_transport.c .Transport manager created. 18:25:33.813 pjsua_core.c .PJSUA state changed: NULL --> CREATED 18:25:33.813 pjsua_app_config.c Argument "310" is not valid. Use --help to see help 18:25:33.813 pjsua_core.c Shutting down, flags=0... 18:25:33.813 pjsua_core.c PJSUA state changed: CREATED --> CLOSING 18:25:33.813 pjsua_call.c .Hangup all calls.. 18:25:33.813 pjsua_media.c .Call 0: deinitializing media.. 18:25:33.813 pjsua_media.c .Call 1: deinitializing media.. 18:25:33.813 pjsua_media.c .Call 2: deinitializing media.. 18:25:33.813 pjsua_media.c .Call 3: deinitializing media.. 18:25:33.813 pjsua_pres.c .Shutting down presence.. 18:25:34.822 pjsua_core.c .Destroying... 18:25:34.822 pjsua_media.c .Shutting down media.. 18:25:34.822 sip_endpoint.c .Destroying endpoint instance.. 18:25:34.822 sip_endpoint.c .Module "mod-msg-print" unregistered 18:25:34.822 sip_transport.c .Destroying transport manager 18:25:34.822 timer.c .Dumping timer heap: 18:25:34.822 timer.c . Cur size: 0 entries, max: 3070 18:25:34.822 sip_endpoint.c .Endpoint 0x7ff9e54030e8 destroyed 18:25:34.822 pjsua_core.c .PJSUA state changed: CLOSING --> NULL 18:25:34.822 pjsua_core.c .PJSUA destroyed...
The line extension use for HA is 310 (line number and user name is the same) The line extension i'd like to receive the message is 308
Any idea ?
Thank you.
David
18:25:33.813 pjsua_app_config.c Argument "310" is not valid. Use --help to see help
please put here a screenshot of your addon config. remove password and any other sensitive info
Please find the printscreen bellow :
Here is the logs :
try to remove double quotes from username & password.
Have you already checked this https://github.com/sdesalve/hassio-addons/issues/87 ?
I tried and I got these error when saving :
Sorry, double quotes are mandatory...
Please try this config and post addon logs:
caller_id_uri: sip:111@voipxxxxxxxxxxx
realm: "*"
username: "222"
password: "333"
I want to see what number is not recognized. please fix caller_id_uri
here are the log and the config you ask me to set :
Could you change password to be alphanumeric string in your PBX settings? Eg: 123abc
Here the log :
As you can see bellow, after editing the line : password: "123abc" , when the configuration is saved, the " " disapear.
it's very strange.
please make a screenshot of your YAML addon config
try also to cut all config and "paste as plain text" (CTRL+SHIFT+V or mouse dx button and choose)
Here is the YAML config
I cut then pasted as plain text, no change, same error in the log. ( i also removed the last carriage return).
I tried to cut, then past in notepad, add the " " for the password, then copy from notepad and paste as plain text in the YAML config. No change the behavior is the same, the " " disapear when I click on save.
One more detail : I try without any password (I remove the "password: 123abc" line in the YAML. When I save, the line reapear by it's own as this :
And after a try, the log show the same error :
I found something I removed the option : --notcp I removed the password in the pabx I let password : 123 in the config
It works as this. very strange
pjsua_custom_options: '--no-tcp'
you must use 2 minus characters (--)
I used the copy paste function, but without "as plain text" during the first setup (before all our tests). So, with 2 minus characters, all is working fine :) Thank you.
Last question, I used google translate :
But the text message is read in "english" instead of french. Do you have an idea ?
Perfect ! thank you.
Hello,
sorry to bother you with this issue but i'm trying to place a call from HA to my 3CX server but I encountered an issue. I added the repository to install the add-on. I installed Text-To-Speech I started the DSS add-on I include the following lines in configuration.yaml to match your 3cx example : sip_parameters: caller_id_uri: 'sip:310@mylocal3cx' realm: '*' username: '310' password: 'thepassword' pjsua_custom_options: '-–no-tcp'
But when I try to check the config it raises the error : Integration error: pjsua_custom_options - Integration 'pjsua_custom_options' not found. Integration error: sip_parameters - Integration 'sip_parameters' not found.
For sure I know I missed something, but could you please help me ?
Thanks a lot. David