Study of optical fiber bragg grating solitons near the photonic bandgap in resonant and non resonant media