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

2009-05-04 Thread jonas . kellens
Gavin,

My Asterisk-server has 2 interfaces :

- eth0 = LAN-interface (for SIP-phones to register)
- eth1 = WAN-interface (for IAX-trunking to IAX-provider)

Asterisk is behind NAT (has internal IP-address 192.168.3.248 for WAN_if)

SETUP :

m0n0wall 192.168.3.250 -- 192.168.3.248 (WAN)-Asterisk-(LAN) 192.168.4.248 -- 
LAN-switch

But removing the NAT and connecting directly to the internet does not make that 
my Asterisk-server gets registered with the Asterisk-box of my IAX-provider...

If Asterisk only binds IAX to the eth0-interface... I can maybe change eth0 to 
be my WAN-interface (IAX), and eth1 to be my LAN-interface (SIP)... ??

Greetingz,
Jonas.

>- Oorspronkelijk bericht -
>Van
: Gavin Henry [mailto:gavin.he...@gmail.com]
>Verzonden
: maandag
, mei
 4, 2009 10:46 AM
>Aan
: 'Asterisk Users Mailing List - Non-Commercial Discussion'
>Onderwerp
: Re: [asterisk-users] Can someone help me with my IAX-registration
>
>Is your box on a public ip or via nat? If eth0 isn't the ip you set it
>to bind on it will ignore it.
>
>I mean, is your * box on an internal address?
>




___
-- 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


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

2009-05-04 Thread Gavin Henry
Is your box on a public ip or via nat? If eth0 isn't the ip you set it
to bind on it will ignore it.

I mean, is your * box on an internal address?

On 02/05/2009, 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-passw...@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: 0 [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: 0 [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: 0 [62.213.196.38:4569]
>USERNAME: cstore
>REFRESH : 60
>
> IAX status :
>
> asterisk*CLI> iax2 show registry
> Host   dnsmgr  UsernamePerceived
> Refresh   State
> 62.213.196.38:4569N   cstore 60
> Request Sent
>
> Host   dnsmgr  UsernamePerceived
> Refresh  State
> 62.213.196.38:4569N   cstore 60
> Timeout
>
>
> Thanks for the help,
> Jonas.
>

-- 
Sent from my mobile device

http://www.suretecsystems.com/services/openldap/

___
-- 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


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

2009-05-04 Thread jonas . kellens
Thanks for the feedback !

I know the IP-address of my Asterisk-server.
The WAN-interface of my Asterisk-box is set manually (ifcfg-eth1).
I have port 4569 forwarded on my NAT/firewall.

Strangely I have the same 'notice' when being attached directly to the internet 
(so no firewall in between).
And set my WAN-interface to the IP I get from my ISP or even when obtained by 
DHCP.
Doesn't solve a thing.

I would like to bind Asterisk IAX to 1 IP-address, namely my WAN-interface.
All my internal SIP-phones contact Asterisk through SIP, never IAX.
Only my WAN-interface talks IAX2 with my IAX-provider.

So binding to all interfaces... I would rather not.

In IP-tables, port 4569 is open for WAN-interface. port 5060 is open for SIP on 
LAN-interface, also 1:2 is open for RTP on LAN-interface.

So the binding-warning... doesn't make sense to me.

Now for the problem of connecting to my IAX-provider :

- I can ping the IP-address of the remote Asterisk-server
- Cannot test netcat right now, but will do this evening.
- I have send my IAX-provider an email asking for their iax.conf...
- My Asterisk-server is able to contact the remote Asterisk-server but 
registration is rejected... (REGREJ on CLI). I personally think there is a 
configuration error in my user-account in their iax.conf-file ...


Greetingz,
Jonas.


>- Oorspronkelijk bericht -
>Van
: Steve Edwards [mailto:asterisk@sedwards.com]
>Verzonden
: maandag
, mei
 4, 2009 09:24 AM
>Aan
: stev...@moij.biz, 'Asterisk Users Mailing List - Non-Commercial Discussion'
>Onderwerp
: Re: [asterisk-users] Can someone help me with my IAX-registration
>
>On Mon, 4 May 2009, Steven J. Douglas wrote:
>
>> 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.
>
>You are assuming that he does not know the address that will be assigned 
>by his DHCP server. I use DHCP to assign all addresses, both fixed and 
>leased.
>
>Leaving out bindaddr means "bind to 0.0.0.0" -- all addresses on the box.
>
>We haven't heard back if basic connectivity can be established.
>
>) Can you ping box a from box b? How about box b from box a? Not all ISPs 
>pass pings, so this test is not conclusive.
>
>) Can you use nc (Netcat) to send and receive packets on port 4569 from 
>box a to box b and vice versa? (Do this with Asterisk stopped on both 
>boxes.) If you can't, there may be some firewall you are not aware of in 
>your way. Once you identify the firewall, poke a hole for 4569 and then 
>restart the firewall.
>
>Thanks in advance,
>
>Steve Edwards  sedwa...@sedwards.com  Voice: +1-760-468-3867 PST
>Newline Fax: +1-760-731-3000



___
-- 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


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

2009-05-04 Thread Steve Edwards
On Mon, 4 May 2009, Steven J. Douglas wrote:

> 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.

You are assuming that he does not know the address that will be assigned 
by his DHCP server. I use DHCP to assign all addresses, both fixed and 
leased.

Leaving out bindaddr means "bind to 0.0.0.0" -- all addresses on the box.

We haven't heard back if basic connectivity can be established.

) Can you ping box a from box b? How about box b from box a? Not all ISPs 
pass pings, so this test is not conclusive.

) Can you use nc (Netcat) to send and receive packets on port 4569 from 
box a to box b and vice versa? (Do this with Asterisk stopped on both 
boxes.) If you can't, there may be some firewall you are not aware of in 
your way. Once you identify the firewall, poke a hole for 4569 and then 
restart the firewall.

Thanks in advance,

Steve Edwards  sedwa...@sedwards.com  Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000

___
-- 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


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

2009-05-03 Thread Steven J. Douglas
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-passw...@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: 0 [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: 0 [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: 0 [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:4569N   cstore 
> 60   Request Sent
>
> Host   dnsmgr  Username
> Perceived Refresh  State
> 62.213.196.38:4569N   cstore 
> 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



___
-- 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


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

2009-05-03 Thread Steve Edwards
On Sun, 3 May 2009, --[ UxBoD ]-- wrote:

> - "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...

> Can you telnet to the remote Asterisk host on port 4569 ???

IAX is UDP. Telnet is TCP. This is wrong.

You can use Netcat (nc) to set up a UDP listener on one host and use nc on 
the other host to connect to the first host.

See the man page for nc.

Thanks in advance,

Steve Edwards  sedwa...@sedwards.com  Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000

___
-- 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


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

2009-05-03 Thread --[ UxBoD ]--
- "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-passw...@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: 0 [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: 0 [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: 0 [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  60 Request Sent 
> 
> Host dnsmgr Username Perceived Refresh State 
> 62.213.196.38:4569 N cstore  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 
> 
Can you telnet to the remote Asterisk host on port 4569 ???


Best Regards,

-- 
SplatNIX IT Services :: Innovation through collaboration

___
-- 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


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

2009-05-02 Thread jonas kellens
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-passw...@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: 0 [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: 0 [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: 0 [62.213.196.38:4569]
   USERNAME: cstore
   REFRESH : 60

IAX status :

asterisk*CLI> iax2 show registry
Host   dnsmgr  UsernamePerceived
Refresh   State
62.213.196.38:4569N   cstore 60
Request Sent

Host   dnsmgr  UsernamePerceived
Refresh  State
62.213.196.38:4569N   cstore 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