D
D
Denis2017-12-07 15:14:11
Asterisk
Denis, 2017-12-07 15:14:11

How to transfer the CID number to an external system?

Good afternoon.
There is a freshly installed FreePBX. Everything is set up and working.
The need to transfer the caller's number to an external system, in particular R-Keeper
From their documentation, form the newcall=phone package and send it to a specific port on the IP
where R-Keeper is installed.
How can this be implemented?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Denis, 2017-12-13
@sk011

in custom ext you need to call System and pass the number
exten=> 200,1,System(/path/to/myphpscript.php ${CALLERID})
it remains to write the script itself

G
Gansterito, 2017-12-14
@Gansterito

It is not entirely clear at what point (with reference to which event) it is necessary to transfer the packet to a third-party system.
If only the fact of the call is important (it doesn't matter whether it is answered or not), then it is enough to do as in the example above - system to a non-blocking script. Maybe put Ringing before System so that the callback has already gone to the calling subscriber.
If the fact of the answer is important (and other parameters - the duration of the call, etc.), then the System must be hung up on the Hangup event, which will be generated after the end of the conversation.
If the moment of the answer is important, then you need to conjure with the G flag of the Dial command.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question