How to cross compiling asterisk1.4-beta4

Any body who can tell me how to compiling asterisk1.4-beta4 with mips.