Page 1 of 1

iax2 inboud dial plan

PostPosted: Tue Dec 18, 2018 5:55 pm
by dreedy
Hello Everyone,

I have worked with SIP outbound and inbound. I have also worked with IAX2 outbound dial plan. I am trying to setup a dialplan for IAX2 inbound but am not having any luck getting the call to route through my dialplan and i think i am on the wrong path. I am wondering if anyone has an example of an inbound dialplan that would work with binfone? if have a IAX debug turned on and this is the output i am getting at this time. i have changed an hidden the phone number and ip address in here.


Thanks,


Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 000 Type: IAX Subclass: NEW
Timestamp: 00043ms SCall: 17722 DCall: 00000 xxx.xxx.xx.xx:4569
VERSION : 2
CALLED NUMBER : 1111111111
CODEC_PREFS : (ulaw|gsm)
CALLING NUMBER : 1111111111
CALLING PRESNTN : 0
CALLING TYPEOFN : 0
CALLING TRANSIT : 0
CALLING NAME : Systems_Inc_Eon
LANGUAGE : en
USERNAME : 1111111111
FORMAT : 4
CAPABILITY : 1799
ADSICPE : 2
DATE TIME : 2018-12-18 17:48:58
CALLTOKEN : 51 bytes

Tx-Frame Retry[-01] -- OSeqno: 000 ISeqno: 001 Type: IAX Subclass: ACK
Timestamp: 00043ms SCall: 01746 DCall: 17722 xxx.xxx.xx.xx:4569
Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 001 Type: IAX Subclass: AUTHREQ
Timestamp: 00008ms SCall: 01746 DCall: 17722 xxx.xxx.xx.xx:4569
AUTHMETHODS : 1
USERNAME : 1111111111

Rx-Frame Retry[ No] -- OSeqno: 001 ISeqno: 001 Type: IAX Subclass: AUTHREP
Timestamp: 00083ms SCall: 17722 DCall: 01746 xxx.xxx.xx.xx:4569
PASSWORD : -------

Tx-Frame Retry[-01] -- OSeqno: 001 ISeqno: 002 Type: IAX Subclass: ACK
Timestamp: 00083ms SCall: 01746 DCall: 17722 xxx.xxx.xx.xx:4569
Tx-Frame Retry[000] -- OSeqno: 001 ISeqno: 002 Type: IAX Subclass: REJECT
Timestamp: 01046ms SCall: 01746 DCall: 17722 xxx.xxx.xx.xx:4569
CAUSE : No authority found
CAUSE CODE : 50

Re: iax2 inboud dial plan

PostPosted: Tue Dec 18, 2018 6:01 pm
by ambiorixg12
I dont use IAX, just but your logs clearly shows you have some authentication issues, on your IAX trunk configuration

CAUSE : No authority found
CAUSE CODE : 50

Re: iax2 inboud dial plan

PostPosted: Wed Dec 19, 2018 10:20 am
by dreedy
Ya i have tried several ways and had no luck that was why i was hoping someone had a working example. I don't use IAX to much.

Re: iax2 inboud dial plan

PostPosted: Wed Dec 19, 2018 12:13 pm
by williamconley
Download Zoiper or KIAX. Set up an IAX Phone in admin -> Phones. Then register your IAX phone and make a few calls. In the iax configuration file you'll see how Vicidial implemented IAX successfully to make that happen. Note that to Asterisk a Phone and a Carrier really aren't different from one another, so you can actually copy those settings from the iax configuration file and modify them to the IP/User/Pass of your carrier pretty easily.

And there are several examples of functional IAX configurations on most asterisk forums as well as buried in the deep past of Vicidial. Been a while since I saw one. IAX carriers are unusual.

Re: iax2 inboud dial plan

PostPosted: Wed Dec 19, 2018 1:08 pm
by ambiorixg12
dreedy wrote:Ya i have tried several ways and had no luck that was why i was hoping someone had a working example. I don't use IAX to much.


There is not template for configurations IAX2 configuration, because scnarios can be differents, depending on your requiments, if you want to see templates read the sample configuration file http://svn.digium.com/svn/asterisk/trun ... onf.sample

Re: iax2 inboud dial plan

PostPosted: Wed Dec 19, 2018 3:54 pm
by dreedy
I have resolved this issue. Took me a day an a half to figure it out. We have used IAX outbound with no issues for some time with this carrier. I add this entry into the carrier account entry. This is the fomat i did in that section.

[xxxxxxxxxx] (phone number)
type=user
context=trunkinbound


This add the entry to the iax-vicidial.conf so that even after a reboot the entry persist.

Re: iax2 inboud dial plan

PostPosted: Wed Dec 19, 2018 4:19 pm
by williamconley
dreedy wrote:I have resolved this issue. Took me a day an a half to figure it out. We have used IAX outbound with no issues for some time with this carrier. I add this entry into the carrier account entry. This is the fomat i did in that section.

[xxxxxxxxxx] (phone number)
type=user
context=trunkinbound


This add the entry to the iax-vicidial.conf so that even after a reboot the entry persist.

excellent postback!