Simultaneous Calls

Hi there,

I have a small dialer application I have written. It originates a call through AMI via a local channel to a context in the dial plan. This context then originates a call to the number in the extension. When the call is answered the call is then connected to an available agent.

This seems to work fine, however some of the agents are saying that two of them are being connected to the same number simultaneously.

Investigating this further I see in the Master.csv file that there appears to be two calls being made to the same number at the same time but different channels… A bit of the output of the file below:

Local/407901666666@features-ccDialler-0004ec44;2 SIP/442211223344-0009cd16 Dial SIP/442211223344/07901666666,24,tTorM(dialler-callconnected) 31/07/2015 10:50 31/07/2015 10:50 31/07/2015 10:50 2 0 ANSWERED

Local/407901666666@features-ccDialler-0004ec44;1 SIP/442211223344-0009cd20 Dial SIP/442211223344/07901666666,24,tTorM(dialler-callconnected) 31/07/2015 10:50 31/07/2015 10:50 31/07/2015 10:50 4 0 ANSWERED

I see that there are two local channels here but why is this not handled in asterisk so only one is actually used for the call?

Thanks for any pointers or help.

Chad

Asterisk 1.8