A clean load (amportal restart) tends to work well. After a few changes and the subsequent reloads I end up with the FAX detection code getting skipped. It isn’t that it has anything to do with FAX but seems to be more elusive.
Consider this excerpt from extensions_additional.conf
exten => 8885554320,1,Set(__FROM_DID=${EXTEN})
exten => 8885554320,n,ExecIf($[ "${CALLERID(name)}" = "" ] ?Set(CALLERID(name)=${CALLERID(num)}))
exten => 8885554320,n,Set(__CALLINGPRES_SV=${CALLERPRES()})
exten => 8885554320,n,Set(CALLERPRES()=allowed_not_screened)
exten => 8885554320,n,Set(FAX_DEST=ext-fax^4320^1)
exten => 8885554320,n,Answer
exten => 8885554320,n,Wait(4)
exten => 8885554320,n(dest-ext),Goto(ext-queues,432099,1)
But then look at what shows in the log:
[Sep 15 13:23:42] VERBOSE[15103] chan_dahdi.c: -- Accepting call from '9115551013' to '8885554320' on channel 0/1, span 2
[Sep 15 13:23:42] VERBOSE[31905] pbx.c: -- Executing [8885554320@from-pstn:1] Set("DAHDI/25-1", "CDR(accountcode)=6124604320") in new stack
[Sep 15 13:23:42] VERBOSE[31905] pbx.c: -- Executing [8885554320@from-pstn:2] ExecIf("DAHDI/25-1", "0?Set(CALLERID(name)="Paul Tuten")") in new stack
[Sep 15 13:23:42] VERBOSE[31905] pbx.c: -- Executing [8885554320@from-pstn:3] ExecIf("DAHDI/25-1", "0?Set(CALLERID(name)="Peter Mobile")") in new stack
[Sep 15 13:23:42] VERBOSE[31905] pbx.c: -- Executing [8885554320@from-pstn:4] Set("DAHDI/25-1", "CALLERPRES()=allowed_not_screened") in new stack
[Sep 15 13:23:42] VERBOSE[31905] pbx.c: -- Executing [8885554320@from-pstn:5] Goto("DAHDI/25-1", "ext-queues,432099,1") in new stack
[Sep 15 13:23:42] VERBOSE[31905] pbx.c: -- Goto (ext-queues,432099,1)
[Sep 15 13:23:42] VERBOSE[31905] pbx.c: -- Executing [432099@ext-queues:1] Macro("DAHDI/25-1", "user-callerid,") in new stack
So, okay, I look at the current dialplan in asterisk:
'8885554320' => 1. Set(__FROM_DID=${EXTEN}) [pbx_config]
2. ExecIf($[ "${CALLERID(name)}" = "" ] ?Set(CALLERID(name)=${CALLERID(num)})) [pbx_config]
3. Set(__CALLINGPRES_SV=${CALLERPRES()}) [pbx_config]
4. Set(CALLERPRES()=allowed_not_screened) [pbx_config]
5. Set(FAX_DEST=ext-fax^4320^1) [pbx_config]
6. Answer() [pbx_config]
7. Wait(4) [pbx_config]
[dest-ext] 8. Goto(ext-queues,432099,1) [pbx_config]
I know that the dialplan on this system is pretty big but it certainly isn’t huge. Is there a graceful way to correct the running system without doing a restart? (running 1.6.2.11, fpbx 2.7)
I can get a restart in tonight to get the proper behavior back but I wonder if there’s a way to recover from this or perhaps avoid it all together. Any ideas?
Thanks,
peter