- Joined
- Jun 26, 2020
- Messages
- 7
- Reaction score
- 0
from our 3cx we are using, as an integration with CRM, the possibility of inserting into our db as per the 3cx documentation:
INSERT INTO 3cx_log VALUES (NULL,'[CallType]','[Number]','[CallDirection]','[Name]','[EntityId]','[EntityType]','[Agent]','[AgentFirstName]','[AgentLastName]','[AgentEmail]','[Duration]','[DurationTimeSpan]', STR_TO_DATE('[DateTime]', '%d/%m/%Y %H:%i:%s'),STR_TO_DATE('[CallStartTimeLocal]', '%d/%m/%Y %H:%i:%s'),STR_TO_DATE('[CallStartTimeUTC]', '%d/%m/%Y %H:%i:%s'),'[CallEstablishedTimeLocal]','[CallEstablishedTimeUTC]',STR_TO_DATE('[CallEndTimeLocal]', '%d/%m/%Y %H:%i:%s'),STR_TO_DATE('[CallEndTimeUTC]', '%d/%m/%Y %H:%i:%s'),NOW())
In the various fields there is no calling number field but only extension and called number since it is present in the cdr file: is it possible to also have the calling number in the insert into or another way to externalize this data?
Thank you
INSERT INTO 3cx_log VALUES (NULL,'[CallType]','[Number]','[CallDirection]','[Name]','[EntityId]','[EntityType]','[Agent]','[AgentFirstName]','[AgentLastName]','[AgentEmail]','[Duration]','[DurationTimeSpan]', STR_TO_DATE('[DateTime]', '%d/%m/%Y %H:%i:%s'),STR_TO_DATE('[CallStartTimeLocal]', '%d/%m/%Y %H:%i:%s'),STR_TO_DATE('[CallStartTimeUTC]', '%d/%m/%Y %H:%i:%s'),'[CallEstablishedTimeLocal]','[CallEstablishedTimeUTC]',STR_TO_DATE('[CallEndTimeLocal]', '%d/%m/%Y %H:%i:%s'),STR_TO_DATE('[CallEndTimeUTC]', '%d/%m/%Y %H:%i:%s'),NOW())
In the various fields there is no calling number field but only extension and called number since it is present in the cdr file: is it possible to also have the calling number in the insert into or another way to externalize this data?
Thank you