It seems that chan_h323 has trouble playing inband tones back to the caller. Same issue arises when using PlayTones command. I dig into code
and found that tone generator is initialised correctly (in ast_activate_generator) but never run because ast_read is never called.
OTOH when calling in from SIP device everything works since the call is sitting in ast_safe_sleep which calls ast_read…
Now, can anyone give some hint where from should h323 call run generators? It seems that in alerting status the call is waiting for poll() in ast_waitfor_nandfs.