[Asterisk-Users] just softphone

Benchev bbench at mail.bg
Thu May 18 05:54:31 MST 2006


> 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
Debug/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



More information about the asterisk-users mailing list