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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 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

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

_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to