Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Computing > UK VOIP > DISA & Voip DID with Asterisk@Home

Reply
Thread Tools

DISA & Voip DID with Asterisk@Home

 
 
The Cable Guy
Guest
Posts: n/a
 
      06-10-2005
Hello.

I am struggling to set up an inbound number that I can enter a PIN to obtain
a dial tone.........and then dial out on another trunk.

I've followed instructions for Asterisk, however, the Asterisk Management
Portal doesn't seem to cope (or is it me?)


 
Reply With Quote
 
 
 
 
JuliusP
Guest
Posts: n/a
 
      06-11-2005

You can make an extension such as 1234567890, which if matched, takes
you into another context that allows you to dial out

[inbound-pin]
exten => s,1,DigitTimeout,5
exten => s,2,ResponseTimeout,5
exten => s,3,Background(silence/1)
exten => 1234567890,Goto(new-context,s,1)
exten => t,1,Hangup
exten => i,1,Hangup

[new-context]
exten => s,1,DigitTimeout,5
exten => s,2,ResponseTimeout,5
exten => s,3,Background(silence/1)
exten => _0.,Dial(SIP/${EXTEN}@<some-provider-profile)
exten => t,1,Hangup
exten => i,1,Hangup

This is direct from config files, so not sure what you need for the web
GUI

 
Reply With Quote
 
Ian
Guest
Posts: n/a
 
      06-12-2005

"The Cable Guy" <> wrote in message
news:iSfqe.48253$ k...
> Hello.
>
> I am struggling to set up an inbound number that I can enter a PIN to

obtain
> a dial tone.........and then dial out on another trunk.
>
> I've followed instructions for Asterisk, however, the Asterisk Management
> Portal doesn't seem to cope (or is it me?)
>

Hi

Once you want to do the more complex dialplans then it may be worth sticking
to vi and the command line.

Here is the way i dial out FYI.
The passwords and CLI number is held in a database, so access can be tightly
controlled, using the accountcode means a cdr record is created for that
account.

;password system

exten => 567,1,Answer ; Answer the line
exten => 567,2,DBget(passkey=auth_user/${CALLERIDNUM})
exten => 567,3,Authenticate(${passkey})
exten => 567,4,SetAccount(${CALLERIDNUM})
exten => 567,5,Goto(ivr,s,1)

[ivr]

exten => s,1,Background(please_choose)
exten => s,2,DigitTimeout,5
exten => s,3,ResponseTimeout,15

;Option1 allows outdialing

exten => 1,1,Goto(ivr_dial,s,1)

;Option2 goes to vmail

exten => 2,1,Goto(demo,1571,1)

;Option3 reads last two numbers then goes to vmail

