I have successfully registered the iax user through the database. There are a couple of problems:
1. When I log on from a softphone such as zoiper, asterisk does not generate a peer status on event.
2. I get this warning in asterisk: WARNING: chan_iax2.c:12152 build_peer: Set peer->pokefreqnotok to 5000
3. Although there is no peer status on event, there is a continuous peer status off event generated, almost every second which is:
onManagerEvent - Tue Mar 20 13:50:06 UZT 2012 PEER_OFF Peer=<peername> time=null cause=Expired (this is from the log in my code in manager api, where <peername> is the peer name)