1
0
mirror of https://github.com/danog/php-libtgvoip.git synced 2024-11-30 04:19:26 +01:00

Merge pull request #2 from giuseppeM99/master

Added close method
This commit is contained in:
Daniil Gentili 2017-09-11 22:37:04 +02:00 committed by GitHub
commit 3c4e54b661
2 changed files with 7 additions and 0 deletions

View File

@ -145,6 +145,11 @@ Php::Value VoIP::accept()
return this;
}
Php::Value VoIP::close()
{
deinitVoIPController();
return this;
}
void VoIP::__wakeup()
{
@ -550,6 +555,7 @@ extern "C" {
voip.method<&VoIP::discard>("__destruct", Php::Public | Php::Final);
voip.method<&VoIP::discard>("discard", Php::Public | Php::Final, {Php::ByVal("reason", Php::Type::Array, false), Php::ByVal("rating", Php::Type::Array, false), Php::ByVal("debug", Php::Type::Bool, false)});
voip.method<&VoIP::accept>("accept", Php::Public | Php::Final);
voip.method<&VoIP::close>("close", Php::Public | Php::Final);
voip.method<&VoIP::__construct>("__construct", Php::Public | Php::Final, {
Php::ByVal("creator", Php::Type::Bool), Php::ByVal("otherID", Php::Type::Numeric), Php::ByVal("InputPhoneCall", Php::Type::Array), Php::ByRef("madeline", Php::Type::Object), Php::ByVal("callState", Php::Type::Numeric), Php::ByVal("protocol", Php::Type::Array)
});

1
main.h
View File

@ -93,6 +93,7 @@ public:
Php::Value getOtherID();
Php::Value getCallID();
Php::Value getCallState();
Php::Value close();
AudioInputModule *in;
AudioOutputModule *out;