[asterisk-users] NOTICE[]: chan_iax2.c:5686 register_verify: No registration for peer 'jonaskellens' (from 192.168.4.169)

Cary Fitch caryf at usawide.net
Sat Apr 18 08:46:43 CDT 2009


Actually, maybe it is the other way around.

 

The ID in square brackets is the id of not only the device, but is also what
can be called by SIP (or IAX.?)

 

You can call [yournamehere] if your exten statement references it.

 

We always make it the phone number except when we want to have it non
accessable except from within a special routine, or as an internal
extension.  (For instance the outgoing lines we use do not have 911
available.  So we have an internal extension with an alphanumeric ID that
can only be dialed from an internal menu such as "911only" that can't be
dialed as an extension via a dial in call, but can be referenced in an
internal routine. That line does have 911 available.)

 

Having the number equal the phone makes keeping track of phone numbers,
phones, and such simpler.

 

In writing a line to ring phones we can use wild cards to make a run of
numbers require only one line, by using wildcards, and global variables.

 

There is more to it than this, you have to the macro written, but once you
do, you can do things like:

 

exten => 3512731505,1,Macro(stdexten,${EXTEN},SIP/${EXTEN})

 

which makes it a one line "easy do" to add an extension.

 

or

 

exten => _351600380X,1,Macro(ghhm-stdexten,${EXTEN},SIP/${EXTEN})

exten => _351600381X,1,Macro(ghhm-stdexten,${EXTEN},SIP/${EXTEN})

exten => _351600382X,1,Macro(ghhm-stdexten,${EXTEN},SIP/${EXTEN})

 

which covers 30 extensions.

 

Then that one line calls a macro which handles processing of the call, with
voicemail if no answer, if busy, or other needed processing.

 

etc

 

Cary Ftich

  _____  

From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of jonas kellens
Sent: Saturday, April 18, 2009 8:12 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] NOTICE[]: chan_iax2.c:5686 register_verify: No
registration for peer 'jonaskellens' (from 192.168.4.169)

 

[root at asterisk asterisk]# cat iax.conf
[general]
autokill=yes
bindport=4569
bindaddr=0.0.0.0

[jonaskellens]
type=friend
host=dynamic
;auth=md5
username=jonaskellens
password=zoiper
callerid="Jonas Kellens" <100>
context=intern
disallow=all
allow=gsm
allow=speex
allow=alaw


asterisk*CLI> iax2 reload
  == Parsing '/etc/asterisk/iax.conf': Found
[Apr 18 15:05:50] NOTICE[4179]: chan_iax2.c:10124 set_config: Ignoring
bindport on reload
[Apr 18 15:05:50] NOTICE[4179]: chan_iax2.c:10183 set_config: Ignoring
bindaddr on reload
  == Parsing '/etc/asterisk/users.conf': Found
  == Loaded firmware 'iaxy.bin'
  == Parsing '/etc/asterisk/iaxprov.conf': Found
    -- Loaded provisioning template 'default'
asterisk*CLI> iax2 show peers
Name/Username    Host                 Mask             Port          Status

jonaskellens/jo  (Unspecified)   (D)  255.255.255.255  0
Unmonitored
1 iax2 peers [0 online, 0 offline, 1 unmonitored]
    -- Registered IAX2 'jonaskellens' (UNAUTHENTICATED) at
192.168.4.169:4569
[Apr 18 15:06:29] NOTICE[3596]: chan_iax2.c:6406 update_registry:
Restricting registration for peer 'jonaskellens' to 60 seconds (requested
3600)

asterisk*CLI> iax2 show peers
Name/Username    Host                 Mask             Port          Status

jonaskellens/jo  192.168.4.169   (D)  255.255.255.255  4569
Unmonitored
1 iax2 peers [0 online, 0 offline, 1 unmonitored]


So my username always needs to be the same as the one between brackets []
???
This is not the case with SIP, but it needs to be like that with IAX ???

I want to understand...

Thanks for your reply !

Jonas.


On Sat, 2009-04-18 at 07:41 -0500, Cary Fitch wrote: 

Perhaps make [Jonas]:    [jonaskellens}

 

Cary Fitch

 


  _____  


From:asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of jonas kellens
Sent: Saturday, April 18, 2009 7:28 AM
To: asterisk-users at lists.digium.com
Subject: [asterisk-users] NOTICE[]: chan_iax2.c:5686 register_verify: No
registration for peer 'jonaskellens' (from 192.168.4.169)



 

