You can find phone implementations in
no-payphone/integration/phoneReady Integrations
Payphone Events
This events will be triggered by payphone.
no-payphone:call:start
no-payphone:call:start
Triggered when payphone starts the call.
Parameters
- ctx:
{source: number; number: string; targetNumber: string; callId: number}
no-payphone:call:answer
no-payphone:call:answer
Triggered when payphone answers the call.
Parameters
- ctx:
{source: number; number: string; targetNumber: string; callId: number}
no-payphone:call:end
no-payphone:call:end
Triggered when payphone ends the call.
Parameters
- ctx:
{number: string; targetNumber: string}
Phone Events
This events expected to triggered by phone.
no-payphone:phone:start
no-payphone:phone:start
Triggered when phone starts the call.
Parameters
- ctx:
{source: number; number: string; targetNumber: string; callId?: number}ctx.source is the caller’s server id. ctx.number is the phone’s number. ctx.targetNumber is the number phone is calling. ctx.callId: Generated call id (If nil payphone will generate itself.).
no-payphone:phone:answer
no-payphone:phone:answer
Triggered when phone answers the call.
Parameters
- ctx:
{source: number; number: number}ctx.source is the caller’s server id. ctx.number is the phone’s number.
no-payphone:phone:end
no-payphone:phone:end
Example
This is an example for qb-phone. You can find this integration in
no-payphone/config/integration/phone/qb-phone.lua
