How to configure Asterisk trunck to connect to Cisco 5300?

is there anyway so that I can setup Asrterisk so tha I can connect Asterisk to Cisco 5300 softswitch?

I presume you have a PRI coming into the 5300 and want to direct incoming calls from it to the asterisk server as well as direct outbound calls from asterisk to the 5300. Is that correct?

Thanks for your reply. No, I am trying to connect to Cisco 5300 for PSTN termination from third vendor. I need to setup a trunk in Asterisk for this vendor to do PSTN termination so that I can call out via this trunk.

I could not quite understand your connection.
Is this what you want?

PSTN-----Cisco5300--------internet-------*-----PSTN

yes, PSTN-----Cisco5300--------internet-------*-----PSTN.

How do I configire Asterisk to connect to Cisco 5300. I only have ip address of cisco 5300.

[quote=“xlitang”]yes, PSTN-----Cisco5300--------internet-------*-----PSTN.

How do I configire Asterisk to connect to Cisco 5300. I only have ip address of cisco 5300.[/quote]

In your sip.conf file:

[ip.address.of.5300]
context=default
type=friend
host=ip.address.of.5300
dtmfmode=rfc2833
disallow=all
allow=g729
allow=ulaw

Create something like this in your extensions.conf


[outbound]

exten => _XXXXXXXXXX,1,Dial(SIP/${EXTEN:0}@ip.address.of.5300)
exten => _1XXXXXXXXXX,1,Dial(SIP/${EXTEN:0}@ip.address.of.5300)
exten => _011.,1,Dial(SIP/${EXTEN:0}@ip.address.of.5300)