Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#16 add parameter to command on incoming call

open
nobody
None
5
2007-10-19
2007-10-19
Anonymous
No

when call to command incoming call, the number id will useful to the script.

I modified the kiaxmainwindow.cpp

and on the

void KiaxMainWindow::handleIaxWrapperEventIncomingRinging(int callNo) {

I modified this section

...
if (wrapper->getSettings()->getExecCommandOnRing()) {
const char* command = wrapper->getSettings()->getCommandOnRing();

QString dest = record.getCallerIdNumber();
char modificado[256];

strcpy(modificado,command);
strcat(modificado," ");
strcat(modificado,dest);
wrapper->debug("Starting %s\n", command);
int result = system(modificado);
wrapper->debug("Got result %d", result);
}
...

I think you know a better code, but It's working for my tcl script, which connect to mysql and say me the complete info from the number.

Sorry for my poor english :D

Discussion

  •  
    Attachments