exten => 3,1, DBget(num=called/99) ;sets spnum to be the required bin number
exten => 3,2, SetVar(count=1.000000)
exten => 3,3, DBget(cnum=called/${num})
exten => 3,4, Playback(beep)
exten => 3,5, SayDigits(${cnum})
exten => 3,6, GotoIf($[${num} = 1.000000]?99
exten => 3,7, Math(num,${num}-1)
exten => 3,8, Math(count,${count}+1)
exten => 3,9, GotoIf($[${count} < 3.000000]?3)
exten => 3,10, Goto(demo,1571,1)
exten => 3,998,SetVar(num=10.000000)
exten => 3,999,Goto(3)

exten => 9,1,Goto(demo,s,1)


;Option0 Goes back to the begining

exten => 0,1,Goto(ivr,s,1)
exten => t,1,hangup
exten => i,1,Goto(s,1)

[ivr_dial]

include => international
exten => s,1,Background(please_dial)
exten => s,2,DigitTimeout,5
exten => s,3,ResponseTimeout,15

exten => t,1,hangup
exten => i,1,Goto(s,1)


Hope it will give you an idea of what is possible
Ian


 
Reply With Quote
 
The Cable Guy
Guest
Posts: n/a
 
      06-13-2005
JuliusP wrote:
|| You can make an extension such as 1234567890, which if matched, takes
|| you into another context that allows you to dial out
||
|| [inbound-pin]
|| exten => s,1,DigitTimeout,5
|| exten => s,2,ResponseTimeout,5
|| exten => s,3,Background(silence/1)
|| exten => 1234567890,Goto(new-context,s,1)
|| exten => t,1,Hangup
|| exten => i,1,Hangup
||
|| [new-context]
|| exten => s,1,DigitTimeout,5
|| exten => s,2,ResponseTimeout,5
|| exten => s,3,Background(silence/1)
|| exten => _0.,Dial(SIP/${EXTEN}@<some-provider-profile)
|| exten => t,1,Hangup
|| exten => i,1,Hangup
||
|| This is direct from config files, so not sure what you need for the
|| web GUI

Thanks for your input. It looks like another weekend's gonna be used up!


 
Reply With Quote
 
The Cable Guy
Guest
Posts: n/a
 
      06-13-2005
Ian" <spam"AT wrote:
|| "The Cable Guy" <> wrote in message
|| news:iSfqe.48253$ k...
||| Hello.
|||
||| I am struggling to set up an inbound number that I can enter a PIN
||| to obtain a dial tone.........and then dial out on another trunk.
|||
||| I've followed instructions for Asterisk, however, the Asterisk
||| Management Portal doesn't seem to cope (or is it me?)
|||
|| Hi
||
|| Once you want to do the more complex dialplans then it may be worth
|| sticking to vi and the command line.
||
|| Here is the way i dial out FYI.
|| The passwords and CLI number is held in a database, so access can be
|| tightly controlled, using the accountcode means a cdr record is
|| created for that account.
||
<snipped but saved & not ignored>

||
|| Hope it will give you an idea of what is possible
|| Ian

Hi Ian,

I (think) I knew what was possible............except I'm finding this bit
IMpossible

Changing the subject, how would I prefix an incoming SIP Caller ID with a
single digit. I want 01132345678 to show up on my CID as 901132345678 - so
that I can dial it easily.

I've been able to do this easily on my PSTN line as I'm using a Sipura
SPA3000 which is able to add the prefix.


 
Reply With Quote
 
Ian
Guest
Posts: n/a
 
      06-13-2005

"The Cable Guy" <> wrote in message
news:l5jre.49813$. uk...
> Ian" <spam"AT wrote:
> || "The Cable Guy" <> wrote in message
> || news:iSfqe.48253$ k...
> ||| Hello.
> |||
> ||| I am struggling to set up an inbound number that I can enter a PIN
> ||| to obtain a dial tone.........and then dial out on another trunk.
> |||
> ||| I've followed instructions for Asterisk, however, the Asterisk
> ||| Management Portal doesn't seem to cope (or is it me?)
> |||
> || Hi
> ||
> || Once you want to do the more complex dialplans then it may be worth
> || sticking to vi and the command line.
> ||
> || Here is the way i dial out FYI.
> || The passwords and CLI number is held in a database, so access can be
> || tightly controlled, using the accountcode means a cdr record is
> || created for that account.
> ||
> <snipped but saved & not ignored>
>
> ||
> || Hope it will give you an idea of what is possible
> || Ian
>
> Hi Ian,
>
> I (think) I knew what was possible............except I'm finding this bit
> IMpossible
>
> Changing the subject, how would I prefix an incoming SIP Caller ID with a
> single digit. I want 01132345678 to show up on my CID as 901132345678 - so
> that I can dial it easily.
>
> I've been able to do this easily on my PSTN line as I'm using a Sipura
> SPA3000 which is able to add the prefix.
>
>

well

SetCallerID(9${CALLERIDNUM})

seems to work Ok, you could also try SetCIDNum but even though it sets the
number internally the sets still display it with out the 9

Ian


 
Reply With Quote
 
The Cable Guy
Guest
Posts: n/a
 
      06-13-2005

"Ian" <spam"AT"bathfordhill.co.uk> wrote in message
news:...
>


>>
>> Changing the subject, how would I prefix an incoming SIP Caller ID with a
>> single digit. I want 01132345678 to show up on my CID as 901132345678 -
>> so
>> that I can dial it easily.
>>


>>

> well
>
> SetCallerID(9${CALLERIDNUM})
>
> seems to work Ok, you could also try SetCIDNum but even though it sets
> the
> number internally the sets still display it with out the 9
>
> Ian
>
>


Hmm, I should've paid more attention during the foreign language
lessons.............

Do I do this from the Command line?


 
Reply With Quote
 
Ian
Guest
Posts: n/a
 
      06-13-2005

"The Cable Guy" <> wrote in message
news:ODkre.49872$. uk...
>
> "Ian" <spam"AT"bathfordhill.co.uk> wrote in message
> news:...
> >

>
> >>
> >> Changing the subject, how would I prefix an incoming SIP Caller ID with

a
> >> single digit. I want 01132345678 to show up on my CID as 901132345678 -
> >> so
> >> that I can dial it easily.
> >>

>
> >>

> > well
> >
> > SetCallerID(9${CALLERIDNUM})
> >
> > seems to work Ok, you could also try SetCIDNum but even though it sets
> > the
> > number internally the sets still display it with out the 9
> >
> > Ian
> >
> >

>
> Hmm, I should've paid more attention during the foreign language
> lessons.............
>
> Do I do this from the Command line?
>
>

Ah these gui users

The line needs to be added to the context for the incoming call in the
extensions.conf so it looks similar to this.

exten => ${sipgate},1,SetCallerID(9${CALLERIDNUM})
exten => ${sipgate},2,Dial(SIP/phone17,30,t,r)
exten => ${sipgate},3,Voicemail(u2204)
exten => ${sipgate},102,voicemail(b2204)
exten => ${sipgate},103,Hangup

so you will need to edit the file with vi or what ever editor you use when
connecting to the box via putty or what ever SSH client you are using.

Ian


 
Reply With Quote
 
The Cable Guy
Guest
Posts: n/a
 
      06-13-2005
Ian" <spam"AT wrote:
|| "The Cable Guy" <> wrote in message
|| news:ODkre.49872$. uk...
|||
||| "Ian" <spam"AT"bathfordhill.co.uk> wrote in message
||| news:...
||||
|||
|||||
||||| Changing the subject, how would I prefix an incoming SIP Caller
||||| ID with a single digit. I want 01132345678 to show up on my CID
||||| as 901132345678 - so
||||| that I can dial it easily.
|||||
|||
|||||
|||| well
||||
|||| SetCallerID(9${CALLERIDNUM})
||||
|||| seems to work Ok, you could also try SetCIDNum but even though it
|||| sets the
|||| number internally the sets still display it with out the 9
||||
|||| Ian
||||
||||
|||
||| Hmm, I should've paid more attention during the foreign language
||| lessons.............
|||
||| Do I do this from the Command line?
|||
|||
|| Ah these gui users
||
Hehe. Trouble is, I've got it to a point, following lots of work, where it's
doing what I want it to do. I can't face the transition to non-@home
version.

|| The line needs to be added to the context for the incoming call in
|| the extensions.conf so it looks similar to this.
||
|| exten => ${sipgate},1,SetCallerID(9${CALLERIDNUM})
|| exten => ${sipgate},2,Dial(SIP/phone17,30,t,r)
|| exten => ${sipgate},3,Voicemail(u2204)
|| exten => ${sipgate},102,voicemail(b2204)
|| exten => ${sipgate},103,Hangup
||
|| so you will need to edit the file with vi or what ever editor you
|| use when connecting to the box via putty or what ever SSH client you
|| are using.
||
|| Ian

Putty is not something which I relate to computers!

I think I know what you mean......I'll let you know.



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Asterisk@Home DISA question paul123 UK VOIP 2 06-02-2006 09:33 PM
Voip Updated Howto,Voip AT Home,Voip Phones,Voip Conference Calling likatrib@gmail.com Wireless Networking 0 05-30-2006 05:16 PM
Voip at Home,Voip Updated Howto,New Voip Phones,Voip Conferencing, jonbonmike@gmail.com Wireless Networking 0 05-26-2006 01:56 PM
Voip at Home,Voip Updated Howto,New Voip Phones,Voip Conferencing, jonbonmike@gmail.com VOIP 0 05-26-2006 01:42 PM
Asterisk only for VoIP? abUser VOIP 3 01-24-2005 02:33 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57