Answer the question
In order to leave comments, you need to log in
Asterisk. How to get the number of the caller + the number of the operator who picked up the phone?
In general, there is the simplest extension of the following type
exten => s,1,Answer()
exten => s,n,Wait(5)
exten => s,n,Dial(SIP/100&SIP/101&SIP/102,25,mt(ss_moh))
Answer the question
In order to leave comments, you need to log in
Christian, use the Queue() application. It has great options for you:
s - catches the caller's on-hook (continues the dialplan). You can, for example, use a standard MySQL() application to put the necessary channel variables into the base.
AGI or translation to Macro with the desired AGI - then in the script you catch the channel variables and put them in the base or use them at your discretion.
And how to catch Hangup () after the call ends?
There is a special extension h for this.
And you can ask why you solve such a problem not by means of queues?
And where do you want to catch it all? In the console or in a log output?
If it is necessary to use exactly Dial(), then the numbers can be caught in the macro when connecting (the M (x) parameter of the Dial command) and the termination can be caught in the h extension using the 'e' parameter of the Dial
command Description of the command - www.voip-info.org/ wiki/view/Asterisk+cmd+Dial
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question