Thank you for your responses, i appreciate it.
I know the HT isn't the best gateway but i am simply using it as an experiment to test interoperability of pbxnsip with OCS, when the time is right i will change this adapter for something more capable.
I have done what you have suggested and now i don't seem to get any errors in the log. I cannot call the outside world however. Thing is, the adapter is plugged this way:
HT-503 - Analog PBX - PSTN.
If i pick up the phone connected to the HT i get a dialtone. If i press 9 (which is what i've set as the PSTN access code in the ATA) i reach my analog PBX here at work. If i press 9 again i reach the outside world.
I have tested that if i dial the entire number all at once (for instance 9988536491) the call will go through, i don't have to wait for dial tones from either the HT or the analog PBX.
How would i go about creating a dial plan for this? I have set a single one saying that any 8 digit call should be replaced with 99 and the 8 digits and it gets recognized in the log:
[5] 2010/02/23 17:33:45: Dialplan Dial Plan: Match 88536491@192.168.230.170 to <99xxxxxxxx> on trunk PBX
however the call never gets through, it just keeps ringing.
Any clues?
Thanks