I'm trying to get my Cisco 7960 configured to work with Asterisk, with no luck. I'm sure I'm missing something very easy... since I know others have this working. I've stepped through Andy Powell's excellent "Getting Started with Asterisk", and it works for my X-Lite softphone. My sip.conf entry for the cisco looks like this: [cisco] type=friend username=cisco secret=1234 host=dynamic defaultip=[The IP of the 7960] mailbox=9999 context=sip callerid="Ben" <1> And the related extensions.conf entry: exten => 1,1,Dial(SIP/cisco,20,tr) The Cisco config itself.. Line 1 is set for FWD. Line 2 is: Name: cisco Shortname: cisco Authentication Name: cisco Authentication Password: 1234 Display Name: cisco proxy address: [The IP of my Asterisk installation] proxy port: 5060 The FWD line works, the Asterisk line doesn't. Any suggestions or pointers to documentation I might have missed? Thanks, Ben Wern
>I'm trying to get my Cisco 7960 configured to work with Asterisk, >with no luck. I'm sure I'm missing something very easy... since I >know others have this working. I've stepped through Andy Powell's >excellent "Getting Started with Asterisk", and it works for my >X-Lite softphone. My sip.conf entry for the cisco looks like this: > > [cisco] > type=friend > username=cisco > secret=1234 > host=dynamic > defaultip=[The IP of the 7960] > mailbox=9999 > context=sip > callerid="Ben" <1> > >And the related extensions.conf entry: > > exten => 1,1,Dial(SIP/cisco,20,tr) > >The Cisco config itself.. Line 1 is set for FWD. Line 2 is: > >Name: cisco >Shortname: cisco >Authentication Name: cisco >Authentication Password: 1234 >Display Name: cisco >proxy address: [The IP of my Asterisk installation] >proxy port: 5060 > >The FWD line works, the Asterisk line doesn't. Any suggestions or >pointers to documentation I might have missed? > >Thanks, > >Ben WernHints to make your life easier and maybe solve your problem: 1) Make the username numeric instead of "cisco". Change all appropriate configs. 2) Do you see the Cisco trying to register with Asterisk? Use "tethereal port 5060" to watch what happens. 3) Just for fun, put "nat=1" in the peer for your Cisco. It won't hurt. JT
Ben Wern wrote:> I'm trying to get my Cisco 7960 configured to work with Asterisk, with > no luck. I'm sure I'm missing something very easy... since I know > others have this working. I've stepped through Andy Powell's excellent > "Getting Started with Asterisk", and it works for my X-Lite softphone. > My sip.conf entry for the cisco looks like this: > > [cisco] > type=friend > username=cisco > secret=1234 > host=dynamic > defaultip=[The IP of the 7960] > mailbox=9999 > context=sip > callerid="Ben" <1>Use something like: [1000] callerid="Ben" <1000> context=sip type=friend secret=1234 host=dynamic defaultip=youraddress mailbox=1000 Optionally: qualify=500 canreinvite=no nat=yes> > > And the related extensions.conf entry: > > exten => 1,1,Dial(SIP/cisco,20,tr)You might want this to be: exten => 1000,1,Dial(SIP/1000@1000,20,tr)> > The Cisco config itself.. Line 1 is set for FWD. Line 2 is:Make sure you didn't set the 'outbound proxy' setting on the phone, that will force everything to the proxy.> Name: cisco > Shortname: cisco > Authentication Name: cisco > Authentication Password: 1234 > Display Name: cisco > proxy address: [The IP of my Asterisk installation] > proxy port: 5060Set all the 'cisco' entries to '1000' in this case. I have several 7960s working with Asterisk, so I can help you out more if you need it. -Andrew
> My sip.conf entry for the cisco looks like this: > > [cisco] > type=friend > username=cisco > secret=1234 > host=dynamic > defaultip=[The IP of the 7960] > mailbox=9999 > context=sip > callerid="Ben" <1>Try to remove the defaultip= string. Do you get any errors in the console when it is run in verbose mode?
Andrew, Thanks for your help! I did have the outgoing proxy set -- since I had FWD set up on line 1. I removed all the FWD stuff, and the outgoing proxy. I altered the entry to have the qualify, canreinvite, and nat lines and also altered the user id to be a number. Now I'm able to call other local extensions, but I can't call into the Cisco. But it's progress! I can also call out to FWD, but audio drops after a few seconds. Don't even want to think about getting FWD calls back into the network.>exten => 1000,1,Dial(SIP/1000@1000,20,tr)This didn't work - what does the @1000 indicate? Ben
Andrew, I removed that entry, still no luck. I also altered the config to use a number (101) as the entry name instead. I get: Got SIP response 404 "Not Found" back from 172.16.1.28 SIP/101-e9a4 is circuit-busy on the console when I try to call it. sip show peers shows the node, with an OK status. Ben At 02:09 AM 8/30/2003 -0400, Andrew Joakimsen wrote:> > My sip.conf entry for the cisco looks like this: > > > > [cisco] > > type=friend > > username=cisco > > secret=1234 > > host=dynamic > > defaultip=[The IP of the 7960] > > mailbox=9999 > > context=sip > > callerid="Ben" <1> > > >Try to remove the defaultip= string. Do you get any errors in the >console when it is run in verbose mode? > >_______________________________________________ >Asterisk-Users mailing list >Asterisk-Users@lists.digium.com >http://lists.digium.com/mailman/listinfo/asterisk-users
Sorry for the late reply on this.. Ben Wern wrote:> Andrew, > > Thanks for your help! > > I did have the outgoing proxy set -- since I had FWD set up on line 1. > I removed all the FWD stuff, and the outgoing proxy. I altered the > entry to have the qualify, canreinvite, and nat lines and also altered > the user id to be a number. Now I'm able to call other local > extensions, but I can't call into the Cisco. But it's progress!The outgoing proxy apparently overrides the per line proxy, so you want to leave it empty and just configure each line with the appropriate proxy.> > > I can also call out to FWD, but audio drops after a few seconds. Don't > even want to think about getting FWD calls back into the network. > >> exten => 1000,1,Dial(SIP/1000@1000,20,tr) > > > This didn't work - what does the @1000 indicate?If your sip.conf entry is under '[1000]' and you have the Cisco configured as '1000', this is tell the 7960 which line is ringing. That is why you get the 404 not found because it doesn't know which line you're calling. -Andrew