This topic is to discuss the following lesson:
Thank you for sharing. Is it possible to configure the Cisco UC500 to connect to a VOIP GSM gateway (e.g. Portech MV-374)? How to configure it on the Cisco side such that you have four (4) trunks created each presenting a SIM card? If you any idea I will grateful if you can share it.
I wish I could help you but I have no idea. I don’t do a lot of voip…
Can you do a lesson and configuration in connecting a Cisco VoIP system to Asterisk SIP system,
Im planning to have a lab:
Branch 1 is using Cisco CUCM or CUCME
Branch 2 is using Asterisk as thier Voip System
Can you do a configuration on both Cisco Router and Asterisk to able to connect each other and can call beetwen thier local extension numbers.
I’d love to do it some day but right now I don’t have much experience with CUCM or CUCME. I use Asterisk every now and then for some small setups where a Cisco router is used as gateway but that’s pretty much it…
Thanks for the post, is helping me out a great deal.
I am trying to use a 2621 as a PSTN gateway (2 lines) linked to a Raspberry Pi running FreePBX (Asterisk) but am having a few difficulties.
What I am trying to achieve is have the 1st line ring a call group (#601) and the second line ring a second call group (#602)
Also need the PBX extensions to be able to dial out to the PSTN on any available line. The outgoing has some very strange dial plans as is going to be attached to a work internal PBX which can connect to other sites PBX’s (via a 9 dial code) and also to the great outside world (this is achieved by 0 in front of the number you are dialing)
Any help or pointers on this is greatly appreciated as am pulling my hair out trying to get to the end of this project.
Hello, first congratulations on such good Post, I wonder if I could you indicate how to protect your Asterisk server using a cisco router ACLS. Thank you very much for your answer.
Greetings from Salvador
You can use a Cisco access-list for this. By default Asterisk uses SIP on port 5060 and I believe UDP port 10000 - 20000 for RTP traffic. An access-list outbound to the Asterisk server could look something like this:
Router(config)#ip access-list extended ASTERISK Router(config-ext-nacl)#permit udp 192.168.1.0 0.0.0.255 host 192.168.2.1 eq 5060 Router(config-ext-nacl)#permit udp 192.168.1.0 0.0.0.255 host 192.168.2.1 range 10000 20000
In this example, 192.168.1.0/24 could be the subnet where your SIP phones are located and 192.168.2.1 would be the IP address of the Asterisk server. It’s a simple example but it should help to get you going.
Hi Rene, you have done a great job.
However i need help for outgoing. How can i do the same for outgoing ?
I don’t have an example right now for outgoing calls. Right now I’m a bit busy with R&S projects so maybe in the future I can create a tutorial for this.
How did you solve the caller-id from the cisco router not being accepted by Asterisk? I have an ISR3825 with 1GB ram a PVDM16 and a VIC2-4FXO (all vic2 fxo cards support call id) that recieves the caller-id but asterisk is not doing anything, I do get a fast-busy. If I use clid strip in my dial-peer then calls are passed to asterisk and it does as expected but no caller-id info.
It’s been awhile since I configured this. I’m running Asterisk 1.8, here’s my config:
[my-trunk] type=friend host=x.x.x.x context=fxo insecure=very qualify=2000
[fxo] ; my-trunk exten => 104,1,Answer exten => 104,n,MusicOnHold(mp3)
This works for me.
Right now, my cisco uses plar 100 to get to the sip session and destination pattern 100 and session target ipv4:xxx.xxx.xxx.xxx to poing to asterisk (debian7 apt default version). My dial plan has exten => 100,1,Answer ()
This works as long as I use clid strip in my cisco dial peer voice voip. As soon as I remove it calls go nowhere.
This may be just a very poorly documented sip mangling by cisco that is causing this (not sending clid info in the correct setup message) or it is how asterisk deals with clid’s.
By the way, this site has helped me understand more clearly on how cisco and asterisk need to be setup to work together. If I didnt need caller id then it would be working perfectly! Thanks.
Did you try to debug both? Set Asterisk to debug as verbose as possible:
And also enable some debugs on your Cisco router.
That might produce some useful messages to pinpoint where the problem is.
Debug cisco: debug vpm signal
Shows the clid incoming and readable.
I have been using asterisk -cvvvvvvvvvvr to get as much detail but when I remove clid strip from my cisco the asterisk box shows nothing incoming.
Hmm that is strange, you should receive something on your asterisk server. Sounds like your router doesn’t forward anything?
When my FXO port is receiving a call, I get a ton of debug info on my asterisk console.
Maybe run tcpdump on the asterisk server? see if it’s not receiving anything from your router? If so, it has to be something on the router…
Thats what I was leaning towards, there is not a whole lot of information out there for this setup. Even though it seems to be a very common setup.
Thanks for the pointers.
I agree, it’s hard to find a complete solution…only partial configs or outdated info. Good luck and let me know if you find it ok?
I’m having problems with my outgoing settings.
Here are my settings of a Cisco 2811 router:
voice-port 0/1/0 trunk-group 1 1 supervisory disconnect dualtone pre-connect supervisory answer dualtone input gain 10 output attenuation -1 no vad no comfort-noise cptone AR connection plar 400 description (54) 11-4922-5216 caller-id enable ! dial-peer voice 1 pots description Linea 541149225216 preference 1 destination-pattern 9T port 0/1/0 forward-digits 8 ! dial-peer voice 400 voip numbering-type unknown destination-pattern .T session protocol sipv2 session target ipv4:192.168.0.101:5060 session transport udp dtmf-relay rtp-nte codec g711ulaw clid strip no vad
Here’s the configuration of freepbx:
type=friend qualify=yes nat=no insecure=very host=192.168.0.2 dtmfmode=rfc2833 disallow=all context=from-internal allow=ulaw
when I want to make a call, it does not work.
It is difficult to troubleshoot this only by looking at the configurations. Do you see anything in particular if you enable a debug on the 2811 and freepbx? You can use this to verify if the 2811 is trying to connect to freepbx and/or to see why the call is being ignored.