Hi, Paul
Paul, I struggled quite serious with your logfile to understand what's going on :mrgreen:
So, finally I think I realised the configuration you have, and is not a correct one:
1 - you created an external line (most probably, a PSTN one, as gateway requires) named Skype, having as "number" 104.
2 - most probably, that leads you to create an outbound rule, where you set 0 as prefix and strip 1 digit
Ok, until now is almost perfect (I will explain you later why "almost"). Now it's coming the interesting part:
3 - you registered your 3CX Voip Phone (callerID "Desktop") as 104 - and it registered perfectly, displaying "On Hook".
4 - on the phone, you dialed 0077xxxxxxx (expecting to pass through outbound rule) and you got "Not Available".
Well, the wrong-critical part in this configuration is registering phone as 104, therefore as an EXTERNAL LINE, not as an EXTENSION. A phone always should be set as an extension. If you register it as an external line (PSTN gateway) PBX will consider its "calls" as external-inbound ones and they will be processed according to the gateway settings you defined. In your case, PSTN gateway 104 has the default "routing during (out-of-)office hours", respectively "connect to extension 100". Which extension seems not registered, therefore your "calls" will get, normally, "Not available" message.
To fix this, let your PBX as is but:
- register your phone as an existing EXTENSION (let's say 101)
- stop Skype gateway and configure its port as the existing 104 PSTN gateway (probably 104/104/104 port 5061, hmm, not too good choice 5061) then start the gateway.
- from your phone, now try first an 0echo123 - this calls Skype's sound service. It should work
- then try to call 0077xxxxxxx, it should work also.
The difference is following: as you already observed, in previous configuration outbound rule has not been involved. Now, the call you made 0echo123 coming from EXTENSION goes to PBX, PBX found outbound rule, strips 0 and pass the echo123 to the 104 gateway - our Skype gateway - which will call Skype with echo123.
I said earlier the configured PSTN gateway is almost perfect: is not recommended, for troubleshooting purposes, to register an EXTERNAL line with the same number of digits as extensions, it's very confusing.
Ok, lesson is done, hope it helps :mrgreen:
Regards
vali