Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7951129
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T02:28:07+00:00 2026-06-04T02:28:07+00:00

I’ve downloaded a softphone called Express Talk, the one thing this program lacks is

  • 0

I’ve downloaded a softphone called Express Talk, the one thing this program lacks is the ability to easily click to dial using the sip protocol. So I figured I would try my best to create a simple c++ program that will accept the number clicked on and then pass that information to Express Talk to auto dial the number, i’ve tried a number of things which typically lead me to a dead end. I’m not too familiar with c++ so hopefully someone here can help me figure out what is wrong, the file is located in C:/Program Files/NCHSoftware/Talk/talk.exe. In order to use the command line to dial a number I can type /talk.exe -dial “5555555555” which will open up the program and dial the number.

This program works and is called dial.exe (located in the same folder as talk.exe):

    #include <stdlib.h>
    #include <windows.h>

    int main ()
    {
        system("start talk.exe -dial 5555555555");
    }

Now the problem: If I direct firefox (12.0) to handle sip links to dial.exe and then try to click a sip link I get the error: “Windows cannot find ‘talk.exe’. Make sure you typed the name correctly, and then try again”

At this point i’m not even concerned about passing the phone number variable to talk.exe as I just want to make sure that it will open when I click a sip link. I figured that perhaps the reason that it is having difficulties finding talk.exe is because for some reason mozilla may change the directory of the program? I’m not quite sure, so now I’m trying to put the full path of talk.exe in the program so i tried

    #include <stdlib.h>
    #include <windows.h>

    int main ()
    {
        system("start \"C:\\Program Files\\NCHSoftware\\Talk\\talk.exe -dial 5555555555\"");
    }

All this does is open a command prompt window without actually executing the program. Of course this could all be solved if I can somehow just pass the arguments in the applications window on firefox, but that isn’t allowed. Can anyone assist me in debugging? I just don’t know what to do anymore.

Here is the current code:

    #include <stdlib.h>
    #include <windows.h>
    #include <direct.h>
    #include <string.h>
    #include <string>


    //Written to implement click-to-dial functionality for soft phones (assuming softphones allow arguments to be passed to dial the phone.)
    int main ()
    {
        _chdir("C:\\Program Files\\NCHSoftware\\Talk\\");
    if (argc > 1 && _strnicmp(argv[1], "sip:", 4))
        { // match "sip:" prefix, case insensitive
     std::string cmd = "start talk.exe -dial " + std::string(argv[1]+4);
     system(cmd.c_str());
    }
    }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T02:28:09+00:00Added an answer on June 4, 2026 at 2:28 am

    The Windows Command Processor start command has a quirk that makes it difficult to use command lines containing spaces.

    If the first argument is enclosed in spaces, it’s treated as a caption, not a command. The solution is to provide a quoted dummy caption:

    system("start \"caption\" \"C:\\Program Files\\NCHSoftware\\Talk\\talk.exe\" -dial 5555555555");
    

    Or, simply change the working directory beforehand:

    #include <direct.h>
    #include <string.h>
    #include <string>
    
    _chdir("C:\\Program Files\\NCHSoftware\\Talk\\");
    if (argc > 1 && _strnicmp(argv[1], "sip:", 4)) { // match "sip:" prefix, case insensitive
        std::string cmd = "start talk.exe -dial " + std::string(argv[1]+4);
        system(cmd.c_str());
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
this is what i have right now Drawing an RSS feed into the php,
I am reading a book about Javascript and jQuery and using one of the
I have this code to decode numeric html entities to the UTF8 equivalent character.
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
Does anyone know how can I replace this 2 symbol below from the string
I'm making a simple page using Google Maps API 3. My first. One marker

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.