How to set up inbound calls in asterisk with DDI ?

Any and all non-support discussions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

How to set up inbound calls in asterisk with DDI ?

Postby ostas » Mon Apr 08, 2013 11:20 am

Hi,

I have an issue I am struggling with longer time.

I need to set up inbound calls for DDI and relate to the internal number.

I have the following configuration in extensions.conf

[ipfon]

exten => _X.,1,SIPAddHeader(X-Fid: ${SIPCALLID})
exten => _X.,2,Dial(sip/${EXTEN}@ipfon)
exten => przychodzace,3,Set(TOHDR=${SIP_HEADER(To)})
exten => przychodzace,4,Gotoif($["${REGEX("XXXXXXXX" ${TOHDR})}" = "1"]?wewnetrzne,200,1)
exten => t,5,Hangup
exten => h,1,Hangup


[tel1]
include => wewnetrzne

exten => _X.,1,Set(CALLERID(num)=XXXXXXXX)
exten => _X.,2,Dial(SIP/${EXTEN}@ipfon)
exten => t,3,Hangup
exten => h,4,Hangup


[wewnetrzne]
exten => 200,1,Dial(SIP/user1,45,Tf)


sip.conf is the following:

register => user:passwd@sip.voip.pl/przychodzace
[ipfon]
type=peer
username=user
secret=passwd
outboundproxy=sip.voip.pl
outboundproxyport=5060
fromdomain=sip.voip.pl
fromuser=user
context=ipfon
host=sip.voip.pl
port=5060
isecure=port,invite
sendrpid=yes
allowguest=no
disallow=all
allow=alaw
allow=ulaw
allow=g729
insecure=no
nat=no

[user1]
context=tel1
type=friend
username=user1
secret=1234
callerid="200" <200>
host=dynamic
nat=no
accountcode=Jacek
disallow=all
allow=alaw


I would really appreciate your help what may be wrong that I still can hear only music when calling inbound ???

Thank you in advance, Jacek
ostas
 
Posts: 17
Joined: Wed Sep 19, 2012 7:27 am

Re: How to set up inbound calls in asterisk with DDI ?

Postby williamconley » Mon Apr 08, 2013 1:04 pm

You have several challenges: First, you have edited your extensions.conf file which is not how you accomplish this task. To point a DID to a Phone Extension, you create the DID in the DID menu and set the route for the DID to "phone" and set the phone field to the phone extension you want to ring. You can also set the route to "extension" and set the route to the dial plan number of the phone. All of this is covered in the Vicidial manager's Manual so I won't go into greater detail, as that is after all what the Manual is for. Remember: If you are thinking about modifying a .conf file, you should avoid this at all costs. It has not been necessary to modify a conf file directly in Vicidial for several years. :)

Second: You have not listed any information regarding your system (are you on Vicidial 2.0.3? or perhaps 2.6?).

I will assume this means you are a newbie, and as such you need some newbie suggestions to make this easier:

when you post, please post your entire configuration including (but not limited to) your installation method and vicidial version with build.

this IS a requirement for posting along with reading the stickies (at the top of each forum) and the manager's manual (available on EFLO.net, both free and paid versions)

You should also post: Asterisk version, telephony hardware (model number is helpful here), cluster information if you have one, and whether any other software is installed in the box. If your installation method is "from scratch" you must post your operating system and should also post the .iso version from which you installed your original operating system. If your installation is "Hosted" list the site name of the host.

If this is a "Cloud" or "Virtual" server, please note the technology involved along with the version of that techology (ie: VMware Server Version 2.0.2). If it is not, merely stating the Motherboard model # and CPU would be helpful.

Similar to This:

Vicibox X.X from .iso | Vicidial X.X.X-XXX Build XXXXXX-XXXX | Asterisk X.X.X | Single Server | No Digium/Sangoma Hardware | No Extra Software After Installation | Intel DG35EC | Core2Quad Q6600
______________

My advice to you is to begin at the first page of the Vicidial Manager's Manual and do all the tutorials on every page (don't skip anything, especially the stuff you don't think you need). When everything works as you want it to, stop ... but do not "skip ahead" to get something you need as you will invariable skip something you needed and end up back here. LOL

When you bump into your first problem, bring us the Manual Version, Page Number, Line Number that you are on and a detailed description of the error condition, including a copy/paste of any error readings. You can also bring us the Asterisk Command Line output if that is relevant ... but not 3000 lines of unrelated code, of course, just the output from a single test call demonstrating your problem.

And we'll be able to walk you through your solution. :)

Happy Hunting.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: How to set up inbound calls in asterisk with DDI ?

Postby ostas » Mon Apr 08, 2013 2:32 pm

Vicidila v.3.1.15 release.

I have doing it due to I need to have normal telephones with possibility for public subscribers to call back with DID number.

There is no such possibility to set up such configuration within vicidial I think. I can work in outbound or inbound mode, not in both ways at a time.

That's the reason I decided to make changes in the very asterisk sip and extensions files.

Thanks, Jacek
ostas
 
Posts: 17
Joined: Wed Sep 19, 2012 7:27 am

Re: How to set up inbound calls in asterisk with DDI ?

Postby williamconley » Mon Apr 08, 2013 3:26 pm

Yes it can be set up that way. Follow the manual for setup all the way through the DID area at least.

Good job posting your installer version (Vicibox 3.1.15). Pleae also post your Vicidial Version with Build which is available on almost all the admin screens in the bottom left corner.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: How to set up inbound calls in asterisk with DDI ?

Postby ostas » Tue Apr 09, 2013 12:58 am

Hi,

It is: VERSION: 2.6-352c BUILD: 120914-1357.

So direction I have made is proper. Nonetheless I can't figure out what is wrong with my configuration. Probably I am making slight mistake.

Regards, Jacek
ostas
 
Posts: 17
Joined: Wed Sep 19, 2012 7:27 am

Re: How to set up inbound calls in asterisk with DDI ?

Postby williamconley » Tue Apr 09, 2013 8:31 am

download the Vicidial Manager's Manual from EFLO.net (free). Start at page one of this free manual while using this free software and invest your time in completing every page of the manual as if it were a tutorial that cost you $125k. Don't skip anything (especially the stuff you're sure you don't need). Either you will get all the way through the manual and have what you need to set up the system the way you like, or you'll hit a "bump" on the way through the tutorial. Bring us the Manual version, the Page and the Line you are on along with your error reading and we'll walk you through completion.

If you finish and have a question on how to complete your configuration, at least at this point you'll be well-versed in all the tools needed and we'll be able to show you how to use them.

Happy Hunting ;)
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to General Discussion

Who is online

Users browsing this forum: Google [Bot] and 19 guests