Hi folks,

I have a problem with MoH respectively with following commands.
I wrote this little C program as OGI script:
 AGI_TOOLS      agi;
 AGI_CMD_RESULT res;

 AGITool_Init(&agi);
 addCall(pgsql); // Increments a value in a database
 AGITool_exec(&agi, &res, "MusicOnHold", "default");
 subCall(pgsql); // decrements a value in a database

 AGITool_Destroy(&agi);

 return 0;


In dialplan:
exten => 2025600,1,Answer
exten => 2025600,n,Wait(1)
exten => 2025600,n,OGI(myogi)
exten => 2025600,n,NoOp(Und Tschuess)

I can see how addCall works and increments the value. I can hear (pretty good) 
music. Perfect!

But the value in the database is never decremented and I cannot see "Und 
Tschuess" after I hanged up the phone.
Reason is "exited non zero" I think.

But how can I keep on going in OGI script and/or dialplan?

Thanks for any hint.

Best,
Hauke
-- 
Ich hatte mal ein ähnliches Problem bei Outlook 2003. Habe die Fehlermeldung 
in google kopiert und da habe ich eine Lösung für mein Problem gefunden. Ich 
habe einfach die Zahl beim Posteingangs und Ausgangsserver geändert und 
schwupps konnte ich die Mails wieder verschicken.
_______________________________________________
Callweaver-users mailing list
[email protected]
http://lists.callweaver.org/mailman/listinfo/callweaver-users

Reply via email to