misterBlubb
New Member
Hello!
In my WCS5 test implementation the sip login data are visible in the Javascript source code of flashphoner.js.
//SIP config
var sipConfig;
if (options.sipOptions) {
sipConfig = {
sipLogin: "xxxx",
sipAuthenticationName: "xxxx",
sipPassword: "xxxx",
sipDomain: "xxxx",
sipOutboundProxy: "xxxx",
sipPort: "xxxx",
sipRegisterRequired: "true"
}
}
I am looking for a solution to secure this.
My VOIP gateway only allows connections from my server. But that is no help because that SIP login data are the ones from my WCS and finally the WCS connects to the VOIP gateway and that is allowed.
What can I do?
Way how the call is done:
1. a user enters a phone number into a html form on my website
2. via a php request the number is checked if it is allowed to be called (service numbers are not allowed, foreign numbers and so on)
3. if the php returns "okay" the flashphoner.js initializes the call
I could imagine this way as a solution for my security issue:
If the php script allows the requested call it inserts that number and a token into a mySQL table. Then it returnes the token. Then flashphoner.js initializes the connectioon to the WCS but instead of sending the sip login data, it sends the token. On server side the database is requested if that token is exisiting and which phone number is relaited to it. If so, it starts the call.
What do you think about this way? If is works, please tell me in which WCS script(s) I can do the necessary adjustments. Is there any shell script where I can implement the database check and where I could add the sip access data?
Thank you in advance!
Marx
In my WCS5 test implementation the sip login data are visible in the Javascript source code of flashphoner.js.
//SIP config
var sipConfig;
if (options.sipOptions) {
sipConfig = {
sipLogin: "xxxx",
sipAuthenticationName: "xxxx",
sipPassword: "xxxx",
sipDomain: "xxxx",
sipOutboundProxy: "xxxx",
sipPort: "xxxx",
sipRegisterRequired: "true"
}
}
I am looking for a solution to secure this.
My VOIP gateway only allows connections from my server. But that is no help because that SIP login data are the ones from my WCS and finally the WCS connects to the VOIP gateway and that is allowed.
What can I do?
Way how the call is done:
1. a user enters a phone number into a html form on my website
2. via a php request the number is checked if it is allowed to be called (service numbers are not allowed, foreign numbers and so on)
3. if the php returns "okay" the flashphoner.js initializes the call
I could imagine this way as a solution for my security issue:
If the php script allows the requested call it inserts that number and a token into a mySQL table. Then it returnes the token. Then flashphoner.js initializes the connectioon to the WCS but instead of sending the sip login data, it sends the token. On server side the database is requested if that token is exisiting and which phone number is relaited to it. If so, it starts the call.
What do you think about this way? If is works, please tell me in which WCS script(s) I can do the necessary adjustments. Is there any shell script where I can implement the database check and where I could add the sip access data?
Thank you in advance!
Marx