[Asterisk-Users] just softphone

Ralph Liebessohn ralphliebessohn at gmail.com
Thu May 18 06:32:41 MST 2006


On 5/18/06, Benchev <bbench at mail.bg> wrote:
>
> > 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
>

Benchev,


thanks for the attention.
But didn't solve the problem. I think it is something with access.
I set debug and verbose to 10 and got this.

extensions.conf ( I've changed internal by from-sip)

[default]
include => from-sip
include => demo

[from-sip]
exten => 9222,1,Dial(SIP/9222,25)
exten => 9222,2,Hangup

exten => 9223,1,Dial(SIP/9223,25)
exten => 9223,2,Hangup

exten => 31200,1,Dial(SIP/312000,25)
exten => 31200,2,Hangup


sip.conf

[general]
context=default
port=5060
bindaddr=0.0.0.0
;srvlookup=yes


[9222]
type=friend
callerid = "Nome - 9222" <9222>
username=9222
secret=9222
host= dynamic
context=from-sip
dtmfmode=rfc2833
nat=yes
canreinvite=nocontext=internal

[9223]
type=friend
callerid = "Nome - 9223" <9223>
username=9223
secret=9223
host= dynamic
context=from-sip
dtmfmode=rfc2833
nat=yes
canreinvite=nocontext=internal

[312000]
type=friend
username=312000
secret=312000
host=dynamic
context=from-sip
dtmfmode=rfc2833
nat=yes
canreinvite=nocontext=internal

When I try to connect From local machine the softphone only call itself:

May 18 10:07:25 DEBUG[2218]: Allocating new SIP call for
695F71B19D89B72F697CF6D8D59A124B at 192.168
.1.73
May 18 10:07:25 VERBOSE[2218]:     -- Registered SIP '9222' at
192.168.1.73port 5061 expires 180
0
May 18 10:07:25 VERBOSE[2218]:     -- Saved useragent "X-Lite release 1105d"
for peer 9222
May 18 10:07:40 DEBUG[2218]: Auto destroying call '
695F71B19D89B72F697CF6D8D59A124B at 192.168.1.73'

When I call From network I got the error Call ended: unknown:

May 18 10:10:14 VERBOSE[2213]: Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno:
000 Type: IAX     Subcl
ass: NEW
May 18 10:10:14 VERBOSE[2213]: Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno:
000 Type: IAX     Subcl
ass: NEW
   Timestamp: 00003ms  SCall: 07747  DCall: 00000 [192.168.0.106:4569]
May 18 10:10:14 VERBOSE[2213]: Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno:
000 Type: IAX     Subcl
ass: NEW
   Timestamp: 00003ms  SCall: 07747  DCall: 00000 [192.168.0.106:4569]
   VERSION         : 2
May 18 10:10:14 VERBOSE[2213]: Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno:
000 Type: IAX     Subcl
ass: NEW
   Timestamp: 00003ms  SCall: 07747  DCall: 00000 [192.168.0.106:4569]
   VERSION         : 2
   CALLING NUMBER  : 312000
May 18 10:10:14 VERBOSE[2213]: Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno:
000 Type: IAX     Subcl   VERSION         : 2
   CALLING NUMBER  : 312000
   CALLING NAME    : 312000
May 18 10:10:14 VERBOSE[2213]: Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno:
000 Type: IAX     Subcl
ass: NEW
   Timestamp: 00003ms  SCall: 07747  DCall: 00000 [192.168.0.106:4569]
   VERSION         : 2
   CALLING NUMBER  : 312000
   CALLING NAME    : 312000
   FORMAT          : 2
May 18 10:10:14 VERBOSE[2213]: Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno:
000 Type: IAX     Subcl
ass: NEW
   Timestamp: 00003ms  SCall: 07747  DCall: 00000 [192.168.0.106:4569]
   VERSION         : 2
   CALLING NUMBER  : 312000
   CALLING NAME    : 312000
   FORMAT          : 2
   CAPABILITY      : 1550
May 18 10:10:14 VERBOSE[2213]: Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno:
000 Type: IAX     Subcl
ass: NEW
   Timestamp: 00003ms  SCall: 07747  DCall: 00000 [192.168.0.106:4569]
   VERSION         : 2
   CALLING NUMBER  : 312000
   CALLING NAME    : 312000
   FORMAT          : 2
   CAPABILITY      : 1550
   USERNAME        : 312000
   Timestamp: 00003ms  SCall: 07747  DCall: 00000 [192.168.0.106:4569]
May 18 10:10:14 VERBOSE[2213]: Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno:
000 Type: IAX     Subcl
ass: NEW
   CALLING NAME    : 312000
   FORMAT          : 2
   CAPABILITY      : 1550
   USERNAME        : 312000
   CALLED NUMBER   : 9222
   DNID            : 9222

Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass:
REJECT
   Timestamp: 00010ms  SCall: 00001  DCall: 07747 [192.168.0.106:4569]
   CAUSE           : No authority found
May 18 10:10:14 NOTICE[2213]: Rejected connect attempt from 192.168.0.106
May 18 10:10:14 VERBOSE[2213]: Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno:
000 Type: IAX     Subcl
ass: NEW
   Timestamp: 00003ms  SCall: 07747  DCall: 00000 [192.168.0.106:4569]
   VERSION         : 2
   CALLING NUMBER  : 312000
   CALLING NAME    : 312000
   FORMAT          : 2
   CAPABILITY      : 1550
   USERNAME        : 312000
   CALLED NUMBER   : 9222
   DNID            : 9222
ED NUMBER   : 9222
   DNID            : 9222

Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass:
REJECT
   Timestamp: 00010ms  SCall: 00001  DCall: 07747 [192.168.0.106:4569]
   CAUSE           : No authority found

May 18 10:10:14 VERBOSE[2213]: Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno:
000 Type: IAX     Subcl
ass: NEW
   Timestamp: 00003ms  SCall: 07747  DCall: 00000 [192.168.0.106:4569]
   VERSION         : 2
   CALLING NUMBER  : 312000
   CALLING NAME    : 312000
   FORMAT          : 2
   CAPABILITY      : 1550
   USERNAME        : 312000
   CALLED NUMBER   : 9222
   DNID            : 9222


Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass:
REJECT
   Timestamp: 00010ms  SCall: 00001  DCall: 07747 [192.168.0.106:4569]
   CAUSE           : No authority found

Rx-Frame Retry[ No] -- OSeqno: 001 ISeqno: 001 Type: IAX     Subclass: ACK
May 18 10:10:14 VERBOSE[2213]: Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno:
000 Type: IAX     Subcl
ass: NEW
   Timestamp: 00003ms  SCall: 07747  DCall: 00000 [192.168.0.106:4569]
   VERSION         : 2
   CALLING NUMBER  : 312000
   CALLING NAME    : 312000
   FORMAT          : 2
   CAPABILITY      : 1550
   USERNAME        : 312000
   CALLED NUMBER   : 9222
   DNID            : 9222

Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass:
REJECT
   Timestamp: 00010ms  SCall: 00001  DCall: 07747 [192.168.0.106:4569]
   CAUSE           : No authority found

Rx-Frame Retry[ No] -- OSeqno: 001 ISeqno: 001 Type: IAX     Subclass: ACK
May 18 10:10:14 VERBOSE[2213]: Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno:
000 Type: IAX     Subcl
ass: NEW
   Timestamp: 00003ms  SCall: 07747  DCall: 00000 [192.168.0.106:4569]
   VERSION         : 2
   CALLING NUMBER  : 312000
   CALLING NAME    : 312000
   FORMAT          : 2
   CAPABILITY      : 1550
   USERNAME        : 312000
   CALLED NUMBER   : 9222
   DNID            : 9222

Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass:
REJECT
   Timestamp: 00010ms  SCall: 00001  DCall: 07747 [192.168.0.106:4569]
   CAUSE           : No authority found

Rx-Frame Retry[ No] -- OSeqno: 001 ISeqno: 001 Type: IAX     Subclass: ACK
   Timestamp: 00010ms  SCall: 07747  DCall: 00001 [192.168.0.106:4569]
May 18 10:10:14 DEBUG[2213]: Received packet 1, (6, 4)
May 18 10:10:14 DEBUG[2213]: Cancelling transmission of packet 0
May 18 10:10:14 DEBUG[2213]: Really destroying 1, having been acked on final
message



Any more ideas?

-- 
Ralph Liebessohn
ICQ: 74835911
Skype: liebessohn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060518/ac4ea3b4/attachment.htm


More information about the asterisk-users mailing list