Add missing $ to spa_call_waiting
Stops php warning message appearing when there are no assigned agents
Moved the UPDATE sip request to the end as it was sending the UPDATE request sometimes before the ACK had been received to the 200OK. This was sometimes causing it to fail. Also removed a couple of commented out lines.