PING Sparks (Speed dials in a@h)

Discussion in 'UK VOIP' started by Jono, Nov 25, 2005.

  1. Jono

    Jono Guest

    Can you have a look at this thread and see if you can suss out how to get
    the speed dial feature to work in a@h?

    http://voxilla.com/index.php?name=PNphpBB2&file=viewtopic&p=31382#31382

    I can get the speed dials to store, but can't get them to dial.

    The helpful chandave has responded to my plea (again) however, I know not
    enough to comprehend his reply :-(
     
    Jono, Nov 25, 2005
    #1
    1. Advertising

  2. Jono

    Ian Guest

    "Jono" <> wrote in message
    news:hlDhf.15272$...
    > Can you have a look at this thread and see if you can suss out how to get
    > the speed dial feature to work in a@h?
    >
    > http://voxilla.com/index.php?name=PNphpBB2&file=viewtopic&p=31382#31382
    >
    > I can get the speed dials to store, but can't get them to dial.
    >
    > The helpful chandave has responded to my plea (again) however, I know not
    > enough to comprehend his reply :-(
    >

    Hi Jono

    That looks very like a rework of a version I posted to voip-info last year

    My very simplified version for version 1-0-X is below
    for outdialing it uses the defined trunks for example Trunk1 is ZAP/g1 and
    trunkiax is the defined string for my IAX trunks

    As it stands this supports 99 speed dials but can be changed for 999 by
    changing _30xx to _30xxx etc,

    I have updated it for 1-2 but dont have it to hand as its on the lab system
    due to problems with 1-2

    Ian

    Code follows

    ;Storing 11 digit numbers in speeddial database can only be done by sets
    with international context
    exten => _30XX.,1, DBput(speed/${EXTEN:2:2}=${EXTEN:4:11})
    exten => _30XX.,2, Playback(val_sp)
    exten => _30XX.,3, DBget(spnum=speed/${EXTEN:2:2}) ;sets spnum to be the
    required bin number
    exten => _30XX.,4, Playback(currently)
    exten => _30XX.,5, SayNumber(${EXTEN:2:2})
    exten => _30XX.,6, Playback(is-set-to)
    exten => _30XX.,7, SayDigits(${spnum})
    exten => _30XX.,8, Hangup


    ;Reading the stored number back.
    exten => _31XX,1, DBget(spnum=speed/${EXTEN:2:2}) ;sets spnum to be the
    required bin number
    exten => _31XX,2, Playback(currently)
    exten => _31XX,3, SayNumber(${EXTEN:2:2})
    exten => _31XX,4, Playback(is-set-to)
    exten => _31XX,5, SayDigits(${spnum})
    exten => _31XX,6, Hangup

    ;Retreiving numbers for alog dialing
    exten => _39XX,1, DBget(spnum=speed/${EXTEN:2:2}) ;sets spnum to be the
    required bin number
    exten => _39XX,2, Dial(${TRUNK1}/${spnum})
    exten => _39XX,3, Congestion

    ;Retreiving numbers for iax dialing
    exten => _38XX,1, DBget(spnum=speed/${EXTEN:2:2}) ;sets spnum to be the
    required bin number
    exten => _38XX,2, Dial(${TRUNKiax}/44${spnum:${TRUNKMSD}})
    exten => _38XX,3, Congestion

    ;Retreiving numbers for alog Phonecoop dialing
    exten => _37XX,1, DBget(spnum=speed/${EXTEN:2:2}) ;sets spnum to be the
    required bin number
    exten => _37XX,2, Dial(${TRUNK1}/184088${spnum})
    exten => _37XX,3, Congestion
     
    Ian, Nov 26, 2005
    #2
    1. Advertising

  3. Jono

    Jono Guest

    "Ian" <spam"AT"bathfordhill.co.uk> wrote in message
    news:...
    >
    > "Jono" <> wrote in message
    > news:hlDhf.15272$...
    >> Can you have a look at this thread and see if you can suss out how to get
    >> the speed dial feature to work in a@h?
    >>
    >> http://voxilla.com/index.php?name=PNphpBB2&file=viewtopic&p=31382#31382
    >>
    >> I can get the speed dials to store, but can't get them to dial.
    >>
    >> The helpful chandave has responded to my plea (again) however, I know not
    >> enough to comprehend his reply :-(
    >>

    > Hi Jono
    >
    > That looks very like a rework of a version I posted to voip-info last year
    >
    > My very simplified version for version 1-0-X is below
    > for outdialing it uses the defined trunks for example Trunk1 is ZAP/g1 and
    > trunkiax is the defined string for my IAX trunks
    >
    > As it stands this supports 99 speed dials but can be changed for 999 by
    > changing _30xx to _30xxx etc,
    >
    > I have updated it for 1-2 but dont have it to hand as its on the lab
    > system
    > due to problems with 1-2
    >
    > Ian
    >
    > Code follows
    >
    > ;Storing 11 digit numbers in speeddial database can only be done by sets
    > with international context
    > exten => _30XX.,1, DBput(speed/${EXTEN:2:2}=${EXTEN:4:11})
    > exten => _30XX.,2, Playback(val_sp)
    > exten => _30XX.,3, DBget(spnum=speed/${EXTEN:2:2}) ;sets spnum to be the
    > required bin number
    > exten => _30XX.,4, Playback(currently)
    > exten => _30XX.,5, SayNumber(${EXTEN:2:2})
    > exten => _30XX.,6, Playback(is-set-to)
    > exten => _30XX.,7, SayDigits(${spnum})
    > exten => _30XX.,8, Hangup
    >
    >
    > ;Reading the stored number back.
    > exten => _31XX,1, DBget(spnum=speed/${EXTEN:2:2}) ;sets spnum to be the
    > required bin number
    > exten => _31XX,2, Playback(currently)
    > exten => _31XX,3, SayNumber(${EXTEN:2:2})
    > exten => _31XX,4, Playback(is-set-to)
    > exten => _31XX,5, SayDigits(${spnum})
    > exten => _31XX,6, Hangup
    >
    > ;Retreiving numbers for alog dialing
    > exten => _39XX,1, DBget(spnum=speed/${EXTEN:2:2}) ;sets spnum to be the
    > required bin number
    > exten => _39XX,2, Dial(${TRUNK1}/${spnum})
    > exten => _39XX,3, Congestion
    >
    > ;Retreiving numbers for iax dialing
    > exten => _38XX,1, DBget(spnum=speed/${EXTEN:2:2}) ;sets spnum to be the
    > required bin number
    > exten => _38XX,2, Dial(${TRUNKiax}/44${spnum:${TRUNKMSD}})
    > exten => _38XX,3, Congestion
    >
    > ;Retreiving numbers for alog Phonecoop dialing
    > exten => _37XX,1, DBget(spnum=speed/${EXTEN:2:2}) ;sets spnum to be the
    > required bin number
    > exten => _37XX,2, Dial(${TRUNK1}/184088${spnum})
    > exten => _37XX,3, Congestion
    >
    >


    Thanks Ian, I'll have a play with it shortly.

    I found it on giganews newsgroup called
    gmane.comp.telephony.pbx.asterisk.user.

    There were no posts since 9/9/05 and the one before that was 19/4/05.

    The speed dial post was from a chap called paul crick dated 19/4/05.

    It looks like the group is actually from the asterisk users mailing
    list...........
     
    Jono, Nov 26, 2005
    #3
  4. Jono

    Jono Guest

    Ian" <spam"AT wrote:
    || "Jono" <> wrote in message
    || news:hlDhf.15272$...
    ||| Can you have a look at this thread and see if you can suss out how to
    ||| get the speed dial feature to work in a@h?
    |||
    ||| http://voxilla.com/index.php?name=PNphpBB2&file=viewtopic&p=31382#31382
    |||
    ||| I can get the speed dials to store, but can't get them to dial.
    |||
    ||| The helpful chandave has responded to my plea (again) however, I know
    ||| not enough to comprehend his reply :-(
    |||
    || Hi Jono
    ||
    || That looks very like a rework of a version I posted to voip-info last
    || year
    ||
    || My very simplified version for version 1-0-X is below
    || for outdialing it uses the defined trunks for example Trunk1 is ZAP/g1
    || and trunkiax is the defined string for my IAX trunks
    ||
    || As it stands this supports 99 speed dials but can be changed for 999 by
    || changing _30xx to _30xxx etc,
    ||
    || I have updated it for 1-2 but dont have it to hand as its on the lab
    || system due to problems with 1-2
    ||
    || Ian
    ||
    || Code follows
    ||
    || ;Storing 11 digit numbers in speeddial database can only be done by
    || sets with international context
    || exten => _30XX.,1, DBput(speed/${EXTEN:2:2}=${EXTEN:4:11})
    || exten => _30XX.,2, Playback(val_sp)
    || exten => _30XX.,3, DBget(spnum=speed/${EXTEN:2:2}) ;sets spnum to be
    || the required bin number
    || exten => _30XX.,4, Playback(currently)
    || exten => _30XX.,5, SayNumber(${EXTEN:2:2})
    || exten => _30XX.,6, Playback(is-set-to)
    || exten => _30XX.,7, SayDigits(${spnum})
    || exten => _30XX.,8, Hangup
    ||
    ||
    || ;Reading the stored number back.
    || exten => _31XX,1, DBget(spnum=speed/${EXTEN:2:2}) ;sets spnum to be the
    || required bin number
    || exten => _31XX,2, Playback(currently)
    || exten => _31XX,3, SayNumber(${EXTEN:2:2})
    || exten => _31XX,4, Playback(is-set-to)
    || exten => _31XX,5, SayDigits(${spnum})
    || exten => _31XX,6, Hangup
    ||
    || ;Retreiving numbers for alog dialing
    || exten => _39XX,1, DBget(spnum=speed/${EXTEN:2:2}) ;sets spnum to be the
    || required bin number
    || exten => _39XX,2, Dial(${TRUNK1}/${spnum})
    || exten => _39XX,3, Congestion
    ||
    || ;Retreiving numbers for iax dialing
    || exten => _38XX,1, DBget(spnum=speed/${EXTEN:2:2}) ;sets spnum to be the
    || required bin number
    || exten => _38XX,2, Dial(${TRUNKiax}/44${spnum:${TRUNKMSD}})
    || exten => _38XX,3, Congestion
    ||
    || ;Retreiving numbers for alog Phonecoop dialing
    || exten => _37XX,1, DBget(spnum=speed/${EXTEN:2:2}) ;sets spnum to be the
    || required bin number
    || exten => _37XX,2, Dial(${TRUNK1}/184088${spnum})
    || exten => _37XX,3, Congestion

    What would be wrong with running this on version 1.2 as is?
     
    Jono, Nov 26, 2005
    #4
  5. Jono

    Ian Guest

    <SNIP>
    > What would be wrong with running this on version 1.2 as is?
    >
    >


    Loads of debug errors , and this method will not be supported for ever so
    its worth changing it now as is the case with all the other changes.

    part of the 1-2 version is at http://www.voipuser.org/forum_topic_3123.html
    on the second page.

    I think i first posted my first version in august 2004 to
    http://asterisk.xvoip.com/ now sadly dead :-( my final version was written
    in jan this year, But its a very simple database store and call routine

    Ian
     
    Ian, Nov 26, 2005
    #5
  6. Jono

    Jono Guest

    "Ian" <spam"AT"bathfordhill.co.uk> wrote in message
    news:...
    > <SNIP>
    >> What would be wrong with running this on version 1.2 as is?
    >>
    >>

    >
    > Loads of debug errors , and this method will not be supported for ever so
    > its worth changing it now as is the case with all the other changes.
    >
    > part of the 1-2 version is at
    > http://www.voipuser.org/forum_topic_3123.html
    > on the second page.
    >
    > I think i first posted my first version in august 2004 to
    > http://asterisk.xvoip.com/ now sadly dead :-( my final version was
    > written
    > in jan this year, But its a very simple database store and call routine
    >
    > Ian
    >
    >


    I'm currently using asterisk@home 1.3 which has asterisk 1.0.9.

    I am thinking of trying a@h 2.0 (with asterisk 1.2)................will I
    find I'll have to re-work everything I've done?!

    Should I stick with v1.0.9? What would you say are the benefits of v1.2?
     
    Jono, Nov 27, 2005
    #6
  7. Jono

    Ian Guest

    Hi
    >
    > I'm currently using asterisk@home 1.3 which has asterisk 1.0.9.
    >
    > I am thinking of trying a@h 2.0 (with asterisk 1.2)................will I
    > find I'll have to re-work everything I've done?!
    >
    > Should I stick with v1.0.9? What would you say are the benefits of v1.2?


    Well thats the million dollar question. There are new apps and the code is
    tighter, It sort of depends on what you are doing and if you need the new
    apps. list of which is here
    http://cyber-cottage.co.uk/site/index.php?option=com_content&task=view&id=38&Itemid=31
    Then see if you ned any of the new ones, or in the case of AAH they have
    used them

    As to upgrading I would assume AAH would have an upgrade script that makes
    the changes which are detailed here.
    http://www.cyber-cottage.co.uk/wiki/index.php/Rc1-2_upgrade_txt in the
    upgrade notes as I would assume no expectation was made that AAH users wil
    be editing conf files to make the changes.

    Ian
     
    Ian, Nov 27, 2005
    #7
  8. Jono

    Jono Guest

    Ian" <spam"AT wrote:
    || Hi
    |||
    ||| I'm currently using asterisk@home 1.3 which has asterisk 1.0.9.
    |||
    ||| I am thinking of trying a@h 2.0 (with asterisk
    ||| 1.2)................will I find I'll have to re-work everything I've
    ||| done?!
    |||
    ||| Should I stick with v1.0.9? What would you say are the benefits of
    ||| v1.2?
    ||
    || Well thats the million dollar question. There are new apps and the
    || code is tighter, It sort of depends on what you are doing and if you
    || need the new apps. list of which is here
    ||
    http://cyber-cottage.co.uk/site/index.php?option=com_content&task=view&id=38&Itemid=31
    || Then see if you ned any of the new ones, or in the case of AAH they
    || have used them
    ||
    || As to upgrading I would assume AAH would have an upgrade script that
    || makes the changes which are detailed here.
    || http://www.cyber-cottage.co.uk/wiki/index.php/Rc1-2_upgrade_txt in the
    || upgrade notes as I would assume no expectation was made that AAH users
    || wil be editing conf files to make the changes.
    ||
    || Ian

    Hi Ian,

    Thanks for pointing me to your informative site.

    The expectation with a@h is that you start from scratch. I've not found an
    easy way to upgrade, which doesn't break something.

    You state " The dialplan expression parser (which handles $[ ... ]
    constructs) has gone through a major upgrade"

    Could you cast your eye over the following and let me know what changes
    might be needed, if I install v1.2?

    [custom-landline-in]
    exten => 7654321,1,NoOp(Incoming call from Sip #7654321)
    exten => 7654321,2,ringing(3)
    exten => 7654321,3,Wait(5)
    exten => 7654321,4,Congestion
    exten => 7654321,5,Hangup
    exten => h,1,Goto(100)
    exten => h,100,GotoIf($[${CALLERIDNUM} :
    0[1-2][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]])?:999)
    exten => h,101,System(echo channel: IAX2/sipdiscount/0044${CALLERIDNUM:1} >
    /tmp/${CALLERIDNUM})
    exten => h,102,System(echo context: custom-disa-callout >>
    /tmp/${CALLERIDNUM})
    exten => h,103,System(echo extension: ${CALLERIDNUM} >> /tmp/${CALLERIDNUM})
    exten => h,104,System(echo priority: 1 >> /tmp/${CALLERIDNUM})
    exten => h,105,System(echo callerid: 01277654321 >> /tmp/${CALLERIDNUM}) ;
    Your CallerID for your SIP account goes here
    exten => h,106,System(echo sleep 20 > /tmp/${CALLERIDNUM}.2)
    exten => h,107,System(echo cp /tmp/${CALLERIDNUM}
    /var/spool/asterisk/outgoing >> /tmp/${CALLERIDNUM}.2)
    exten => h,108,System(chmod 775 /tmp/${CALLERIDNUM}.2)
    exten => h,109,System(/tmp/${CALLERIDNUM}.2)
    exten => h,110,Goto(999)
    exten => h,999,Hangup()
     
    Jono, Nov 28, 2005
    #8
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Sparks

    Asterisk@Home Speed Dials

    Sparks, Jul 23, 2005, in forum: UK VOIP
    Replies:
    3
    Views:
    724
    Sparks
    Jul 23, 2005
  2. Jono
    Replies:
    12
    Views:
    964
    paul123
    Nov 4, 2005
  3. Jono
    Replies:
    0
    Views:
    505
  4. Sparks

    asterok@home - Speed Dials

    Sparks, Nov 17, 2005, in forum: UK VOIP
    Replies:
    5
    Views:
    1,064
    adamc
    Nov 29, 2005
  5. Sparks
    Replies:
    1
    Views:
    660
Loading...

Share This Page