My requirement seems a bit strange. My logic is Asterisk is a B2BUA. It is possible to configure it via TCP.
I will tell asterisk that these(say 500) are my user sip uri and password. Then asterisk will register as client, with a thirdparty PBX(say broadworks) with all these uri information. Is it possible with asterisk?
When call comes via third party PBX to an individual sip uri then Asterisk will send me event via tcp, like OnCallArrive event with parameter callid,from(uri). Is it possible to get tcp event from asterisk like this?