[asterisk-users] Can someone help me with my IAX-registration

Steven J. Douglas stevend at moij.biz
Sun May 3 20:43:55 CDT 2009


Hi Jonas,

Maybe you can try leaving out bindport and bindaddr parameters first. 
The port defaults to 4569 anyway. As for the bindaddr, you should be 
using the IP Address of your interfaces. I am assuming you are using the 
IP Address obtained from your router. If that is the case, then asterisk 
will not be able to bind to that address. Leaving out the parameter 
binds asterisk to all interfaces. Give that a try first and see if it 
solves your problem. If it does, then change bindaddr to your actual 
interface ip address.

Regards,
Steve

jonas kellens wrote:
> I have connected my Asterisk-box directly to my internetconnection. I 
> have disabled my firewall.
>
> Still I am unable to register with my IAX-provider. Can someone 
> *please* point me out why I am unable to register my Asterisk to 
> another Asterisk-box ?
> A RegReq is send to the other Asterisk-box but no reply is received... 
> No confirm, no reject...
>
> I have tried yet several configuration in my iax.conf file.
> There is also always the "ignoring bindaddr" and "ignoring 
> bindport"... which doesn't sound right.
>
> What I know from books is that when you want to connect your Asterisk 
> to another Asterisk-box you need to describe this other Asterisk-box 
> as a peer.
> So my iax.conf :
>
> [general]
> autokill=yes
> bindport=4569
> bindaddr=78.22.166.226 ; the IP-address I get from my ISP
>
> register => cstore:my-password at ip-of-other-iax-box
>
> [cstore]
> type=user
> trunk=yes
> context=from-other-iax-box
> disallow=all
> allow=ulaw
> allow=alaw
> allow=gsm
>
> [attractel] ; name I use in extensions.conf to contact other iax-box
> type=peer
> host=ip-address
> username=cstore ; username @ remote asterisk
> secret=my-password ; pass @ remote Asterisk
> auth=plaintext,md5
> trunk=yes
> disallow=all
> allow=ulaw
> allow=alaw
> allow=gsm
>
> IAX reload :
>
> asterisk*CLI> iax2 reload
>   == Parsing '/etc/asterisk/iax.conf': Found
> [May  2 10:34:23] NOTICE[4626]: chan_iax2.c:10124 set_config: Ignoring 
> bindport on reload
> [May  2 10:34:23] NOTICE[4626]: chan_iax2.c:10183 set_config: Ignoring 
> bindaddr on reload
>        > doing dnsmgr_lookup for '62.213.196.38'
>   == Parsing '/etc/asterisk/users.conf': Found
>        > doing dnsmgr_lookup for '62.213.196.38'
>   == Loaded firmware 'iaxy.bin'
>   == Parsing '/etc/asterisk/iaxprov.conf': Found
>     -- Loaded provisioning template 'default'
>
> Is ignoring bindaddr and bindport normal ?????
>
> IAX debug :
>
> Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: 
> REGREQ
>    Timestamp: 00019ms  SCall: 13117  DCall: 00000 [62.213.196.38:4569]
>    USERNAME        : cstore
>    REFRESH         : 60
>
> Tx-Frame Retry[001] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: 
> REGREQ
>    Timestamp: 00019ms  SCall: 13117  DCall: 00000 [62.213.196.38:4569]
>    USERNAME        : cstore
>    REFRESH         : 60
>
> Tx-Frame Retry[002] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: 
> REGREQ
>    Timestamp: 00019ms  SCall: 13117  DCall: 00000 [62.213.196.38:4569]
>    USERNAME        : cstore
>    REFRESH         : 60
>
> IAX status :
>
> asterisk*CLI> iax2 show registry
> Host                           dnsmgr  Username    
> Perceived             Refresh   State
> 62.213.196.38:4569    N           cstore      <Unregistered>       
> 60           Request Sent
>
> Host                           dnsmgr  Username    
> Perceived             Refresh  State
> 62.213.196.38:4569    N           cstore      <Unregistered>       
> 60         Timeout
>
>
> Thanks for the help,
> 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





More information about the asterisk-users mailing list