Probelm with incoming calls to my DID-Please help me

Hi friends,

Thank you to all for your response and cooperation to me. I have a doubt.

We have registered with Teliax and got DID number. We are making calls to USA successfully using your service. But, We are unable to receive incoming calls to our DID. Here I am sending my config files and error message on Asterisk console.

Contents in IAX.CONF file:

disallow=all
allow = ulaw

[general]
register => teliaxusername:teliaxpassword@voip-co1.teliax.com

[teliax]
context=telincoming
type=friend
host=voip-co1.teliax.com
auth=md5
secret=teliaxpassword
disallow=all
allow=ulaw
allow=alaw
allow=gsm

Contents in Sip.conf file:

[105]
type=friend
username=105
secret=ravi
callerid="RaviKanth"
host=dynamic
context=leader
canreinvite=no
nat=yes
dtmfmode=rfc2833
allow=all
mailbox=605@vmail

[107]
type=friend
username=107
secret=suresh
callerid="Suresh"
host=dynamic
context=administration
canreinvite=no
nat=yes
dtmfmode=rfc2833
allow=all
mailbox=607@vmail

Contents in Extensions.conf file:

[telincoming]
exten => 303xxxxxxx, 1, Answer()
exten => 303xxxxxxx, n, Wait,2
exten => 303xxxxxxx, n, Goto(incoming,s,1)
include => internal
include => incoming

[incoming]
exten => s,1,Wait(3)
exten => s,n,Answer
exten => s,n,SetMusicOnHold(default)
exten => s,n,Set(TIMEOUT(digit)=5)
exten => s,n,Set(TIMEOUT(response)=10)
exten => s,n,Background(/tmp/virg2)
exten => s,n,Goto(s,1)
exten => s,n,Hangup()
include => internal

[internal]
exten => 105,1,SetMusicOnHold(default)
exten => 105,2,Dial(SIP/105,7,t,m,T)
exten => 1605,1,VoiceMailMain(605@vmail)
exten => 105,3,VoiceMail(605@vmail)
exten => 105,4,Hangup

exten => 107,1,SetMusicOnHold(default)
exten => 107,2,Dial(SIP/107,7,t,m,T)
exten => 1607,1,VoiceMailMain(607@vmail)
exten => 107,3,VoiceMail(607@vmail)
exten => 107,4,Hangup

[uscall]
exten => _1XXXXXXXXXX,1,DIAL(IAX2/teliaxusername@teliax/${EXTEN},30,tr)

[manager]
include => uscall
include => internal

The error message on Asterisk console:

*CLI> – Executing Dial(“SIP/105-007951e0”, “IAX2/teliaxusername@teliax/1303xxxxxxx|30|tr”) in new stack
– Called teliaxusername@teliax/1303xxxxxxx
– Call accepted by 207.174.202.2 (format ulaw)
– Format for call is ulaw
– IAX2/teliax-1 is ringing
– IAX2/teliax-1 is making progress passing it to SIP/105-007951e0
– IAX2/teliax-1 is ringing
– IAX2/teliax-1 is busy
– Hungup ‘IAX2/teliax-1’
== Everyone is busy/congested at this time (1:1/0/0)
== Auto fallthrough, channel ‘SIP/105-007951e0’ status is ‘BUSY’

What is the problem? Can you please tell me the solution. Looking forward to your response. Thank you.

Regards,
Chandra.

Hi,

Can you try,

[telincoming]
exten => _303xxxxxxx, 1, Answer()
exten => _303xxxxxxx, n, Wait,2
exten => _303xxxxxxx, n, Goto(incoming,s,1)
include => internal
include => incoming
(note the underscore before the 303)

Hi,

Thank you for your response. I tried as suggested by you and with _X., also. But, Its not working. I also posted this question to Teliax people. They told me as below:

You are not fully registered to us. Your IP is not shown on a show peer
command. There is something missing in your set up. You must
register the IP to complete the call traffic.

Now, what I have to do? Can I configure any otherfiles in Asterisk? Please do needful. Looking forward to your response. Thank you.

Regards,
Chandra.

Ok, in that case, this has something to do with your registration.
Please make sure that you are properly registered, you can try:

CLI> sip show registry

and check if you are indeed registered… Also check the password in your register configuration in [general]

My suggestion is to simplify first your configuration to isolate the problem.

[telincoming]
exten => 303xxxxxxx, 1, Dial(SIP/105)

or
[telincoming]
exten => _303xxxxxxx, 1, Dial(SIP/105)

and see if your extension 105 will ring. If this rings, then just go on with bells and whistles.

Hi,

As both of you said, I tried. But, Its not working. My password is also correct. After executing the below commands

sip show registry
iax2 show registry

I am not getting any list. What I have to do register with Teliax?
Thank you.

Regards,
Chandra.

Hi,

Can you see any register message attempt being made at the CLI?
When you issue “iax2 show registry” can you see the state if its refused, etc.?
Also, please make sure the you do “iax2 reload” after changing the parameters in iax.conf.
And if all else fails, please ask your provider on how to make the correct registration.

Make sure your firewall is either disabled, or allowing IAX to pass. It looks as though outgoing calls work, make sure your firewall allows IAX2 incoming packets.

Hi,

As you said, I executed the below commands. But, its not showing anything.

set verbose 3
iax2 reload
iax2 show registry
sip show registry

I asked teliax people. But, they told me that our configuration is correct. How can i know that my firewall is allowing IAX packets or not? Thank you.

Regards,
Chandra.

If you have the port open on your firewall (4569 I think) then you should be able to recevie calls on IAX. it sounds like you are not registered with teliax though if you do an IAX show registry and nothing appears then your IAX.conf is not getting parsed correctly and I would check that you can try a restart or a stop and then start asterisk with asterisk -vvvvvvc and watch for the parse of the conf file that this registration is in. you said you can make calls but not recieve them so you can obviously see teliax so if your config is getting parsed correctly then you should be able to register with them.

HTH

Jag5x5