The phone code for spark

hello,every one.

recently, i research spark, and want to extend the phone part, but i don’'t know how to write the code

for connect the asterisk and spark.

please give me some helps, such as how to review asterisk-java or asterisk-im? sample instance for

complete phone answer or others.

please help me, thank you in advanced for give me your suggestions.