About callfiles - multiple calls

Hi @ll,

I’ve scripted a bit so that my users here can call our customer over our php based system.
this is working quite fine.

I’m using the call file method, which means, i created a special context, where anyone is entered with there phones.
This looks like:


exten => 100,1,Answer
exten => 100,2,Dial(IAX2/Agentname,30)
exten => 100,3,Hangup

this entry looks same for every user we generate.

the call file looks like:
Channel: Zap/g1/
MaxRetries: 1
RetryTime: 60
WaitTime: 35
Context: callcenter
Priority: 1

this all is working fine, my problem atm is, that several calls, are going to “reconnect” to the user, after he finishes his call, or, if he calls a mobile, the cust gets 2 calls seperately.

I’m creating the call file in a tmp folder, and switching it via “mv” to the outgoing dir in asterisk.

anyone got a clue for me? I’m working on it since day’s and don’t even got a point.