ast_log(LOG_DEBUG, "New Zap channel should be %d-%d\n", i->channel, y); b2 = ast_safe_string_alloc("%d-%d", i->channel, y); ast_log(LOG_DEBUG, "b2 allocated is %s\n", b2); ......................... [Jun 5 11:41:01] DEBUG[15129]: chan_zap.c:5180 zt_new: New Zap channel should be 2-1 [Jun 5 11:41:01] DEBUG[15129]: chan_zap.c:5182 zt_new: b2 allocated is 1-7