Page 1 of 1

Webphone Template Dynamic

PostPosted: Tue May 04, 2021 6:56 am
by dhijrwn
So I have 2 asterisk server that im testing with webphone. When I tried to set the ip address of my the phone from my.domain.com to my1.domain.com. it shows this error. meaning it cannot find the respective certification from the server. So what I did i to change the value of dtlscertfile and dtlsprivatekey to /etc/../../../my1.domain.com/cert.pem and .../privkey.pem.

[May 4 07:43:02] ERROR[30684]: rtp_engine.c:2135 ast_rtp_dtls_cfg_parse: dtlscertfile file /etc/certbot/live/my.domain.com/cert.pem does not exist or is not readable
[May 4 07:43:02] ERROR[30684]: rtp_engine.c:2142 ast_rtp_dtls_cfg_parse: dtlsprivatekey file /etc/certbot/live/my.domain.com/privkey.pem does not exist or is not readable


webRTC template
/***
...
***/
dtlscertfile=/etc/certbot/live/my.domain.com/cert.pem
dtlsprivatekey=/etc/certbot/live/my.domain.com/privkey.pem

Now how can I make this dynamic?
Should I create 2 webRTC template? that will point to asteriskA server then another to asteriskB Server.

Then how can I phone alias this because it must match the dtlscertfile and dtlsprivatekey from the template when they are connected to different server for phone balancing.

Re: Webphone Template Dynamic

PostPosted: Tue May 04, 2021 1:45 pm
by carpenox
yes you need diff templates for each

Re: Webphone Template Dynamic

PostPosted: Wed May 05, 2021 7:35 am
by dhijrwn
carpenox wrote:yes you need diff templates for each


Oh I see assigning different webrtc template for each server, Thank you very much.