The Asterisk CLI gets spammed with the following when I launch the
Zoiper-softphone on my laptop :

...
[Apr 18 14:07:23] NOTICE[3221]: chan_iax2.c:5686 register_verify: No
registration for peer 'jonaskellens' (from 192.168.4.169)
[Apr 18 14:07:23] NOTICE[3228]: chan_iax2.c:5686 register_verify: No
registration for peer 'jonaskellens' (from 192.168.4.169)
[Apr 18 14:07:23] NOTICE[3222]: chan_iax2.c:5686 register_verify: No
registration for peer 'jonaskellens' (from 192.168.4.169)
[Apr 18 14:07:23] NOTICE[3226]: chan_iax2.c:5686 register_verify: No
registration for peer 'jonaskellens' (from 192.168.4.169)
[Apr 18 14:07:23] NOTICE[3230]: chan_iax2.c:5686 register_verify: No
registration for peer 'jonaskellens' (from 192.168.4.169)
[Apr 18 14:07:23] NOTICE[3224]: chan_iax2.c:5686 register_verify: No
registration for peer 'jonaskellens' (from 192.168.4.169)
[Apr 18 14:07:23] NOTICE[3223]: chan_iax2.c:5686 register_verify: No
registration for peer 'jonaskellens' (from 192.168.4.169)
[Apr 18 14:07:23] NOTICE[3225]: chan_iax2.c:5686 register_verify: No
registration for peer 'jonaskellens' (from 192.168.4.169)
[Apr 18 14:07:23] NOTICE[3227]: chan_iax2.c:5686 register_verify: No
registration for peer 'jonaskellens' (from 192.168.4.169)
[Apr 18 14:07:23] NOTICE[3229]: chan_iax2.c:5686 register_verify: No
registration for peer 'jonaskellens' (from 192.168.4.169)
[Apr 18 14:07:23] NOTICE[3221]: chan_iax2.c:5686 register_verify: No
registration for peer 'jonaskellens' (from 192.168.4.169)
[Apr 18 14:07:23] NOTICE[3228]: chan_iax2.c:5686 register_verify: No
registration for peer 'jonaskellens' (from 192.168.4.169)
[Apr 18 14:07:23] NOTICE[3222]: chan_iax2.c:5686 register_verify: No
registration for peer 'jonaskellens' (from 192.168.4.169)
...

My iax.conf-file :

[root at asterisk asterisk]# cat iax.conf
[general]
autokill=yes
bindport=4569
bindaddr=0.0.0.0

[Jonas]
type=friend
host=dynamic
;auth=md5
username=jonaskellens
password=zoiper
callerid="Jonas Kellens" <100>
context=intern
disallow=all
allow=gsm
allow=speex
allow=alaw

On the CLI :

Verbosity is at least 20
asterisk*CLI> iax2 reload
  == Parsing '/etc/asterisk/iax.conf': Found
[Apr 18 14:12:49] NOTICE[3502]: chan_iax2.c:10124 set_config: Ignoring
bindport on reload
[Apr 18 14:12:49] NOTICE[3502]: chan_iax2.c:10183 set_config: Ignoring
bindaddr on reload
  == Parsing '/etc/asterisk/users.conf': Found
  == Loaded firmware 'iaxy.bin'
  == Parsing '/etc/asterisk/iaxprov.conf': Found
    -- Loaded provisioning template 'default'
asterisk*CLI> iax2 show peers
Name/Username    Host                 Mask             Port          Status

Jonas/jonaskell  (Unspecified)   (D)  255.255.255.255  0
Unmonitored
1 iax2 peers [0 online, 0 offline, 1 unmonitored]

Why would Asterisk ignore the bindport ???

[root at asterisk asterisk]# netstat -anup | grep 4569
udp        0      0 0.0.0.0:4569                0.0.0.0:*
3097/asterisk 

Asterisk is listening on port 4569 on all interfaces (eth0 and eth1).


The log of my Zoiper-softphone tells this :

02:26:33 PM: discover network type : Port restricted NAT


I hope there's a solution for this 'problem' ?!

Google sends me to http://bugs.digium.com/view.php?id=14867 where there is
no solution...

Jonas. 



 
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
 
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090418/863bb585/attachment-0001.htm 


More information about the asterisk-users mailing list