i'm italian boy and i hope you can understand my problems......

i'm creating one mp3player...it's all ok!!! but wen calling me or i calling another people the song is active!!!!
i want "pause" or "stop" the song wen i doing one call!!!!
how to do??????