Hi, I'm trying to start with Asterisk, but I could not put 2 softphones to talk. The asterisk server rejects the connections always when I dial. May 17 07:49:22 NOTICE[1924]: Rejected connect attempt from 192.168.0.106 What is necessary to put it to work? There is no need to configure external lines. extensions.conf [internal1] exten => 311000,1,Dial(SIP/teste1) [internal2] exten => 312000,1,Dial(SIP/teste2) [internal3] exten => 313000,1,Dial(SIP/teste3) [teste1] sip.conf [teste1] type=friend username=teste1 secret=123 qualify=yes nat=no host=dynamic canreinvite=no context=internal [teste2] type=friend username=teste2 secret=123 qualify=yes nat=no host=dynamic canreinvite=no context=internal2 [teste3] type=friend username=teste3 secret=123 qualify=yes nat=no host=dynamic canreinvite=no context=internal3 -- Ralph Liebessohn ICQ: 74835911 Skype: liebessohn -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060518/185dcf2f/attachment.htm
> I'm trying to start with Asterisk, but I could not put 2 softphones to > talk. The asterisk server rejects the connections always when I dial. > > May 17 07:49:22 NOTICE[1924]: Rejected connect attempt from 192.168.0.106 > > What is necessary to put it to work? > There is no need to configure external lines. > > extensions.conf > > [internal1] > exten => 311000,1,Dial(SIP/teste1) > > [internal2] > exten => 312000,1,Dial(SIP/teste2) > > [internal3] > exten => 313000,1,Dial(SIP/teste3) > [teste1] > > > sip.conf > > [teste1] > type=friend > username=teste1 > secret=123 > > qualify=yes > nat=no > host=dynamic > canreinvite=no > context=internal > > [teste2] > type=friend > username=teste2 > secret=123 > > qualify=yes > nat=no > host=dynamic > canreinvite=no > context=internal2 > > [teste3] > type=friend > username=teste3 > secret=123 > > qualify=yes > nat=no > host=dynamic > canreinvite=no > context=internal3Debug/verbose is too short, but probably your peers cannot "meet" in a mutual context. Try: extensions.conf [default] include => internal [internal] exten => 311000,1,Dial(SIP/teste1) exten => 311000,2,Hangup ; Hangup is good exten => 312000,1,Dial(SIP/teste2) exten => 312000,2,Hangup exten => 313000,1,Dial(SIP/teste3) exten => 313000,2,Hangup Put context=internal or default in all your sip "friends". Hope that would do. Benchev
> I'm trying to start with Asterisk, but I could not put 2 > softphones to talk. > The asterisk server rejects the connections always when I dial. > > May 17 07:49:22 NOTICE[1924]: Rejected connect attempt from > 192.168.0.106Try puting a permit=0.0.0.0/0.0.0.0 In the sip.conf for your two phones. BTW: your extensions.conf looks silly, you'll only be able to call test3 from test3. Busy most of the time ;-) Stefan M?rkle
You need to either need to put all your extensions in the same context or use a GoTo command. Try this instead: extensions.conf [internal1] exten => 311000,1,Dial(SIP/teste1) exten => 312000,1,Dial(SIP/teste2) exten => 313000,1,Dial(SIP/teste3) sip.conf [teste1] type=friend username=teste1 secret=123 qualify=yes nat=no host=dynamic canreinvite=no context=internal1 [teste2] type=friend username=teste2 secret=123 qualify=yes nat=no host=dynamic canreinvite=no context=internal1 [teste3] type=friend username=teste3 secret=123 qualify=yes nat=no host=dynamic canreinvite=no context=internal1 or.. http://www.asteriskguru.com/tutorials/goto.html _____ From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Ralph Liebessohn Sent: Thursday, May 18, 2006 7:18 AM To: asterisk-users@lists.digium.com Subject: [Asterisk-Users] just softphone Hi, I'm trying to start with Asterisk, but I could not put 2 softphones to talk. The asterisk server rejects the connections always when I dial. May 17 07:49:22 NOTICE[1924]: Rejected connect attempt from 192.168.0.106 <http://192.168.0.106/> What is necessary to put it to work? There is no need to configure external lines. extensions.conf [internal1] exten => 311000,1,Dial(SIP/teste1) [internal2] exten => 312000,1,Dial(SIP/teste2) [internal3] exten => 313000,1,Dial(SIP/teste3) [teste1] sip.conf [teste1] type=friend username=teste1 secret=123 qualify=yes nat=no host=dynamic canreinvite=no context=internal [teste2] type=friend username=teste2 secret=123 qualify=yes nat=no host=dynamic canreinvite=no context=internal2 [teste3] type=friend username=teste3 secret=123 qualify=yes nat=no host=dynamic canreinvite=no context=internal3 -- Ralph Liebessohn ICQ: 74835911 Skype: liebessohn -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060518/af252c9d/attachment.htm