Documentation for dialplan?

Hello

My question seem maybe stupid and i am sorry for that.

I work with asterisk since a long time And i would like to test freepbx.

About the sip.conf, it seem that i have to configure it in the extension choice.

But where can i insert my dialplan ??? usually i done that in extension.conf but i really don’t find the similare choice in freepbx gui.

Is there somewhere (i have searched but not found) a documentation about this point ?

Thank you for your help.

What dialplan do you want to add. Normally FreePBX takes care of adding all the dialplan automatically.

is there a documentation that tell me how to do that ?

this is a part of my dialplan :
is it possible to do something like that with freepbx ?

exten => 01xxxxxxxxx,1,Verbose(${SIP_HEADER})
same => n,Verbose(${CALLERID(number)})
same => n,Answer()
same => n,Wait(1)
same => n,GotoIfTime(18:00-09:00,,,?personne1)
same => n,GotoIfTime(12:30-13:30,
,,?personne1)
same => n,GotoIfTime(,sat-sun,,*?personne1)
same => n,Playback(accc)
;same => n,Set(foo=${CURL(http://bo.xxxxxxx.fr/estla.php?user=5)})
;same => n,NoOp(${foo})
;same => n,GotoIf($[${foo} = 1]?Cestla:Cpasla)
same => n(Cestla),Dial(SIP/cor,45,tTkK)
same => n(Cpasla),Set(foo=${CURL(http://bo.xxxxxxxx.fr/estla.php?user=2)})
same => n,NoOp(${foo})
same => n,GotoIf($[${foo} = 1]?Eestla:Epasla)
same => n(Eestla),Dial(SIP/em,15,tTkK)
same => n(Epasla),Dial(SIP/so&SIP/em&SIP/co,15,tTkK)
same => n,Dial(SIP/Maison,15,tTkK)
same => n(personne1),VoiceMail([email protected],us)

I don’t want that someone does that for me. I want to understand how is the logic of free pbx so i can insert that myself on my freepbx server. I want to learn how to do all i need myself. But i don’t understand the logic of freepbx (sorry if i seem stupid…)

One of the primary reasons one would use FreePBX is to avoid having to hand write dial plan.

If you want to learn how to program dial plan you might be better off using a plain old install of Asterisk.

exten => 01xxxxxxxxx,1,Verbose(${SIP_HEADER})
same => n,Verbose(${CALLERID(number)})

^^^ That doesn’t really do anything but log stuff… FreePBX logs stuff so yes this is possible

same => n,Answer()
same => n,Wait(1)

^^^ Depends on where you are putting the call

same => n,GotoIfTime(18:00-09:00,,,*?personne1)
same => n,GotoIfTime(12:30-13:30,,,*?personne1)
same => n,GotoIfTime(,sat-sun,,*?personne1)

^^^ Time conditions and time groups

same => n,Playback(accc)

^^^System recordings

;same => n,Set(foo=${CURL(http://bo.xxxxxxx.fr/estla.php?user=5)})
;same => n,NoOp(${foo})
;same => n,GotoIf($[${foo} = 1]?Cestla:Cpasla)

^^^random commented out dialplan… no need for that


same => n(Cestla),Dial(SIP/cor,45,tTkK)

^^^Outbound Route + Trunk or extension… depends what this hopes to dial

same => n(Cpasla),Set(foo=${CURL(http://bo.xxxxxxxx.fr/estla.php?user=2)})
same => n,NoOp(${foo})
same => n,GotoIf($[${foo} = 1]?Eestla:Epasla)

^^^No idea what your purpose is here…

same => n(Eestla),Dial(SIP/em,15,tTkK)
same => n(Epasla),Dial(SIP/so&SIP/em&SIP/co,15,tTkK)
same => n,Dial(SIP/Maison,15,tTkK)
same => n(personne1),VoiceMail([email protected],us)

^^^over all I am suprised some of this works now as it is kinda terrible inbound routes + extensions + ringgroups

Don’t feel discouraged, Le Parisienn :smile:
-)

Before digging into FreePBX, you might want to start with:-

http://wiki.freepbx.org/

It will explain to a seasoned Asterisk user how the asterisk dialp;lan is abstracted into the included “*custon.conf” files, Vraiment, c’est en anglais, mais il ya toujours google.fr

thank you for your help.

For jfinstrom : the curl part is to check on a web site if an employee (each employé have a user number) is at the office or not before connecting his phone.

this code just check if employee 5 is in office… if not it check if employee 2 is in office and if none of them are here, it fo a group ringing.

as i understand, i have to put the modules one after each other to do a “calling track” to create a “dial plan” with freepbx.

Once it is done, is there a something that can show me visually (like a diagram) what i have made for each trunk ?

Thank you

(sorry if my english is not good when i write i try to do my best but for dicko, i read and understand english perfectly !!!)