Answer the question
In order to leave comments, you need to log in
How to fix destination in asterisk cdr?
There is a custom extension
[custom-from-last]
exten => X, 1, Answer()
exten => X, 2, MYSQL(Connect connid localhost пользователь пароль база)
exten => X, 3, MYSQL(Query resultid ${connid} самзапрос)
exten => X, 4, MYSQL(Fetch fetchid ${resultid} channel)
exten => X, 5, MYSQL(Clear ${resultid})
exten => X, 6, MYSQL(Disconnect ${connid})
exten => X, 7, Set(CHAN=${SHELL(echo ${channel} | tr -d '\n' | sed -e 's/.*\/\(.*\)\-.*/\1/g')})
exten => X, 8, GotoIf(${fetchid}?9:10)
exten => X, 9, Dial(SIP/${CHAN})
exten => X, 10, Queue(900)
Answer the question
In order to leave comments, you need to log in
CDR is sometimes a mysterious thing. You will probably have to manually adjust the CDR variables.
asterisk.ru/knowledgebase/asterisk+func+cdr
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question