Καλησπέρα παιδια,
Εαν και δουλεύω FreePBX θελω να στησω Asterisk απο το μηδεν για να μαθω τα ενδοτερα.
οποτε εστησα ενα centos 7 VM και εκανα compile Asterisk 15, libpri και dahdi.
Βλεπω και τα βιβλια asterisk future of telephony και Asterisk- The Definitive Guide, 4th Edition αλλα αυτα αναφερονται σε πολυ παλιες εκδοσεις του Asterisk,
υπαρχει κανενα βιβλιο που να αναφερεται σε νεοτερες εκδοσεις ?
Επισης τα αρχεια sip.conf και extensions.conf οπου εκει εχω το DialPlan μου sτο Freepbx δεν εχει κατι μεσα δεν κραταει εκει τα extensions που δημιουργησα ?
Οτι σεταρει το Freepbx gui τα αποθηκευει καπου αλλου π.χ σε database ?
Γενικα απο οτι καταλαβα το Freepbx δεν εχει καμια σχεση με το Asterisk οσον αφορα την δομη των αρχειων.
Ποιος ειναι ο καλυτερος τρολπος να ξεκινησω με Asterisk καθαρο ?
Εμφάνιση 1-15 από 33
Θέμα: Tutorial Asterisk
-
12-12-17, 16:41 Tutorial Asterisk #1
-
12-12-17, 17:01 Απάντηση: Tutorial Asterisk #2
το definitive guide και προσωπική μου άποψη να πας σε asterisk 11 που δεν έχει pjsip. έτσι ώστε να δεις λίγο τι παίζει, μιας και το βιβλίο φτάνει μέχρι την asterisk 11 έκδοση αν θυμάμαι σωστά. θα σου πρότεινα να φτιάξεις σε χαρτί με απλά βήματα πρώτα τι θέλεις να κάνεις. κατόπιν ψάχνοντας στο βιβλίο θα βρεις άκρη.
πχ
Κώδικας:1. σύνδεση με πάροχο 2. create users 3. connect softphones 4. router DID to extensions 5. in case of busy go to voicemail in busy/unavailable . . . . . n. send voicemail to email as attachment and delete original message . . . . m. send busy to A caller. . . . y. the list goes and goes on.
Τελευταία επεξεργασία από το μέλος atux_null : 12-12-17 στις 17:07.
-
12-12-17, 17:14 Απάντηση: Tutorial Asterisk #3
Βασικα θελω απλα 2 εσωτερικα να κανουν κληση μεταξυ τους για αρχη (θεωρω οτι ειναι ευκολο αυτο) μετα να βαλω και μια καρτα για κληση μεσω ISDN και μετα κανενα απλο IVR και οτι αλλο μπορω για να μαθω.
Το Freepbx γραφει καπου αλλου γιατι ειδα οτι τα sip.conf Και extensions.conf δεν εχουν τιποτα μεσα απο extensions και context.
-
12-12-17, 17:20 Απάντηση: Tutorial Asterisk #4
Οποιαδήποτε έκδοση πάνω από asterisk 1.6 βασίζεται στην ίδια λογική πως χτίζεις το dialplan. Ξεκίνα με το βιβλίο και μην σε απασχολεί αν είσαι στην τελευταία έκδοση.
Το freepbx είναι ένα gui με την δική του δομή, στην ουσία βασίζεται σε macros και database generated dialplan.
Όλο το dialplan του κάθεται στο extensions_additionals, αρχείο που ανανεώνεται κάθε φορά που πατάς apply changes.
Ανανεώνεται με ρυθμίσεις που πέφτουν σε μια mysql στην οποία γράφει το freepbx (σαν web εφαρμογή). Γι αυτό πρέπει να πατάς submit και apply για να περάσουν οι αλλαγές.
Επίσης γι αυτό μερικές φορές μπορεί να μην σου δουλεύει το freepbx αλλά το κέντρο να δουλεύει κανονικά. Ο asterisk πάντα βασίζεται στα αρχεία που έχει στο /etc/asterisk (εκτός κι αν τον τρέχεις σε realtime, κάτι που ποτέ δεν έχω δοκιμάσει! :P)
To extensions.conf δεν μπορεί να είναι τελείως άδειο, αν δεις έχει includes που κολλάνε το extensions_additional στο dialplan που πρέπει να διαβάσει ο asterisk.
Το extensions_custom είναι για dialplan που θες να προσθέσεις αλλά δεν μπορείς να το κάνεις από το gui.
Τέλος τα αρχεία extensions_override_* είναι όταν θες να αλλάξεις κάποιο κομμάτι του extensions_additional. Κάνεις copy paste μέσα στο συγκεκριμένο αρχείο το dialplan που θες να αλλάξεις και το χειρίζεσαι όπως θες.
Έτσι δεν χάνονται οι αλλαγές αλλά επίσης πλέον δεν μπορείς να κάνεις αλλαγές από το gui.
-
12-12-17, 17:35 Απάντηση: Tutorial Asterisk #5
Thanks για την απαντηση.
Θα ξεκινησω με το βιβλιο βημα-βημα με Asterisk 11 και βλεπουμε.
Εχεις δικιο για το extensions στο Freepbx εχει includes απλα δεν το ειδα.
-
14-12-17, 16:51 Απάντηση: Tutorial Asterisk #6
Καλησπερα,
Ξεκινησα να στηνω asterisk οπως λεει το βιβλιο και μεχρι τωρα ουτε τα βασικα δεν εχω καταφερει.
Εκανα εγκατασταση Asterisk 11 απο sources ολα καλα.
Ο Asterisk τρεχει κανονικα
Παω φτιαχνω το sip.conf και προσθετω 2 SIP accounts.
Παω μετα και τους περναω σε 2 τηλεφωνα grandstream και δεν κανει registration κανενα τηλεφωνο παιρνω το εξης μηνυμα //Request Timeout (code: 408)//
Εντωμεταξυ /var/log/asterisk εινιαι αδειο , φανταζομαι πρεπει να ενεργοποιησω καπου logging.
sip show peers βλεπω κανονικα accounts αλλα unspecified και unmonitored στο status.
Τι εχω κανει λαθος ρε παιδια ???
To asterisk.conf πηρα αυτο που εχει στα samples.
-
15-12-17, 17:47 Απάντηση: Tutorial Asterisk #7
Παιδια ενω εχω κανει κανονικα install το Asterisk, /usr/lib/asterisk/modules directory δεν υπαρχει,
Οταν εκανα make menuselect επελεξα ολα τα channel modules.
Εχω κανει κατι λαθος γιατι δεν βγαζω ακρη.
-
15-12-17, 22:25 Απάντηση: Tutorial Asterisk #8
-
16-12-17, 10:53 Απάντηση: Tutorial Asterisk #9
Εκτός από το full log ανέβασε και το extensions.conf, sip.conf και τα αποτελέσματα των εντολών sip show peers, sip show users
Επίσης ένα ψέφτο-σχέδιο στο τι θέλεις να κάνεις.
- - - Updated - - -
Μπορεί να χρειαστεί να κάνεις τα παρακάτω για να μην παρεμβάλετε το pjsip
Disabling res_pjsip and chan_pjsip
You may want to keep using chan_sip for a short time in Asterisk 12+ while you migrate to res_pjsip. In that case, it is best to disable res_pjsip unless you understand how to configure them both together.
There are several methods to disable or remove modules in Asterisk. Which method is best depends on your intent.
If you have built Asterisk with the PJSIP modules, but don't intend to use them at this moment, you might consider the following:
1. Edit the file modules.conf in your Asterisk configuration directory. (typically /etc/asterisk/)
noload => res_pjsip.so
noload => res_pjsip_pubsub.so
noload => res_pjsip_session.so
noload => chan_pjsip.so
noload => res_pjsip_exten_state.so
noload => res_pjsip_log_forwarder.so
2. Having a noload for the above modules should (at the moment of writing this) prevent any PJSIP related modules from loading.
3. Restart Asterisk!
-
18-12-17, 16:40 Απάντηση: Tutorial Asterisk #10
configs.zipΑυτα ειναι τα αρχεια μου asterisk.conf sip.conf και το full log.
Και το outpout για SIP
Κώδικας:localhost*CLI> sip show peers Name/username Host Dyn Forcerport Comedia ACL Port Status Description grandstream (Unspecified) D Yes Yes 0 Unmonitored mobile (Unspecified) D Yes Yes 0 Unmonitored 2 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 2 offline] localhost*CLI>
Κώδικας:[directories](!) astetcdir => /etc/asterisk astmoddir => /usr/lib64/asterisk/modules astvarlibdir => /var/lib/asterisk astdbdir => /var/lib/asterisk astkeydir => /var/lib/asterisk astdatadir => /var/lib/asterisk astagidir => /var/lib/asterisk/agi-bin astspooldir => /var/spool/asterisk astrundir => /var/run/asterisk astlogdir => /var/log/asterisk astsbindir => /usr/sbin [options] ;verbose = 3 ;debug = 3 ;alwaysfork = yes ; Same as -F at startup. ;nofork = yes ; Same as -f at startup. ;quiet = yes ; Same as -q at startup. ;timestamp = yes ; Same as -T at startup. ;execincludes = yes ; Support #exec in config files. ;console = yes ; Run as console (same as -c at startup). ;highpriority = yes ; Run realtime priority (same as -p at ; startup). ;initcrypto = yes ; Initialize crypto keys (same as -i at ; startup). ;nocolor = yes ; Disable console colors. ;dontwarn = yes ; Disable some warnings. ;dumpcore = yes ; Dump core on crash (same as -g at startup). ;languageprefix = yes ; Use the new sound prefix path syntax. ;systemname = my_system_name ; Prefix uniqueid with a system name for ; Global uniqueness issues. ;autosystemname = yes ; Automatically set systemname to hostname, ; uses 'localhost' on failure, or systemname if ; set. ;mindtmfduration = 80 ; Set minimum DTMF duration in ms (default 80 ms) ; If we get shorter DTMF messages, these will be ; changed to the minimum duration ;maxcalls = 10 ; Maximum amount of calls allowed. ;maxload = 0.9 ; Asterisk stops accepting new calls if the ; load average exceed this limit. ;maxfiles = 1000 ; Maximum amount of openfiles. ;minmemfree = 1 ; In MBs, Asterisk stops accepting new calls if ; the amount of free memory falls below this ; watermark. ;cache_record_files = yes ; Cache recorded sound files to another ; directory during recording. ;record_cache_dir = /tmp ; Specify cache directory (used in conjunction ; with cache_record_files). ;transmit_silence = yes ; Transmit silence while a channel is in a ; waiting state, a recording only state, or ; when DTMF is being generated. Note that the ; silence internally is generated in raw signed ; linear format. This means that it must be ; transcoded into the native format of the ; channel before it can be sent to the device. ; It is for this reason that this is optional, ; as it may result in requiring a temporary ; codec translation path for a channel that may ; not otherwise require one. ;transcode_via_sln = yes ; Build transcode paths via SLINEAR, instead of ; directly. runuser = asterisk ; The user to run as. rungroup = asterisk ; The group to run as. ;lightbackground = yes ; If your terminal is set for a light-colored ; background. ;forceblackbackground = yes ; Force the background of the terminal to be ; black, in order for terminal colors to show ; up properly. ;defaultlanguage = en ; Default language documentation_language = en_US ; Set the language you want documentation ; displayed in. Value is in the same format as ; locale names. ;hideconnect = yes ; Hide messages displayed when a remote console ; connects and disconnects. ;lockconfdir = no ; Protect the directory containing the ; configuration files (/etc/asterisk) with a ; lock. ;stdexten = gosub ; How to invoke the extensions.conf stdexten. ; macro - Invoke the stdexten using a macro as ; done by legacy Asterisk versions. ; gosub - Invoke the stdexten using a gosub as ; documented in extensions.conf.sample. ; Default gosub. ;live_dangerously = no ; Enable the execution of 'dangerous' dialplan ; functions from external sources (AMI, ; etc.) These functions (such as SHELL) are ; considered dangerous because they can allow ; privilege escalation. ; Default no ;entityid=00:11:22:33:44:55 ; Entity ID. ; This is in the form of a MAC address. ; It should be universally unique. ; It must be unique between servers communicating ; with a protocol that uses this value. ; This is currently is used by DUNDi and ; Exchanging Device and Mailbox State ; using protocols: XMPP, Corosync and PJSIP. ;rtp_pt_dynamic = 96 ; Normally the Dynamic RTP Payload Type numbers ; are 96-127, which allow 32 formats. When you ; use more and receive the message "No Dynamic ; RTP mapping available", extend the dynamic ; range by going for 35 (or 0) instead of 96. ; This allows 29 (or 64) more formats. 96 is the ; default because any number below might be ; rejected by a remote implementation; although ; no such broken implementation is known, yet. ; Changing the following lines may compromise your security. ;[files] ;astctlpermissions = 0660 ;astctlowner = root ;astctlgroup = apache ;astctl = asterisk.ctl
Κώδικας:[general] transport=udp context=unauthenticated ; default context for incoming calls allowguest=no ; disable unauthenticated calls srvlookup=no ; disable DNS SRV record lookup on outbound calls ; (unless you have a reliable DNS connection, ; in which case yes) udpbindaddr=0.0.0.0 ; listen for UDP requests on all interfaces tcpenable=no ; disable TCP support [office-phone](!) ; create a template for our devices type=friend ; the channel driver will match on username first, ; IP second context=LocalSets ; this is where calls from the device will enter ; the dialplan host=dynamic ; the device will register with asterisk nat=force_rport,comedia ; assume device is behind NAT ; *** NAT stands for Network Address Translation, ; which allows multiple internal devices to share an ; external IP address. dtmfmode=auto ; accept touch-tones from the devices, negotiated ; automatically disallow=all ; reset which voice codecs this device will accept or offer allow=g722 ; audio codecs to accept from, and request to, the device allow=ulaw ; in the order we prefer allow=alaw ; define a device name and use the office-phone template [grandstream](office-phone) secret=paokara77 ; a unique password for this device -- ; define another device name using the same template [mobile](office-phone) secret=paokara78 ; a unique password for this device --
Γενικα διαβαζω το βιβλιο Asterisk Definitive guide και δοκιμαζω αυτα που λεει
Αλλα εδω δεν εχω καταφερει ουτε registration τους sip users κανω και εχω απελπιστει!!!!!!
-
18-12-17, 17:12 Απάντηση: Tutorial Asterisk #11
Ρίξε στο general του sip.conf κανά bindport=5060, πως θα κάνουν register τα τηλέφωνα!
-
18-12-17, 17:37 Απάντηση: Tutorial Asterisk #12
-
18-12-17, 17:54 Απάντηση: Tutorial Asterisk #13
Δώσε
ps aux | grep asterisk
και ανέβασε τι σου βγάζει, αφού όρισες την πόρτα έκανες restart μέσα από το cli ή restart το service;
-
18-12-17, 19:31 Απάντηση: Tutorial Asterisk #14
-
18-12-17, 19:47 Απάντηση: Tutorial Asterisk #15
Η εντολή τι σου βγάζει;
Παρόμοια Θέματα
-
Asterisk Caller ID Lookup απο 11888.gr
Από stereo στο φόρουμ Voice over IP (VoIP) SoftwareΜηνύματα: 239Τελευταίο Μήνυμα: 13-04-24, 12:05 -
[Asterisk-FreePBX] Εμφάνιση ονόματος καλούμενου αριθμού στις εξερχόμενες κλήσεις.
Από kronos911 στο φόρουμ Voice over IP (VoIP) SoftwareΜηνύματα: 20Τελευταίο Μήνυμα: 05-12-21, 17:57 -
SIP SIMPLE Instant messaging - asterisk 13 - freepbx
Από codezero στο φόρουμ Voice over IP (VoIP) SoftwareΜηνύματα: 4Τελευταίο Μήνυμα: 30-05-17, 20:52 -
Διασύνδεση δύο Asterisk servers & remote party id update
Από dimangelid στο φόρουμ Voice over IP (VoIP) SoftwareΜηνύματα: 14Τελευταίο Μήνυμα: 30-05-17, 09:29 -
Σύνδεση Fritzbox με asterisk (capi over tcp)
Από puntomania στο φόρουμ Voice over IP (VoIP) Sip/Iax HardwareΜηνύματα: 3Τελευταίο Μήνυμα: 25-02-17, 19:20
Bookmarks