Manually adding new extension to tirxbox server/Asterisk

Dear All,

I would like to add new extension/sip number to server by manually not using trixbox webpage addextension button.
I mean i want to add new extension to server by my .net program using Asterisk API.
Is there any way to add extension/sip number to server?
Any one who know this ,please share me your idea.
I’m facing the problem in my project with this.

Thanks and Regards.