Hello Manish,
I believe that you have and issue with your dial-peers and that is why the outgoing calls are not working.
Checking your configuration I saw this:
dial-peer voice 801 pots
description ***Outgoing POTS ***
preference 1
destination-pattern 0T
fax rate voice
direct-inward-dial
!
First you need to specify the port that you are going to use to send your calls to the PSTN, in this case will be you E1 circuit, also you have 5 configure as your access code and your dial-peer starts with 0 instead of 5 that will be another important detail.
telephony-service
secondary-dialtone 5
Also I belive from one of the files that you E1 circuits its not up or its recognize because I don't see it as port in the gateway.
sh voice port summary
IN OUT
PORT CH SIG-TYPE ADMIN OPER STATUS STATUS EC
=============== == ============ ===== ==== ======== ======== ==
0/2/0 -- fxs-ls up dorm on-hook idle y
0/2/1 -- fxs-ls up dorm on-hook idle y
50/0/1 1 efxs up up on-hook idle y
50/0/1 2 efxs up up on-hook idle y
50/0/2 1 efxs up dorm on-hook idle y
50/0/2 2 efxs up dorm on-hook idle y
HTH
Please rate this post if was helpful
Walter Solano
Cisco UCCX Specialist