Hi Guys,
I have a Linksys IP phone (SPA941 with latest firmware) with Asterisk version 1.6.0.18 on FreeBSD 8 (64 Bit).
This is what I am trying to do (so it’s clear what I am trying to achieve):
tape.net/~gerry/asterisk/cisco26x0.html
I want to be able to receive incoming calls from the PSTN line to my IP phone and to also be able to make calls from my IP phone to the outside world via the FXO.
Inbound calls work just fine, I can ring my landline number from a cell phone, FXO picks up and asterisk does the rest of the magic from there. It’s outgoing calls that do not seem to work. I have configured extensions.conf so that any number dialed that starts with a 0 is sent to the Cisco unit. I have the following entry in my extensions.conf:
[quote][pstn-outbound]
exten => _0.,1,Dial(SIP/${EXTEN:1}@172.16.0.244) ; IP address of Cisco gateway
exten => _0.,2,Congestion
[/quote]
What is happening is, the call is being sent to the cisco unit, the cisco unit is starting the FXO and dialing the number (I know this is occuring because the ‘Line in use’ light on the FXO card comes on for a few seconds, then goes off (hang up)). Upon connecting a spare handset to the line, I can hear that the correct number got dialed just prior to the hang up.
If I connect a Cisco soft phone (Cisco IP communicator) via Cisco call manager which uses SCCP rather than SIP, i can make an external call via the FXO just fine.
This means there is a SIP problem, I think what is happening is:
- Call is forwarded to the Cisco router
- Cisco starts the FXO and dials
- A SIP negotiation problem occurs
- Call is terminated.
I think at this stage I need to examine the SIP protocol and see where things are going wrong. As I don’t understand the inner workings of the SIP protocol I am stuck, I can turn on SIP debugging on the Cisco end or the asterisk end but i don’t know what end is misbehaving. I would like to start with the asterisk end first. SIP->SIP communication works fine if I dial another IP phone on the network. I am using the g711 ulaw codec for everything.
Any suggestions? Am I able to get a capture of SIP traffic on a test call and put it up here (how do i do it)? If i get the capture, would you guys mind having a look and telling me what you think?
I’d be very grateful as I am pulling my hair out here.
Thanks In Advance,
Alex.