Hi there,
Unfortunately I didn't upgrade from 5.2.4 yesterday as I planned, so this may already be fixed in the latest version. I won't be able to tell because it is working now.
I'm posting this here anyway because there are some spurious answers about changing the order of call_block in the Dialplan manager.
I didn't attempt to change the order of call_block, but as I was looking through the DEBUG log, I could see that call_block was never being executed.
The entry before that which was being executed was clear_sip_auto_answer so I disabled that, then did a reload/rescan from SIP Status.
The call_block then started being called, I could see it in the DEBUG log.
I then re-enabled clear_sip_auto_answer, and it still worked.
So I don't think it had anything to do with clear_sip_auto_answer, or changing the order, I think it was just that after the first time you add a new call block, if you don't reload/rescan then it never gets activated somehow. Maybe the XML doesn't save to the DB because it's empty until that point.
Probably if I either re-saved call_block from the dialplan or disabled/enabled that it may have worked, possibly it just needs reload/rescan, possibly it needs both.
It's difficult for me to tell, because it's working now, and of course I can't really tell if it will be the same on the latest version either, because it's working and will (hopefully) continue to work after I upgrade.
I also found that call block doesn't work when the call originates from the same server as the inbound number, however I will post that in a separate topic because it's probably expected behaviour and I just need advice on how it works.
Thanks,
Iain
Unfortunately I didn't upgrade from 5.2.4 yesterday as I planned, so this may already be fixed in the latest version. I won't be able to tell because it is working now.
I'm posting this here anyway because there are some spurious answers about changing the order of call_block in the Dialplan manager.
I didn't attempt to change the order of call_block, but as I was looking through the DEBUG log, I could see that call_block was never being executed.
The entry before that which was being executed was clear_sip_auto_answer so I disabled that, then did a reload/rescan from SIP Status.
The call_block then started being called, I could see it in the DEBUG log.
I then re-enabled clear_sip_auto_answer, and it still worked.
So I don't think it had anything to do with clear_sip_auto_answer, or changing the order, I think it was just that after the first time you add a new call block, if you don't reload/rescan then it never gets activated somehow. Maybe the XML doesn't save to the DB because it's empty until that point.
Probably if I either re-saved call_block from the dialplan or disabled/enabled that it may have worked, possibly it just needs reload/rescan, possibly it needs both.
It's difficult for me to tell, because it's working now, and of course I can't really tell if it will be the same on the latest version either, because it's working and will (hopefully) continue to work after I upgrade.
I also found that call block doesn't work when the call originates from the same server as the inbound number, however I will post that in a separate topic because it's probably expected behaviour and I just need advice on how it works.
Thanks,
Iain