/l3/users/roman-sidorenko/asterisk/debian2/root :1 :2 :3 :4 :5 :6 |
|
#echo TREST | sendxmpp igor@kiev.unix.nt
|
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- Added extension '1' priority 1 to menu4 -- Added extension '1' priority 2 to menu4 -- Added extension '0' priority 1 to menu4 -- Added extension '0' priority 2 to menu4 -- Added extension 't' priority 1 to menu4 == Parsing '/etc/asterisk/users.conf': Found -- Executing [340@default:1] BackGround("SIP/301-083bd958", "/root/megamenu/proba19") in new stack -- <SIP/301-083bd958> Playing '/root/megamenu/proba19' (language 'en') obukhov*CLI> quit Executing last minute cleanups |
#vim extensions.conf
--- /tmp/l3-saved-2648.18856.16106 2009-12-10 14:54:15.000000000 +0200 +++ extensions.conf 2009-12-10 15:23:53.000000000 +0200 @@ -26,7 +26,7 @@ exten => _31X,n,Hangup exten => 340,1,Background(/root/megamenu/proba19) -;exten => 340,1,Answer +exten => 340,1,System(echo You have ZVONOCHEK "${CALLERID})" | sendxmpp -f /root/.sendxmpprc romchiko@obukhov.unix.nt) exten => 340,n,WaitExten() exten => 1,1,Playback(/root/megamenu/proba10) exten => 1,n,Goto(340,1) |
#chown asterisk /var/lib/asterisk/.sendxmpprc
|
#ls -l /var/lib/asterisk/
total 16 -rw-rw---- 1 asterisk asterisk 8192 2009-12-10 15:24 astdb drwxr-xr-x 2 asterisk asterisk 4096 2009-01-04 21:27 moh drwxr-xr-x 3 asterisk asterisk 4096 2009-12-09 10:19 sounds |
#ls -la /var/lib/asterisk/
total 28 drwxr-xr-x 4 asterisk asterisk 4096 2009-12-10 15:25 . drwxr-xr-x 35 root root 4096 2009-12-10 13:30 .. -rw-rw---- 1 asterisk asterisk 8192 2009-12-10 15:24 astdb drwxr-xr-x 2 asterisk asterisk 4096 2009-01-04 21:27 moh -rw------- 1 asterisk root 34 2009-12-10 15:25 .sendxmpprc drwxr-xr-x 3 asterisk asterisk 4096 2009-12-09 10:19 sounds |
#vim extensions.conf
--- /tmp/l3-saved-2648.22723.17914 2009-12-10 15:28:40.000000000 +0200 +++ extensions.conf 2009-12-10 15:29:36.000000000 +0200 @@ -25,8 +25,8 @@ exten => _31X,n,Playback(/root/megamenu/proba${EXTEN:1}) exten => _31X,n,Hangup -exten => 340,1,Background(/root/megamenu/proba19) -exten => 340,n,System(echo You have ZVONOCHEK | sendxmpp -f /var/lib/asterisk/.sendxmpprc romchiko@obukhov.unix.nt) +;exten => 340,1,Background(/root/megamenu/proba19) +exten => 340,1,System(echo You have ZVONOCHEK | sendxmpp -f /var/lib/asterisk/.sendxmpprc romchiko@obukhov.unix.nt) exten => 340,n,WaitExten() exten => 1,1,Playback(/root/megamenu/proba10) exten => 1,n,Goto(340,1) |
#asterisk -rvvvv
![]() Asterisk 1.4.21.2~dfsg-3, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- Called 302 -- SIP/302-083c0340 is ringing -- SIP/302-083c0340 answered SIP/301-083cb2a8 -- Native bridging SIP/301-083cb2a8 and SIP/302-083c0340 [Dec 10 17:45:05] WARNING[19872]: res_musiconhold.c:660 get_mohbyname: Music on Hold class 'default' not found [Dec 10 17:45:05] WARNING[19872]: res_musiconhold.c:660 get_mohbyname: Music on Hold class 'default' not found -- Remote UNIX connection == Spawn extension (macro-jabblog, s, 2) exited non-zero on 'SIP/301-083cb2a8' in macro 'jabblog' == Spawn extension (macro-jabblog, s, 2) exited non-zero on 'SIP/301-083cb2a8' Terminated |
#vim extensions.conf
--- /tmp/l3-saved-2648.29838.15010 2009-12-10 15:31:40.000000000 +0200 +++ extensions.conf 2009-12-10 16:01:21.000000000 +0200 @@ -25,8 +25,8 @@ exten => _31X,n,Playback(/root/megamenu/proba${EXTEN:1}) exten => _31X,n,Hangup -;exten => 340,1,Background(/root/megamenu/proba19) -exten => 340,1,System(echo You have ZVONOCHEK | sendxmpp -f /var/lib/asterisk/.sendxmpprc romchiko@obukhov.unix.nt) +exten => 340,1,Background(/root/megamenu/proba19) +;exten => 340,1,System(echo You have ZVONOCHEK " ${CALLERID(all)} ${STRFTIME(${EPOCH},,%d/\%m/\%Y-%H:%M:%S)} ${CHANNEL}"| sendxmpp -f /var/lib/asterisk/.sendxmpprc romchiko@obukhov.unix.nt) exten => 340,n,WaitExten() exten => 1,1,Playback(/root/megamenu/proba10) exten => 1,n,Goto(340,1) |
#vim /usr/local/bin/jabblog
![]() --- /dev/null 2009-12-09 16:00:07.504275874 +0200 +++ /usr/local/bin/jabblog 2009-12-10 16:06:53.000000000 +0200 @@ -0,0 +1,5 @@ +#!/bin/sh +JABBTABLE=/etc/asterisk/jabbtable + +jid="'grep "$1" $JABTABLE | awk '{print $2}''" +[ -z "$jid" ] || sendxmpp -f /var/lib/asterisk/.sendxmpprv "$jid" |
#ssh root@192.168.102.1
root@192.168.102.1's password: Linux debian4 2.6.26-2-686 #1 SMP Wed Aug 19 06:06:52 UTC 2009 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Thu Dec 10 00:56:24 2009 from 192.168.101.3 l3-agent is already running: pid=2751; pidfile=/root/.lilalo/l3-agent.pid |
#cat /etc/asterisk/jabbtable
201 igor@kiev.unix.nt 203 romchiko@obukhov.unix.nt 221 gib@poltava.unix.nt |
#cat /usr/local/bin/jabblog
#!/bin/sh JABBTABLE=/etc/asterisk/jabbtable jid="`grep "$1" $JABBTABLE | awk '{print $2}'`" [ -z "$jid" ] || sendxmpp -f /var/lib/asterisk/.sendxmpprc "$jid" |
#cd /etc/asterisk/
|
#vim extensions.conf
--- /tmp/l3-saved-2648.18494.30187 2009-12-10 16:06:57.000000000 +0200 +++ extensions.conf 2009-12-10 16:11:06.000000000 +0200 @@ -1,7 +1,12 @@ [default] +[macro-jabblig] +exten => s,1,System(echo Tebe zavonit kakoeto telo "${CALLERID(all)}" | /usr/local/bin/jabblog ${ARG1}) +exten => s,n,Dial(SIP/${ARG1}) + ;exten => _3XX,1,Set(CALLERID(number)=2${CALLERID(number)}) -exten => _3XX,1,Dial(SIP/${EXTEN}) +;exten => _3XX,1,Dial(SIP/${EXTEN}) +exten => _3XX,1,iMacro(jablog,${EXTEN}) exten => _2XX,1,Dial(SIP/fromDeb4/${EXTEN}) |
#vim extensions.conf
--- /tmp/l3-saved-2648.32031.26140 2009-12-10 16:15:56.000000000 +0200 +++ extensions.conf 2009-12-10 16:16:11.000000000 +0200 @@ -8,7 +8,7 @@ ;exten => _3XX,1,Set(CALLERID(number)=2${CALLERID(number)}) ;exten => _3XX,1,Dial(SIP/${EXTEN}) -exten => _3XX,1,Macro(jablog,${EXTEN}) +exten => _3XX,1,Macro(jabblog,${EXTEN}) exten => _2XX,1,Dial(SIP/fromDeb4/${EXTEN}) |
#exten => 222,n,Festival('Vim is a text editor that is upwards compatible to Vi. It can be used to edit all kinds of plain text.
#!/bin/sh JABBTABLE=/etc/asterisk/jabbtable jid="`grep "$1" $JABBTABLE | awk '{print $2}'`" [ -z "$jid" ] || sendxmpp -f /var/lib/asterisk/.sendxmpprc "$jid" |
#vim /usr/local/bin/jabblog
|
#exten => s,1,System
#!/bin/sh JABBTABLE=/etc/asterisk/jabbtable jid="`grep "$1" $JABBTABLE | awk '{print $2}'`" [ -z "$jid" ] || sendxmpp -f /var/lib/asterisk/.sendxmpprc "$jid" |
#ls -l /usr/local/bin/jabblog
-rw-r--r-- 1 root staff 159 2009-12-10 16:21 /usr/local/bin/jabblog |
#chmod +x /usr/local/bin/jabblog
|
#cp /usr/share/asterisk/sounds/c
![]() Display all 127 possibilities? (y or n) cafeteria.gsm computer-friend1.gsm california.gsm computer-friend2.gsm call-forward.gsm conditions.gsm call-forwarding.gsm conf-adminmenu.gsm call-fwd-cancelled.gsm conf-banned.gsm call-fwd-no-ans.gsm conf-enteringno.gsm call-fwd-on-busy.gsm conference-call.gsm call-fwd-parallel.gsm conference.gsm call-fwd-unconditional.gsm conference-reservations.gsm ... calls-waiting-for-rep.gsm conf-hasjoin.gsm call-terminated.gsm conf-hasleft.gsm call-waiting.gsm conf-invalid.gsm campground-office.gsm conf-invalidpin.gsm cancelled.gsm confirm-number-is.gsm cannot-complete-as-dialed.gsm conf-kicked.gsm cannot-complete-network-error.gsm conf-leaderhasleft.gsm cannot-complete-otherend-error.gsm conf-locked.gsm cannot-complete-temp-error.gsm conf-lockednow.gsm card-balance-is.gsm conf-muted.gsm |
#cp /usr/share/asterisk/sounds/c
![]() Display all 127 possibilities? (y or n) cafeteria.gsm computer-friend1.gsm california.gsm computer-friend2.gsm call-forward.gsm conditions.gsm call-forwarding.gsm conf-adminmenu.gsm call-fwd-cancelled.gsm conf-banned.gsm call-fwd-no-ans.gsm conf-enteringno.gsm call-fwd-on-busy.gsm conference-call.gsm call-fwd-parallel.gsm conference.gsm call-fwd-unconditional.gsm conference-reservations.gsm ... calls-waiting-for-rep.gsm conf-hasjoin.gsm call-terminated.gsm conf-hasleft.gsm call-waiting.gsm conf-invalid.gsm campground-office.gsm conf-invalidpin.gsm cancelled.gsm confirm-number-is.gsm cannot-complete-as-dialed.gsm conf-kicked.gsm cannot-complete-network-error.gsm conf-leaderhasleft.gsm cannot-complete-otherend-error.gsm conf-locked.gsm cannot-complete-temp-error.gsm conf-lockednow.gsm card-balance-is.gsm conf-muted.gsm |
#cp /usr/share/asterisk/sounds/california.gsm /var/lib/asterisk/moh/
|
#:q
[fromDeb4] type=friend host=dynamic ~ ~ ~ ~ ~ |
#{CALLERID(all)}" | /usr/local/bin/jabblog ${ARG1})
; ; Music on Hold -- Sample Configuration ; ; valid mode options: ; files -- read files from a directory in any Asterisk supported ; media format ; quietmp3 -- default ; mp3 -- loud ; mp3nb -- unbuffered ; quietmp3nb -- quiet unbuffered ... ;mode=custom ;directory=/var/lib/asterisk/mohmp3 ; ; ; ; ; ; ; ; |
#; mp3 -- loud
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- Native bridging SIP/301-08376b08 and SIP/302-0837d188 -- Started music on hold, class 'default', on SIP/301-08376b08 -- Remote UNIX connection == Spawn extension (macro-jabblog, s, 2) exited non-zero on 'SIP/301-08376b08' in macro 'jabblog' == Spawn extension (macro-jabblog, s, 2) exited non-zero on 'SIP/301-08376b08' -- Stopped music on hold on SIP/301-08376b08 Executing last minute cleanups == Destroying musiconhold processes Disconnected from Asterisk server Executing last minute cleanups |
#cp /usr/share/asterisk/sounds/c /var/lib/asterisk/moh/
![]() Display all 127 possibilities? (y or n) cafeteria.gsm computer-friend1.gsm california.gsm computer-friend2.gsm call-forward.gsm conditions.gsm call-forwarding.gsm conf-adminmenu.gsm call-fwd-cancelled.gsm conf-banned.gsm call-fwd-no-ans.gsm conf-enteringno.gsm call-fwd-on-busy.gsm conference-call.gsm call-fwd-parallel.gsm conference.gsm call-fwd-unconditional.gsm conference-reservations.gsm ... cloudy.gsm count.gsm collections.gsm crash.gsm colorado.gsm currently.gsm colorado-springs.gsm current-time-is.gsm columbus.gsm custom/ comma.gsm customer-accounts.gsm communications.gsm customer-relations.gsm company-dir-411.gsm customer-service.gsm complaint.gsm cyclone.gsm compliance.gsm |
#cp /usr/share/asterisk/sounds/casanova.gsm /var/lib/asterisk/moh/
|
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- B-channel 0/1 successfully restarted on span 1 [Dec 11 09:52:46] WARNING[20099]: chan_zap.c:9164 pri_dchannel: Restart requested on odd/unavailable channel number 0/2 on span 1 -- Registered SIP '302' at 192.168.102.107 port 46070 expires 3600 obukhov*CLI> voicemail show users zones -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes Disconnected from Asterisk server Executing last minute cleanups |
#ssh 192.168.102.1
root@192.168.102.1's password: Linux debian4 2.6.26-2-686 #1 SMP Wed Aug 19 06:06:52 UTC 2009 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Thu Dec 10 04:04:13 2009 from 192.168.102.2 l3-agent is already running: pid=2751; pidfile=/root/.lilalo/l3-agent.pid |
#cd /etc/asterisk/
|
#vim extensions.conf
|
#exten => 400,1,MeetMe(1,D
register => fromKiev@192.168.102.1/obukhov [302] type=friend host=dynamic secret=123 "sip.conf" 20L, 238C callerid="romchiko-winSoft" [fromDeb4] type=friend host=dynamic ~ ~ "sip.conf" 22L, 282C written |
#vim sip.conf
--- /tmp/l3-saved-2648.4910.2944 2009-12-10 18:05:09.000000000 +0200 +++ sip.conf 2009-12-10 18:05:54.000000000 +0200 @@ -20,3 +20,8 @@ host=dynamic secret=123 callerid="romchiko-DEB-4" + +[obukhov] +type=friend +host=dynamic +username=forKiev |
#[obukhov]
; ; ; NOTE: Asterisk has to edit this file to change a user's password. This does ; not currently work with the "#include <file>" directive for Asterisk ; configuration files, nor when using realtime static configuration. ; Do not use them with this configuration file. ; [general] ; Formats for writing Voicemail. Note that when using IMAP storage for "voicemail.conf" 250L, 11723C ... ;4235 => 1234,Jim Holmes,jim@astricon.ips,,Tz=european ; ; Mailboxes may be organized into multiple contexts for ; voicemail virtualhosting ; 301 => 301,Roman Sidorenko,root@obukhov.unix.nt [other] ;The intro can be customized on a per-context basis ;directoryintro=dir-company2 "voicemail.conf" 252L, 11772C written |
#vim extensions.conf
![]() |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... Chan Extension Context Language MOH Interpret pseudo default default 1 default default obukhov*CLI> zap show channels 1 No such trunk group 1 -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes Disconnected from Asterisk server Executing last minute cleanups |
#vim voicemail.conf
--- /tmp/l3-saved-2648.24463.24696 2009-12-11 10:33:32.000000000 +0200 +++ voicemail.conf 2009-12-11 10:33:46.000000000 +0200 @@ -240,6 +240,7 @@ 301 => 301,Roman Sidorenko,root@obukhov.unix.nt +302 => 302,Roman Sidorenko,root@obukhov.unix.nt ; ; Mailboxes may be organized into multiple contexts for |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... Echo Cancellation: 128 taps, currently OFF PRI Flags: PRI Logical Span: Implicit Hookstate (FXS only): Onhook -- Saved useragent "X-Lite release 1103k stamp 53621" for peer 302 -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes Disconnected from Asterisk server Executing last minute cleanups |
#vim zapata.conf
--- /tmp/l3-saved-2648.21215.22063 2009-12-11 11:01:53.000000000 +0200 +++ zapata.conf 2009-12-11 11:02:11.000000000 +0200 @@ -362,7 +362,7 @@ ; modules, they take precedence over the software echo canceller compiled ; into Zaptel automatically. ; -echocancel=yes +echocancel=no ; ; Generally, it is not necessary (and in fact undesirable) to echo cancel when ; the circuit path is entirely TDM. You may, however, change this behavior |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... Hookstate (FXS only): Onhook -- B-channel 0/1 restarted on span 1 -- B-channel 0/1 successfully restarted on span 1 [Dec 11 11:02:28] WARNING[22021]: chan_zap.c:9164 pri_dchannel: Restart requested on odd/unavailable channel number 0/2 on span 1 -- Saved useragent "Asterisk PBX" for peer fromDeb4 -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes Disconnected from Asterisk server Executing last minute cleanups |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#vim sip.conf
|
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- Called frompoltava/103 [Dec 11 14:25:16] WARNING[22123]: chan_iax2.c:7775 socket_process: Call rejected by 192.168.101.3: No such context/extension -- Hungup 'IAX2/frompoltava-16385' == Everyone is busy/congested at this time (1:0/0/1) == Auto fallthrough, channel 'SIP/301-09c9ec98' status is 'CHANUNAVAIL' -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes Disconnected from Asterisk server Executing last minute cleanups |
#vim sip.conf
--- /tmp/l3-saved-2648.24107.32427 2009-12-11 14:15:44.000000000 +0200 +++ sip.conf 2009-12-11 14:15:47.000000000 +0200 @@ -12,7 +12,7 @@ [302] type=friend host=dynamic -;secret=123 +secret=123 callerid="romchiko-winSoft" [fromDeb4] |
#secret=123
![]() asterisk.adsi asterisk.conf |
#vmi asterisk.conf
![]() bash: vmi: command not found |
#vim asterisk.conf
|
#~
cat: manager.d: Is a directory ;tos_video=af41 ; Sets TOS for RTP video packets. ;videosupport=yes ; Turn on support for SIP video. You need to turn this on ; in the this section to get any video support at all. ; video support is enabled, but you can't enable it for ;maxcallbitrate=384 ; Maximum bitrate for video calls (default 384 kb/s) ; Videosupport and maxcallbitrate is settable ; These timers are currently used for both audio and video streams. The RTP timeouts ; Will not work for video and cases where the callee sends ; videosupport videosupport |
#vim sip.conf
--- /tmp/l3-saved-2648.32174.2357 2009-12-11 14:22:32.000000000 +0200 +++ sip.conf 2009-12-11 14:22:53.000000000 +0200 @@ -1,5 +1,6 @@ [general] context=default +videosupport=yes register => fromKiev@192.168.102.1/obukhov |
#cat * | grep -i video
cat: manager.d: Is a directory videosupport=yes ;tos_video=af41 ; Sets TOS for RTP video packets. ;videosupport=yes ; Turn on support for SIP video. You need to turn this on ; in the this section to get any video support at all. ; video support is enabled, but you can't enable it for ;maxcallbitrate=384 ; Maximum bitrate for video calls (default 384 kb/s) ; Videosupport and maxcallbitrate is settable ; These timers are currently used for both audio and video streams. The RTP timeouts ; Will not work for video and cases where the callee sends ; videosupport videosupport |
#vim sip.conf.SAVED
|
#;matchexterniplocally = yes ; Only substitute the externip or externhost setting if it matches
[macro-jabblog] exten => s,1,System(echo Tebe zavonit kakoeto telo "${CALLERID(all)}" | /usr/local/bin/jabblog ${ARG1}) exten => s,n,Dial(SIP/${ARG1},10) exten => s,n,VoiceMail(${ARG1}@default,u) [default] ;exten => _3XX,1,Set(CALLERID(number)=2${CALLERID(number)}) ;exten => _3XX,1,Dial(SIP/${EXTEN}) exten => 7000,1,VoiceMailMain() ;exten => 400,1,MeetMe(1,dcP,1234) exten => 400,1,MeetMe(1,DMc) ... exten => _31X,n,Playback(/root/megamenu/proba${EXTEN:1}) exten => _31X,n,Hangup ;exten => 340,1,System(echo You have ZVONOCHEK " ${CALLERID(all)} ${STRFTIME(${EPOCH},,%d/\%m/\%Y-%H:%M:%S)}} ${CHANNEL}"| sendxmpp -f /var/lib/asterisk/.sendxmpprc romchiko@obukhov.unix.nt) exten => 340,n,WaitExten() exten => 1,1,Playback(/root/megamenu/proba10) exten => 1,n,Goto(340,1) exten => 2,1,Playback(/root/megamenu/proba11) exten => 2,n,Goto(340,1) "extensions.conf" 69L, 2129C written |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... == Everyone is busy/congested at this time (1:0/0/1) == Auto fallthrough, channel 'SIP/301-0954c3d8' status is 'CHANUNAVAIL' [Dec 11 14:33:24] WARNING[22730]: chan_zap.c:9164 pri_dchannel: Restart requested on odd/unavailable channel number 0/2 on span 1 == Primary D-Channel on span 1 up [Dec 11 14:33:44] WARNING[22730]: chan_zap.c:9164 pri_dchannel: Restart requested on odd/unavailable channel number 0/2 on span 1 -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes Disconnected from Asterisk server Executing last minute cleanups |
#vim extensions.conf
|
#[ ]
![]() The system is going down for reboot NOW!.nt (pts/2) (Fri Dec 11 02:41:53 2009 Connection to 192.168.101.3 closed by remote host. Connection to 192.168.101.3 closed. |
#[ ]
![]() The system is going down for reboot NOW!.nt (pts/2) (Fri Dec 11 02:41:53 2009 Connection to 192.168.101.3 closed by remote host. Connection to 192.168.101.3 closed. |
#:q
exten => _1XX,1,Set(CALLERID(all)=ROMAZAVR) "extensions.conf" 69L, 2129C exten => _1XX,n,Dial(ZAP/G1/${EXTEN}) exten => _380XXXXXXXXX,1,Dial(SIP/fromDeb4/${EXTEN}) exten => 300,1,Answer ;exten => 300,n,Wait(2) exten => 300,n,Echo exten => 300,n,Hangup ;exten => 300,n, exten => 391,1,Wait(2) exten => 391,n,Playback(casanova) exten => _31X,1,Answer exten => _31X,n,Wait(2) exten => _31X,n,Record(/root/megamenu/proba${EXTEN:1}:gsm|3) exten => _31X,n,Playback(/root/megamenu/proba${EXTEN:1}) exten => _31X,n,Hangup exten => 340,1,Background(/root/megamenu/proba19) |
#{EXTEN}
; Group: Defines a trunk group. ; trunkgroup => <trunkgroup>,<dchannel>[,<backup1>...] ; ; trunkgroup is the numerical trunk group to create ; dchannel is the zap channel which will have the ; d-channel for the trunk. ; backup1 is an optional list of backup d-channels. ; ;trunkgroup => 1,24,48 ;trunkgroup => 1,24 ... ; and they will be printed on the console when an inbound call comes in. ; ;dring1=95,0,0 ;dring1context=internal1 ;dring2=325,95,0 ;dring2context=internal2 ; If no pattern is matched here is where we go. context=default group=1 channel => 1 |
#:q
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#/etc/init.d/zaptel restart
Zaptel telephony kernel driver: zaptel. |
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... [Dec 11 14:35:28] NOTICE[22892]: chan_zap.c:9024 pri_dchannel: PRI got event: HDLC Abort (6) on Primary D-channel of span 1 == Primary D-Channel on span 1 up -- B-channel 0/1 restarted on span 1 [Dec 11 14:35:35] WARNING[22892]: chan_zap.c:9164 pri_dchannel: Restart requested on odd/unavailable channel number 0/2 on span 1 -- B-channel 0/1 successfully restarted on span 1 -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes Disconnected from Asterisk server Executing last minute cleanups |
#/etc/init.d/asterisk restart
Stopping Asterisk PBX: asterisk. Starting Asterisk PBX: asterisk. |
#ztscan
[1] active=yes alarms=OK description=Wildcard TE122 Card 0 name=WCT1/0 manufacturer=Digium devicetype=Wildcard TE122 location=PCI Bus 03 Slot 01 basechan=1 totchans=31 irq=20 type=digital-E1 syncsrc=0 lbo=0 db (CSU)/0-133 feet (DSX-1) coding_opts=HDB3 framing_opts=CCS,CRC4 coding=HDB3 framing=CCS |
#asterisk -rvvvv
![]() Asterisk 1.4.21.2~dfsg-3, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- Hungup 'Zap/1-1' == Everyone is busy/congested at this time (1:0/0/1) == Auto fallthrough, channel 'SIP/301-0853c470' status is 'CHANUNAVAIL' -- Remote UNIX connection disconnected -- Remote UNIX connection -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes Disconnected from Asterisk server Executing last minute cleanups |
#asterisk -rvvvv
Asterisk 1.4.21.2~dfsg-3, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... -- Hungup 'Zap/1-1' == Everyone is busy/congested at this time (1:0/0/1) == Auto fallthrough, channel 'SIP/301-0853c470' status is 'CHANUNAVAIL' -- Remote UNIX connection disconnected -- Remote UNIX connection -- Remote UNIX connection Executing last minute cleanups == Destroying musiconhold processes Disconnected from Asterisk server Executing last minute cleanups |
#vim extensions.conf
--- /tmp/l3-saved-2648.6491.17332 2009-12-11 14:36:53.000000000 +0200 +++ extensions.conf 2009-12-11 14:37:35.000000000 +0200 @@ -15,9 +15,9 @@ exten => 400,1,MeetMe(1,DMc) exten => 401,1,MeetMe(1,Dmc) -exten => _3XX,1,Macro(jabblog,${EXTEN}) +;exten => _3XX,1,Macro(jabblog,${EXTEN}) -exten => _2XX,1,Dial(SIP/fromDeb4/${EXTEN}) +;exten => _2XX,1,Dial(SIP/fromDeb4/${EXTEN}) exten => _1XX,1,Set(CALLERID(all)=ROMAZAVR) exten => _1XX,n,Dial(ZAP/G1/${EXTEN}) |
#asterisk -rvv
Asterisk 1.4.21.2~dfsg-3, Copyright (C) 1999 - 2008 Digium, Inc. and others. Created by Mark Spencer <markster@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= This package has been modified for the Debian GNU/Linux distribution Please report all bugs to http://bugs.debian.org/asterisk ========================================================================= ... Overlap Dial: 0 T200 Timer: 1000 T203 Timer: 10000 T305 Timer: 30000 T308 Timer: 4000 T309 Timer: -1 T313 Timer: 4000 N200 Counter: 3 obukhov*CLI> quit Executing last minute cleanups |
|