I just wrote a quick batchfile that would upload a certain directory input into the phone config without the user having to do it manually by hand.
@echo off
set /p title= Contact name?
set /p number= Contact phone number?
start "" http://admin:password@172.31.2.214/!mod%%20cmd%%20FLASHDIR0%%20add-item%%20104%%20(cn=%title%)(e164=%number%)(h323=%title%)
The batch file gets the variables and then I add them into the start command. The script as such works and it logs into the phone interface and then uploads the directory input.
If I input John as title and 123456 as the number I get a new browser window with this link http://172.31.2.214/!mod%20cmd%20FLASHDIR0%20add-item%20104%20(cn=John)(e164=123456)(h323=John) .
The batch file works and the user can input directory entry's using this batch. But the problem is that most titles consist of more than one word. The problem is that if I input John Smith under the first variable the link looks like this: admin:password@172.31.2.214/!mod%20cmd%20FLASHDIR0%20add-item%20104%20(cn=John
The second part (after the space in the title variable) gets dropped. What could be done to force the batch file to send the URL with a %20 instead of a space character?