Hello

Here is my call flow scenario.

SIP Gateway (A)
Kamailio (K)
Asterisk (AST)
SIP Gateway (B)

Now i want to send calls from A -> B by using Asterisk as media server.
Kamailio shall be used to authenticate A and allow A to send calls to B.

What are the configurations i need to make in Kamailio and Asterisk ? 

Thanks in advance.

--
Regards
===================
Sujit Roy