Archives›2004›août

août 2004

275 collages
  • vm from db

    493·sql·80 B·2004-08-06 00:27 UTC
    http://www.voip-info.org/wiki-Asterisk+voicemail+database#comments
    
    VM from DB
  • sipiax2 directly from db

    492·sql·90 B·2004-08-06 00:25 UTC
    http://www.voip-info.org/wiki-Asterisk+sip+mysql+peers
    
    sip/iax2 directly from DB (mysql
  • Extensions In DB

    491·text·126 B·2004-08-06 00:22 UTC
    http://andreasotto.net/asterisk/
    
    Unmaintained app that would query the db based on the pattern match in the extensions.conf
  • Keys as defined by BV

    490·text·597 B·2004-08-06 00:11 UTC
    *72 Call Forwarding Always Activation
    *73 Call Forwarding Always Deactivation
    *90 Call Forwarding Busy Activation
    *91 Call Forwarding Busy Deactivation
    *92 Call Forwarding No Answer
  • Anonymous

    486·text·227 B·2004-08-05 04:50 UTC
    try this:
    
    remove default route from eth1
    
    change subnet mask on eth0 to 255.255.0.0
    leave subnet mask on eth1 at 255.255.255.0
    
    both interfaces will still work internally, but only eth1 will p
  • Anonymous

    485·text·1.8 KB·2004-08-05 04:45 UTC
    bell:~# route
    Kernel IP routing table
    Destination Gateway Genmask Flags Metric Ref Use Iface
    10.0.0.0 * 255.255.255.0 U 0 0 0 eth0
    10.
  • Savvis DC Trace

    483·text·2.2 KB·2004-08-05 00:00 UTC
    [wsuff@linux wsuff]$ traceroute 216.39.66.59 
    traceroute to 216.39.66.59 (216.39.66.59), 30 hops max, 38 byte packets
     1 192.168.1.1 (192.168.1.1) 11.985 ms 0.867 ms 0.827 ms
     2 192.168.0.1 (1
  • NYC DC Trace

    482·text·1.4 KB·2004-08-04 23:56 UTC
    traceroute to 65.125.224.20 (65.125.224.20), 30 hops max, 38 byte packets
     1 192.168.1.1 (192.168.1.1) 0.993 ms 0.847 ms 0.814 ms
     2 192.168.0.1 (192.168.0.1) 2.542 ms 2.511 ms 2.369 ms
     3
  • Stealthsquirrel

    481·text·1.6 KB·2004-08-04 23:54 UTC
    traceroute to testsite.technomonk.com (82.165.36.124), 30 hops max, 38 byte packets
     1 192.168.1.1 (192.168.1.1) 1.026 ms 0.824 ms 0.813 ms
     2 192.168.0.1 (192.168.0.1) 3.842 ms 2.656 ms 2.3
  • Technomonk Traceroute

    480·text·1.7 KB·2004-08-04 23:52 UTC
    [wsuff@linux wsuff]$ traceroute technomonk.com
    traceroute to technomonk.com (81.104.187.104), 30 hops max, 38 byte packets
     1 192.168.1.1 (192.168.1.1) 1.340 ms 0.819 ms 1.292 ms
     2 192.168.0.
  • varlogmessages

    475·text·574 B·2004-08-04 22:36 UTC
    Aug 5 03:43:19 asterisk pppd[5183]: pppd 2.4.1 started by root, uid 0
    Aug 5 03:43:19 asterisk pppd[5183]: Using interface ppp0
    Aug 5 03:43:19 asterisk pppd[5183]: Connect: ppp0 <--> /dev/ttyS0
    A
  • Anonymous

    474·text·742 B·2004-08-04 22:33 UTC
    [root@asterisk ppp]# wvdial
    --> WvDial: Internet dialer version 1.53
    --> Initializing modem.
    --> Sending: ATZ
    ATZ
    OK
    --> Sending: AT S11=50
    AT S11=50
    OK
    --> Sending: ATM1L2
    ATM1L2
    OK
    --> M
  • Anonymous

    473·text·351 B·2004-08-04 22:32 UTC
    ::/96 via :: dev sit0 metric 256 mtu 1480 advmss 1420 metric10 64
    fe80::/64 dev eth0 metric 256 mtu 1500 advmss 1440 metric10 64
    ff00::/8 dev eth0 metric 256 mtu 1500 advmss 1440 metric10 1
    d
  • classy

    470·text·1.2 KB·2004-08-04 22:23 UTC
    [root@googy ppp]# wvdial
    --> WvDial: Internet dialer version 1.53
    --> Initializing modem.
    --> Sending: ATZ
    ATZ
    OK
    --> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
    ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=
  • Anonymous

    469·text·1.2 KB·2004-08-04 22:05 UTC
    ====================================================
    Linux Tulip driver version 0.9.15-pre12 (Aug 9, 2002)
    PCI: Found IRQ 11 for device 03:00.0
    PCI: Sharing IRQ 11 with 00:1d.2
    PCI: Sharing IRQ 11
  • Anonymous

    468·text·254 B·2004-08-04 21:58 UTC
    bell:~# ip link show
    1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    2: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
  • sit0 setup

    464·text·375 B·2004-08-04 19:33 UTC
    #!/bin/sh
    
    DEBUG=echo
    
    IP=/sbin/ip
    
    PREFIX=`printf '2002:%02x%02x:%02x%02x' 216 161 207 242`
    EXTLAN=eth0
    INTLAN=eth1
    
    $DEBUG $IP link set sit0 up
    $DEBUG $IP addr add $PREFIX::1/48 dev sit0
  • Anonymous

    463·text·541 B·2004-08-04 17:30 UTC
    "Thank you for calling Auction University. The next available agent will be with you shortly"
    
    "You have reached Auction University. Our Office is now closed. Business hours are from 4 pm to 12 a
  • Anonymous

    462·text·514 B·2004-08-04 17:30 UTC
    "Thank you for calling Auction University. The next available agent will be with you shortly"
    
    "You have reached Auction University. Our Office is now closed. Business hours are from 4 pm to 12 a
  • Anonymous

    461·text·553 B·2004-08-04 17:29 UTC
    "Thank you for calling Auction University. The next available agent will be with you shortly"
    
    "You have reached Auction University. Our Office is now closed. Business hours are from 4 pm to 12 a
  • Anonymous

    460·text·514 B·2004-08-04 17:24 UTC
    "Thank you for calling Auction University. The next available agent will be with you shortly"
    
    "You have reached Auction University. Our Office is now closed. Business hours are from 4 pm to 12 a
  • avizion exten

    458·ini·178 B·2004-08-04 13:37 UTC
    ; arg1 = queue id
    ; arg2 = caller id num
    [macro-agent-add]
    exten => s,1,AGI,agent-add-dynamic.agi
    exten => s,2,Hangup
    
    exten => *3201,1,Macro(agent-add,Q320,${CALLERIDNUM})
  • avizion agi

    457·perl·809 B·2004-08-04 13:35 UTC
    #!/usr/bin/perl
    
    use Asterisk::AGI;
    
    $AGI = new Asterisk::AGI;
    my %input = $AGI->ReadParse();
    
    my $conf = "/etc/asterisk/queues.conf";
    my($my_penalty,%penalties);
    my $my_type = $input{'type'}
  • radvd conf

    456·text·425 B·2004-08-04 05:21 UTC
    interface eth0
    {
     AdvSendAdvert on;
    
     MinRtrAdvInterval 3;
     MaxRtrAdvInterval 10;
    
     AdvHomeAgentFlag off;
    
     prefix 0:0:0:1::/64
     {
  • Decode AOLs search queries

    455·ini·2.0 KB·2004-08-04 03:45 UTC
    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include <netdb.h>
    #include <sys/socket.h>
    #include <sys/types.h>
    #include <netinet/in.h>
    #include <netinet/ip.h>
    
    int get(char *ser
  • Postgres Vs Mysql

    454·text·312 B·2004-08-03 22:25 UTC
    Can mysql friends be modified to use postgres so the sip users/iax can be loaded on the fly from the backend
    
    can mysql VM crap be modified to store in prostgres
    
    Does Postgres support replication
  • DID Tables Slepp rev 3

    453·sql·429 B·2004-08-03 21:33 UTC
    create table countries (
    id serial unique,
    country_name text not null,
    country_prefix text,
    country_shortname text not null
    );
    
    create table users (
    id serial unique,
    username text not null,
  • DID Tables Slepp rev 2

    452·sql·423 B·2004-08-03 21:30 UTC
    create table countries (
    id integer auto_increment,
    country_name text not null,
    country_prefix text,
    country_shortname text not null
    );
    
    create table users (
    id integer auto_increment,
    userna
  • DID Tables Slepp rev 1

    451·sql·160 B·2004-08-03 21:28 UTC
    create table dids (
    country_id integer references countries (id),
    user_id integer references users (id),
    assigned enum('y','n','p'),
    did text not null
    );
  • bitwise

    450·csharp·251 B·2004-08-03 19:22 UTC
    using(SqlDataReader dr = cmd.ExecuteReader(CommandBehavior.CloseConnection | CommandBehavior.SingleRow)) 
    {
     if(dr.Read()) 
     {
     return (int)cmd.Parameters[(int)TRAINING.p_Customer_ins_Parameters.
  • bitwise

    449·csharp·283 B·2004-08-03 19:21 UTC
    using(SqlDataReader dr = cmd.ExecuteReader(CommandBehavior.CloseConnection | CommandBehavior.SingleRow)) 
     {
     if(dr.Read()) 
     {
     return (int)cmd.Parameters[(int)TRAINING.p_Cust
  • DID DB Table Revised V2

    448·ini·686 B·2004-08-03 16:01 UTC
    Seems using INT has a make size limit so I made did txt for now
    probably best to use varchar 20 or so
    
     Database voip - Table DID running on localhost
    DID
    Table comments : did pool and assignme
  • VOIP DB Layout V1

    446·text·1.5 KB·2004-08-03 15:38 UTC
    Database voip running on localhost
    DID
    Table comments : did pool and assignments
    
    Field Type Null Default
    npa int(3) No 0 
    did int(7) No 0 
    assigned enum('Y', 'N', 'P') No N
  • Anonymous

    444·ini·747 B·2004-08-03 12:41 UTC
    [recordings]
    exten => 500,1,Festival('Please record your message')
    exten => 500,2,Record,(mymessage:gsm)
    exten => 500,3,Festival('You said')
    exten => 500,4,Playback(mymessage)
    exten => 500,5,Fest
  • Kevin

    443·text·458 B·2004-08-03 11:06 UTC
    Outstanding
    -----------
     2168 - Have call queues using a SIP member honour a 302 redirect.
     2175 - Prevent blank lines from being saved in the history.
     2177 - Exit cleanly from remote co
  • pfn

    440·text·6.7 KB·2004-08-03 10:56 UTC
    [root@ares tftpboot]# cat SIPDefault.cnf
    
    # SIP Default Generic Configuration File
    
    # Image Version
    image_version: P0S3-07-1-00
    
    # Proxy Server
    proxy1_address: "sip.gofti.com" ; Can be
  • Anonymous

    438·ini·3.8 KB·2004-08-03 09:38 UTC
    image_version: P0S3-07-1-00
    proxy1_address: "" ; Can be dotted IP or FQDN
    proxy2_address: "" ; Can be dotted IP or FQDN
    proxy3_address: "" ; Can be dotted IP or FQDN
    proxy4_address: "" ; Can
  • 7905 silent suppression

    437·ini·984 B·2004-08-03 07:06 UTC
    # ====================== Audio Configuration Parameters =======================
    # -----------------------------------------------------------------------------
    # Parameter: AudioMode
    #
    #
  • Kevin

    436·ini·258 B·2004-08-03 06:53 UTC
    exten => 2003,1,Answer
    exten => 2003,2,Wait(1)
    exten => 2003,3,Playback(vm-rec-unv)
    exten => 2003,4,Record(${SOUNDS_DIR}/${HOME_SOUNDS}/prompt-new:gsm)
    exten => 2003,5,Wait(1)
    exten => 2003,6,Pla
  • Record Menu

    435·ini·600 B·2004-08-03 06:50 UTC
    [record-menu]
    exten => s,1,SetVar(mode=record)
    exten => s,2,DigitTimeout(10)
    exten => s,3,Background(cp-record_menu)
    
    exten => 8,1,SetVar(mode=play)
    exten => 8,2,Background(cp-record_play_prompt
  • Record Menu

    434·ini·600 B·2004-08-03 06:50 UTC
    [record-menu]
    exten => s,1,SetVar(mode=record)
    exten => s,2,DigitTimeout(10)
    exten => s,3,Background(cp-record_menu)
    
    exten => 8,1,SetVar(mode=play)
    exten => 8,2,Background(cp-record_play_prompt
  • Anonymous

    433·c·129 B·2004-08-03 04:26 UTC
    printf("This is a test\n");
    
    printf("This might turn out to \"be a bug\" in the pastebin\n");
    
    printf("How " about this?\n");
  • Anonymous

    432·c·95 B·2004-08-03 04:25 UTC
    printf("This is a test\n");
    
    printf("This might turn out to \"be a bug\" in the pastebin\n");
  • Kevin

    431·text·424 B·2004-08-03 03:24 UTC
    -- \\ ( )
     _/ _/ _/_/_/_/ _/ _/ _/_/_/ _/ _/ . _\\__[oo
     _/_/_/ _/_/ _/ _/ _/ _/_/ _/ .__/ \\ /\@ No bu
  • Kevin

    429·text·1.1 KB·2004-08-03 03:23 UTC
    _ _
     |_| |_|
     | | | |
     _| |_
  • Anonymous

    428·text·1.1 KB·2004-08-03 03:23 UTC
    ::::::::::::::::::::::::::::::::::::
    :::::::::::::::::::::i\:::::::::::::
    :::::::::::::::::/[::;>`;:::::::::::
    ::::::::::::::::ij Y" "<::::::::;;;;_________________
    :::::::::::::::::> (dd)-:;::::
  • Kevin

    427·text·1.1 KB·2004-08-03 03:22 UTC
    ::::::::::::::::::::::::::::::::::::
    :::::::::::::::::::::i\:::::::::::::
    :::::::::::::::::/[::;>`;:::::::::::
    ::::::::::::::::ij Y" "<::::::::;;;;_________________
    :::::::::::::::::> (dd)-:;::::
  • Anonymous

    426·text·1.5 KB·2004-08-03 03:22 UTC
    - ) ( ( (
    - ( ) () @@ ) (( (
    - ( ( )( @@ ( )) ) (
    -
  • Kevin

    425·text·1.5 KB·2004-08-03 03:18 UTC
    - ) ( ( (
    - ( ) () @@ ) (( (
    - ( ( )( @@ ( )) ) (
    -
  • Basic Working Parking

    424·ini·229 B·2004-08-03 02:46 UTC
    [testing]
    exten => _7XX,1,Answer
    exten => _7XX,2,Wait(1)
    exten => _7XX,3,ParkAndAnnounce(pbx-transfer:PARKED|7200|SIP/101|default,${E$
    exten => _8XX,1,Answer
    exten => _8XX,2,Wait(1)
    exten => _8X
  • appvaletparking.c

    423·c·22.6 KB·2004-08-03 01:37 UTC
    /*
     * Asterisk -- A telephony toolkit for Linux.
     *
     * Routines implementing call valetparking
     * 
     * Copyright (C) 1999, Mark Spencer
     *
     * Mark Spencer <markster@linux-support.net>
     *
     * Th
  • Stable Hosting IVR

    419·ini·3.4 KB·2004-08-03 01:12 UTC
    ; Stable Hosting IVR
    [sthost-default]
    include => autoattend
    include => all-exten
    
    [sthost-autoattend]
    include => sthost-selection
    include => sthost-all-exten
    include => sthost-disconnect
    incl
  • direct iax2 calls v1

    418·ini·409 B·2004-08-03 01:09 UTC
    exten => *91,1,Dial(IAX2/guest@mypbx.no-ip.com/10)
    exten => *100,1,Dial(IAX2/guest:guest@207.172.223.66/3002)
    exten => *611,1,Dial(IAX2/guest@cm2.saww.net/611)
    exten => *801,1,Dial(IAX2/tollfree@vo
  • record prompt v1

    417·ini·181 B·2004-08-03 01:07 UTC
    [rec-prompt]
    exten => 96,1,Wait(2)
    exten => 96,2,Record(/tmp/generic:gsm)
    exten => 96,3,Wait(2)
    exten => 96,4,Playback(/tmp/generic)
    exten => 96,5,Wait(2)
    exten => 96,6,Hangup
  • UserPeer bug

    416·text·186 B·2004-08-02 22:46 UTC
    If you have multiple accounts with the same peer name but multiple usernames. Asterisk won't try to match user@peer but just the last entry return for said peer
    
    Pointed out by tzanger
  • Url for Astbot by tzanger

    415·text·37 B·2004-08-02 22:45 UTC
    http://www.mixdown.ca/~andrew/astbot/
  • Astbot for Jabber by tzanger Exten example

    414·ini·299 B·2004-08-02 22:44 UTC
    [in_2914574]
    exten => s,1,NoOp(${DATETIME} ${CALLERID})
    exten => s,2,System(/usr/bin/perl /usr/local/scripts/astbot.pl '${CALLERID}')
    exten => s,3,Dial(IAX2/benshaw@ak_home/s,20,Ttr)
    exten => s,4,
  • DIDs ordered

    411·text·42 B·2004-08-02 22:10 UTC
    10 in Montreal - 514
    10 in Toronto - 416
  • qms logs

    410·text·2.3 KB·2004-08-02 21:26 UTC
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ==> Server Report
    
     External SMTP sessions: 83159
     Internal SMTP sessions: 0
  • Pastebin News

    409·text·980 B·2004-08-02 20:05 UTC
    Hi Everyone,
    
    Just some news.
    
    First off, we're now known as http://pastebin.ca, but we can still be found
    under the old names of http://pb.netmonks.ca, and others. You will be redirected
    for th
  • CDRCSV Total Shell Script

    408·php·423 B·2004-08-02 19:42 UTC
    ; CDR_CSV Total Script
    ; takes in 2 arguments the file to parse and what pattern to grep for
    ; use ' ' on larger grep matches 
    #!/bin/bash
    totalamt=0
    for amnt in ` cat $1 | grep $2 | cut -d ',' -
  • Follow Me by Leif

    407·ini·3.0 KB·2004-08-02 19:38 UTC
    This script looks for the (channel)/(extension) match from the database.
    
    For an extension 100 using SIP and a followme number of 123-456-7890
    
    database put 100 LOCAL SIP/100
    database put 100 FOL
  • Roaming Extensions v. 1

    405·ini·1.5 KB·2004-08-02 19:36 UTC
    [macro-stdexten]
    exten => s,1,DBget(caller=EXTEN/${ARG1})
    exten => s,2,DBget(dnd=DND/${ARG1})
    exten => s,3,Voicemail(u${ARG1})
    exten => s,4,Hangup
    exten => s,102,Macro(invalid)
    exten => s,103,D
  • More testing

    404·text·24 B·2004-08-02 19:10 UTC
    just another post too =)
  • Anonymous

    399·text·347 B·2004-08-02 17:23 UTC
    watson:/etc/asterisk# ./load_res_config iax.conf
    ] general 0 bandwidth [high
    ] general 1 disallow [lpc10
    ] general 2 allow [g723.1
    ] genera
  • Sloppy shit

    395·c·790 B·2004-08-02 04:09 UTC
    /* Update search engines */
     p = pr_get_item(query, "ref", entry, '&');
     h_ref = uri_alloc(p, pr_strlen(p));
     if(find_search_engine(h_ref, &h_se, h_phrase, sizeof(h_phrase), &h_start, &h_perpa
  • blitzrage

    394·text·3.0 KB·2004-08-01 22:00 UTC
    This script looks for the (channel)/(extension) match from the database.
    
    For an extension 100 using SIP and a followme number of 123-456-7890
    
    database put 100 LOCAL SIP/100
    database put 100 FOL
  • Dobaj

    393·text·539 B·2004-08-01 17:12 UTC
    he use of 'EXTEN-foo' has been deprecated in favor of 'EXTEN:foo'
     -- Executing Dial("SIP/2001-ba02", "SIP/612@fwd.pulver.com") in new stack
     -- Called 612@fwd.pulver.com
    Aug 1 18:08:17 WARN
  • sipdebug2

    392·ini·1.7 KB·2004-08-01 11:53 UTC
    Sip read:
    INVITE sip:192.168.0.1 SIP/2.0
    Content-Length: 173
    Contact: <sip:192.168.0.5:5060>
    Call-ID: 425C9413-6C0D-41F6-A214-5467DA42DA33@192.168.0.5
    Content-Type: application/sdp
    From: "test"<
  • xmlrpc.php

    387·php·8.5 KB·2004-08-01 07:57 UTC
    <?php
    function Introspect($userdata) {
     $str = '<?xml version="1.0" ?><introspection version="1.0">';
     $str .= '<methodList><methodDescription name="system.listMethods"><purpose>enumerates</
  • TC PHP

    386·php·872 B·2004-08-01 07:55 UTC
    <?php
    require_once("xmlrpc.php");
    
    $Methods = array('timeclock.Clock.In' => 'clock_in',
     'timeclock.Clock.Out' => 'clock_out',
     'timeclock.Info' => 'info');
    
    fun
  • Sample XWT

    385·xml·8.4 KB·2004-08-01 07:53 UTC
    <xwt>
    
     <static>
     xwt.theme("xwt.standard", "org.xwt.themes.monopoly");
     </static>
    
     <import name="xwt.standard.*"/>
     <import name="org.xwt.mail.*"/>
     <import name="org.g
  • Anonymous

    382·c·3 B·2004-08-01 02:08 UTC
    hmm
  • appvaletparking.c

    381·ini·22.6 KB·2004-08-01 02:06 UTC
    /*
     * Asterisk -- A telephony toolkit for Linux.
     *
     * Routines implementing call valetparking
     * 
     * Copyright (C) 1999, Mark Spencer
     *
     * Mark Spencer <markster@linux-support.net>
     *
     * Th
  • appvaletparking.c

    380·text·22.6 KB·2004-08-01 02:05 UTC
    /*
     * Asterisk -- A telephony toolkit for Linux.
     *
     * Routines implementing call valetparking
     * 
     * Copyright (C) 1999, Mark Spencer
     *
     * Mark Spencer <markster@linux-support.net>
     *
     * Th
Page 3 sur 3