HI All,
I wanted to use MySQL as the CDR database, so I configured Asterisk as per this web site: http://www.mikeslab.net/?p=363
Now, when ever I make a call, I get two duplicate entries into the database. These entries are created when the call is hung up.
I saw that there are other people that had this issue (Each call generates 2 CDR records but it was back in '08) and they made changes to [macro-hangupcall]. This doesn’t seem to exist anymore, as I’m sure much has changed since then!
I’m not posting configuration, as mine is exactly the same as the first link above.
The extensions.conf for my example is simply:
`exten => _5000,1,Log(NOTICE, Dialing from ${CALLERID(num)} voicemail)
exten => _5000,2,VoiceMailMain(${CALLERID(num)}@internal)
exten => _5000,3,Hangup()
``
The only thing in the log is:
– Executing [5000@from-internal:3] Hangup(“SIP/1000-00000000”, “”) in new stack
which I don’t think adds any value to this.
Does anyone have any ideas why this would be?