# Can not register with IAX provider

**URL:** <https://community.asterisk.org/t/can-not-register-with-iax-provider/39154>\
**Category:** Asterisk Support\
**Created:** [May 7, 2012, 5:35pm UTC](https://community.asterisk.org/t/can-not-register-with-iax-provider/39154 "2012-05-07T17:35:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/asterisk/original/2X/4/475d0c889911cfb84ac4881ad6df8b523e3f9105.png) [@system](https://community.asterisk.org/u/system)\
**Post date:** [May 7, 2012, 5:35pm UTC](https://community.asterisk.org/t/can-not-register-with-iax-provider/39154/1 "2012-05-07T17:35:07Z")

</div>

I have set up an Asterisk server on my LAN and want to connect to our IAX service provider. (My environment is: asterisk 1.8.10.1, centos 5 with kernel 2.6.18-308.1.1.el5PAE and my firewall have opened udp 4569 for IAX2) however, when I type “iax2 show registry” at console, it shows unregistred. when I turn on debug on and I got these:

Tx-Frame Retry[003] – OSeqno: 000 ISeqno: 000 Type: IAX Subclass: REGREQ  
Timestamp: 00004ms SCall: 02549 DCall: 00000 [209.217.98.158:4569]  
USERNAME : 4161  
REFRESH : 60

Tx-Frame Retry[000] – OSeqno: 000 ISeqno: 000 Type: IAX Subclass: POKE  
Timestamp: 00016ms SCall: 00572 DCall: 00000 [209.217.98.158:4569]

Tx-Frame Retry[001] – OSeqno: 000 ISeqno: 000 Type: IAX Subclass: POKE  
Timestamp: 00016ms SCall: 00572 DCall: 00000 [209.217.98.158:4569]

Tx-Frame Retry[000] – OSeqno: 000 ISeqno: 000 Type: IAX Subclass: REGREQ  
Timestamp: 00007ms SCall: 02376 DCall: 00000 [209.217.98.158:4569]  
USERNAME : 4164790461  
REFRESH: 60

Tx-Frame Retry[001] – OSeqno: 000 ISeqno: 000 Type: IAX Subclass: REGREQ  
Timestamp: 00007ms SCall: 02376 DCall: 00000 [209.217.98.158:4569]  
USERNAME : 4161  
REFRESH : 60  
So, could any one can help me? Also the following are my configurations and diaplan.

Context of Iax.conf:

[general]  
iaxcompat=yes  
nochecksums=no  
delayreject=yes  
language=en  
bandwidth=high

disallow=all  
allow=ulaw

jitterbuffer=yes  
forcejitterbuffer=yes  
maxjitterbuffer=1000  
maxjitterinterps=10  
resyncthreshold=1000

trunktimestamps=yes  
minregexpire = 120  
maxregexpire = 300

iaxthreadcount = 256  
iaxmaxthreadcount = 256  
register =\> username:password@iaxserver

[4161]  
type=user  
context=4161-in

[outsideserver]  
type=peer  
username=username  
secret=password

Context of extensions.conf:

[general]  
static=yes  
writeprotect=no  
clearglobalvars=no

[globals]

[default]

exten =\> \_X.,1,Hangup(3)

[sipdefault]

exten =\> \_X.,1,Hangup(3)

[4161-in]  
exten =\> 4161,1,Dial(SIP/820,30)  
exten =\> 4161,n,Goto(in4161-${DIALSTATUS},1)  
exten =\> 4161,n,Hangup  
exten =\> in4161-BUSY,1,Hangup(17)  
exten =\> in4161-CONGESTION,1,Hangup(3)  
exten =\> in4161-CHANUNAVAIL,1,Hangup(3)  
exten =\> in4161-NOANSWER,1,Hangup(16)  
exten =\> \_in4161-.,1,Hangup(16)

[internal]

exten =\> \_NXXNXXXXXX,1,SetCallerPres(allowed)  
exten =\> \_NXXNXXXXXX,n,Set(CALLERID(all)=soil \<4164790461\>)  
exten =\> \_NXXNXXXXXX,n,Dial(IAX2/username:password@iaxserver/

${EXTEN},60)  
exten =\> \_NXXNXXXXXX,n,Goto(out1-${DIALSTATUS},1)  
exten =\> \_NXXNXXXXXX,n,Hangup  
exten =\> out1-BUSY,1,Hangup(17)  
exten =\> out1-CONGESTION,1,Hangup(3)  
exten =\> out1-CHANUNAVAIL,1,Hangup(3)  
exten =\> out1-NOANSWER,1,Hangup(16)  
exten =\> \_out1-.,1,Hangup(16)

[sip]  
exten =\> 820,1,dial(sip/820)  
exten =\> 821,1,dial(sip/821)

```
.
.
.
```

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/asterisk/original/2X/4/475d0c889911cfb84ac4881ad6df8b523e3f9105.png) [@system](https://community.asterisk.org/u/system)\
**Post date:** [May 8, 2012, 12:35pm UTC](https://community.asterisk.org/t/can-not-register-with-iax-provider/39154/2 "2012-05-08T12:35:33Z")

</div>

Nobody has any idea? I really appreciate any hints.

---

<div class="post-metadata">

**Author:** ![david55](https://avatars.discourse-cdn.com/v4/letter/d/e19adc/32.png) [@david55](https://community.asterisk.org/u/david55)\
**Post date:** [May 8, 2012, 2:51pm UTC](https://community.asterisk.org/t/can-not-register-with-iax-provider/39154/3 "2012-05-08T14:51:51Z")

</div>

The 24 hour bump period is not up yet. Most people use SIP with providers and IAX internally.

A competent provider should provide support for connecting to their service, and as IAX is Asterisk specific, they should be able to do that for Asterisk users.

---

<div class="post-metadata">

**Author:** ![ianplain](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/ianplain/32/1776_2.png) [@ianplain](https://community.asterisk.org/u/ianplain)\
**Post date:** [May 9, 2012, 10:11am UTC](https://community.asterisk.org/t/can-not-register-with-iax-provider/39154/4 "2012-05-09T10:11:44Z")

</div>

Hi I would check your firewall as I can only see tx frames and no rx frames.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/asterisk/original/2X/4/475d0c889911cfb84ac4881ad6df8b523e3f9105.png) [@system](https://community.asterisk.org/u/system)\
**Post date:** [May 9, 2012, 12:56pm UTC](https://community.asterisk.org/t/can-not-register-with-iax-provider/39154/5 "2012-05-09T12:56:00Z")

</div>

> [@ianplain](#):
>
> Hi I would check your firewall as I can only see tx frames and no rx frames.

Thanks, I am agree with you , but I couldn’t get access to firewall, the only thing I can do is using nmap and find that port 4569 is open. Also, my boss don’t want to me do anything on firewall or router. So, I just want to make sure that should I add any NAT related configuration. Otherwise, if it is indeed to do some configuration on firewall or router, could you give me a solution to try. Thanks in advance.

---

<div class="post-metadata">

**Author:** ![pmlco](https://avatars.discourse-cdn.com/v4/letter/p/c6cbf5/32.png) [@pmlco](https://community.asterisk.org/u/pmlco)\
**Post date:** [May 10, 2012, 6:02am UTC](https://community.asterisk.org/t/can-not-register-with-iax-provider/39154/6 "2012-05-10T06:02:02Z")

</div>

In addition to opening port 4569, you need to configure the router to route packets to the address of your Asterisk server.

Ian
