how to pots dial-peers and voip dial-peers

Hello

I have 2 cards installed for my cisco 2801 flash:c2801-spservicesk9-mz.124-24.T2.bin
with CME 7.1. The cards i got are 2port-vic3-2fxs/DID and 2port-vic2-2fxo.
This is the only router which has both multiple IP phones and and  1analog phone connected in it.
The PSTN analog phone: 1-705-267-6097 is connected to the FXS port 0/0/0 and the FXO port 0/1/0 is connected to the PSTN rj11 wall jack.
Since both types of phones (IP and analog) are connected to the same router do i need to configure both pots dial-peers and voip dial-peers in order for this to work and utilize voip the way it should work?
If i do have to create voip dial peers is the session target ipv4: command required and should point to itself since it's all in the same router?

thanks for the help
ibanez7Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

scott30134Commented:
POTS dial peers should be all you need.
config t
dial-peer voice 1 pots
destination-pattern 7052676097
port 0/0/0
dial-peer voice 2 pots
destination-pattern .T
port 0/1/0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
dinkon4uCommented:
also you need connection plar command under your fxo port

voice-port 0/1/0
connection-plar opx 7052676097



HTH
ibanez7Author Commented:
Thanks very much for the help...it works

Can i somehow get the analog phone and one of my IP phones x1004 to both be able to answer an incoming call from PSTN using that same number 1-705-267-6097 ?
Analog phone number = 1-705-267-6097 and IP phone x1004
I know that if i change the connection plar opx 7052676097 to connection plar opx 1004 then the IP phone with x1004 will receive the call, but can i trunk them together somehow?

Thanks very much for the help.
SolarWinds® VoIP and Network Quality Manager(VNQM)

WAN and VoIP monitoring tools that can help with troubleshooting via an intuitive web interface. Review quality of service data, including jitter, latency, packet loss, and MOS. Troubleshoot call performance and correlate call issues with WAN performance for Cisco and Avaya calls

scott30134Commented:
Sounds like what you want is a ring group.  Do you want them both to ring and whichever you pick-up gets the call, or do you want one as the primary and to roll to the next if its busy?
I don't know what all you have going on or if you have multi-line phones or not, but you can take this link and see if it helps you figure out what you want to do.  It explains how to do several options.
http://www.ciscopress.com/articles/article.asp?p=401648
dinkon4uCommented:
You can modify the setting like this .

dial-peer voice 1 pots
destination-pattern 1004
port 0/0/0

voice-port 0/1/0
connection-plar opx 3500

voice hunt-group 1 broadcast
pilot 3500
list 1004,7052676097


HTH
dinkon4uCommented:
You can modify the setting like this .
sorry small change in the previous post need.the previous post is wrong.

dial-peer voice 1 pots
destination-pattern 7052676097
port 0/0/0

voice-port 0/1/0
connection-plar opx 3500

voice hunt-group 1 broadcast
pilot 3500
list 1004,7052676097
ibanez7Author Commented:
Thanks very much for your help
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
IP Telephony

From novice to tech pro — start learning today.