UKVoIPTalk.com

UKVoIPTalk.com

The UK's Number One VoIP Resource

 

Betamax caller ID with Asterisk

This is a discussion on Betamax caller ID with Asterisk within the uk.telecom.voip forums, part of the Newsgroup Forums category; Apologies for the multiple posts guys. -- Graham. %Profound_observation%...


Go Back   UKVoIPTalk.com > Newsgroup Forums > uk.telecom.voip

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read



Reply

 

LinkBack Thread Tools Display Modes
  #21 (permalink)  
Old 18-07-2008, 00:00
Graham.
Guest
 
Posts: n/a
Default Re: Betamax caller ID with Asterisk

Apologies for the multiple posts guys.

--
Graham.

%Profound_observation%


Reply With Quote
  #22 (permalink)  
Old 18-07-2008, 00:41
voiptalker@gmail.com
Guest
 
Posts: n/a
Default Re: Betamax caller ID with Asterisk

On Jul 17, 11:36*pm, alexd <troffa...@hotmail.com> wrote:[color=blue]
> On Thu, 17 Jul 2008 10:40:55 -0700, voiptalker wrote:[color=green]
> > But, do you know of any way to send CLI based on number called? For
> > example, I'd like London based contacts to see my London number when
> > they receive a call, Cambridge contacts to see a Cambridge number and
> > Paris contacts to see a Paris CLI - no matter which extension the call
> > is made from.[/color]
>
> Is this with FreePBX or vanilla Asterisk? Asterisk dialplans certainly
> provide the power and flexibility to do this; whether or not you can with
> FreePBX is another matter :-)[/color]

Yes, sorry I meant with FreePBX. I realise vanilla Asterisk could do
it, and I wish I could, but that's beyond my capabilities ;=)
Reply With Quote
  #23 (permalink)  
Old 18-07-2008, 01:00
voiptalker@gmail.com
Guest
 
Posts: n/a
Default Re: Betamax caller ID with Asterisk

On Jul 18, 12:07*am, Theo Markettos <theom
+n...@chiark.greenend.org.uk> wrote:[color=blue]
> voiptal...@gmail.com wrote:[color=green]
> > But, do you know of any way to send CLI based on number called? For
> > example, I'd like London based contacts to see my London number when
> > they receive a call, Cambridge contacts to see a Cambridge number and
> > Paris contacts to see a Paris CLI - no matter which extension the call
> > is made from.[/color]
>
> If you can make Asterisk's CLID feature work, how about something like:
>
> exten => _004420X.,1,Set(CALLERID(num)=00442012345678)
> exten => _004420X.,2,Dial(SIP/${EXTEN}@provider)
> exten => _00441223X.,1,Set(CALLERID(num)=00441223999999)
> exten => _00441223X.,2,Dial(SIP/${EXTEN}@provider)
> exten => _0033X.,1,Set(CALLERID(num)=0033123456789)
> exten => _0033X.,2,Dial(SIP/${EXTEN}@provider)
>
> (All completely untested)
>
> Except that I can't make this feature work :([/color]

Many thanks, I'll have a bash when I get a free hour or three. That
gets slotted into extensions.conf or extensions_custom.conf I suppose?

Would that interfere with/bypass FreePbx's Outbound Routes? If for
some reason Betamax was down, then a second trunk (another SIP
provider or landline) would be used.
Reply With Quote
  #24 (permalink)  
Old 18-07-2008, 01:15
voiptalker@gmail.com
Guest
 
Posts: n/a
Default Re: Betamax caller ID with Asterisk

On Jul 18, 12:33*am, Jono <notha...@blueyonder.invalid> wrote:[color=blue]
> alexd explained on 17/07/2008 :
>[color=green]
> > On Thu, 17 Jul 2008 10:40:55 -0700, voiptalker wrote:[/color]
>[color=green][color=darkred]
> >> But, do you know of any way to send CLI based on number called? For
> >> example, I'd like London based contacts to see my London number when
> >> they receive a call, Cambridge contacts to see a Cambridge number and
> >> Paris contacts to see a Paris CLI - no matter which extension the call
> >> is made from.[/color][/color]
>[color=green]
> > Is this with FreePBX or vanilla Asterisk? Asterisk dialplans certainly
> > provide the power and flexibility to do this; whether or not you can with
> > FreePBX is another matter :-)[/color]
>
> I can't see voiptalker's post..
>
> Anyway, yes it can be done in FreePBX.[/color]

OK. I don't immediately see how to achieve this
[color=blue]
> A bit cumbersome in the gui; nevertheless, possible.[/color]

Sounds a bit like "now don't try this at home now kids" :) I'll have a
tinker with Theo's idea to see what happens - or not..... Cheers
Reply With Quote
  #25 (permalink)  
Old 18-07-2008, 19:38
alexd
Guest
 
Posts: n/a
Default Re: Betamax caller ID with Asterisk

On Thu, 17 Jul 2008 17:00:05 -0700, voiptalker wrote:
[color=blue]
> On Jul 18, 12:07Â*am, Theo Markettos <theom +n...@chiark.greenend.org.uk>
> wrote:[/color]
[color=blue][color=green]
>> If you can make Asterisk's CLID feature work, how about something like:
>>
>> exten => _004420X.,1,Set(CALLERID(num)=00442012345678)
>> exten => _004420X.,2,Dial(SIP/${EXTEN}@provider)
>> exten => _00441223X.,1,Set(CALLERID(num)=00441223999999)
>> exten => _00441223X.,2,Dial(SIP/${EXTEN}@provider)
>> exten => _0033X.,1,Set(CALLERID(num)=0033123456789)
>> exten => _0033X.,2,Dial(SIP/${EXTEN}@provider)[/color][/color]
[color=blue]
> Would that interfere with/bypass FreePbx's Outbound Routes?[/color]

The key is the Set() bit, which sets the CallerID based on the prefix of
the number you've dialled. Theo's example assumes you dial straight out
without pressing '9' first, in international format. So to call
02087654321, you would dial 00442087654321, and because that matches the
pattern '_004420X.', the CallerID for that call is set to
'0044201234568'. If you dial 9 first, change the pattern to '_9004420X.'.

So, you don't necessarily need the Dial() bit. After the Set(), you can
jump into wherever FreePBX does it's dialling [so long as FreePBX doesn't
Set(CALLERID anywhere after you've done it]. If you're going to be
testing this, I recommend you open an Asterisk console and 'core set
verbose 5' so you can see what it's doing.

--
<http://ale.cx/> (AIM:troffasky) (UnSoEsNpEaTm@ale.cx)
19:22:26 up 6 days, 21:57, 3 users, load average: 0.02, 0.05, 0.06
Convergence, n: The act of using separate DSL circuits for voice and data
Reply With Quote
  #26 (permalink)  
Old 18-07-2008, 19:40
alexd
Guest
 
Posts: n/a
Default Re: Betamax caller ID with Asterisk

On Thu, 17 Jul 2008 22:58:51 +0100, Ivor Jones wrote:
[color=blue]
> Well the way I do it is to make the call from a number in the relevant
> range.[/color]

That's what voiptalker is asking for.

--
<http://ale.cx/> (AIM:troffasky) (UnSoEsNpEaTm@ale.cx)
19:38:49 up 6 days, 22:13, 3 users, load average: 0.00, 0.03, 0.01
Convergence, n: The act of using separate DSL circuits for voice and data
Reply With Quote
  #27 (permalink)  
Old 18-07-2008, 20:08
Theo Markettos
Guest
 
Posts: n/a
Default Re: Betamax caller ID with Asterisk

[email]voiptalker@gmail.com[/email] wrote:[color=blue]
> Many thanks, I'll have a bash when I get a free hour or three. That
> gets slotted into extensions.conf or extensions_custom.conf I suppose?[/color]

extensions.conf. You'll need some kind of framework around it. I'm
assuming you have some kind of phone connected to the PBX, which you'll have
to arrange to land in that dialling context:

[fred]
....the lines I listed before
exten => h,1,HangUp

The last line above hangs up the PBX phone when the SIP call has hungup.
Let's assume there's a SIP desktop phone which connects to your Asterisk
server, the details of the connection will be described in sip.conf and will
have a line:
context=fred
which means that when someone picks up the desktop phone any dialling will
be passed to the [fred] block above. This tutorial should give you an
idea:
[url]http://www.asteriskguru.com/tutorials/asterisk_voip_ipphone.html[/url]

The same goes for softphones, IAX phones or PSTN phones via a linecard.
[color=blue]
> Would that interfere with/bypass FreePbx's Outbound Routes? If for
> some reason Betamax was down, then a second trunk (another SIP
> provider or landline) would be used.[/color]

Perhaps someone who knows FreePBX can comment? It might help to have a look
at what underlying Asterisk rules it generates.

Theo
Reply With Quote
  #28 (permalink)  
Old 18-07-2008, 22:09
Ivor Jones
Guest
 
Posts: n/a
Default Re: Betamax caller ID with Asterisk

In news:4880e389$0$640$bed64819@news.gradwell.net,
alexd <troffasky@hotmail.com> typed, for some strange, unexplained reason:
: On Thu, 17 Jul 2008 22:58:51 +0100, Ivor Jones wrote:
:
: > Well the way I do it is to make the call from a number in the
: > relevant range.
:
: That's what voiptalker is asking for.

I saw it as how to spoof the CLI so it didn't matter which number he was
using.

I just select which number to dial out on via my PBX. On my system, if you
dial the usual '9' you get a line at random, but if you dial '81' you get
Line 1, '82' gets you Line 2 and so on. A card detailing which prefix to
dial for which outgoing number is fixed to each extension phone, some have
preset buttons programmed.

In any case, it's a solution that works for me :-)

Ivor

Reply With Quote
  #29 (permalink)  
Old 23-07-2008, 23:05
DesG
Guest
 
Posts: n/a
Default Re: Betamax caller ID with Asterisk

On 17 Jul, 23:07, Theo Markettos <theom+n...@chiark.greenend.org.uk>
wrote:
[color=blue]
>
> If you can make Asterisk's CLID feature work, how about something like:
>
> exten => _004420X.,1,Set(CALLERID(num)=00442012345678)
> exten => _004420X.,2,Dial(SIP/${EXTEN}@provider)
> exten => _00441223X.,1,Set(CALLERID(num)=00441223999999)
> exten => _00441223X.,2,Dial(SIP/${EXTEN}@provider)
> exten => _0033X.,1,Set(CALLERID(num)=0033123456789)
> exten => _0033X.,2,Dial(SIP/${EXTEN}@provider)
>
> (All completely untested)
>
> Except that I can't make this feature work :(
>
> Theo[/color]

Here is a paste from my extensions.conf

exten => _078.,1,Set(CALLERID(num)=+3531440XXXX)

That works, so maybe you need to use the + instead of the 00 when
setting the CLID?

Cheers, Des.

Reply With Quote
  #30 (permalink)  
Old 24-07-2008, 00:28
Theo Markettos
Guest
 
Posts: n/a
Default Re: Betamax caller ID with Asterisk

DesG <desgibbons@gmail.com> wrote:[color=blue]
> Here is a paste from my extensions.conf
>
> exten => _078.,1,Set(CALLERID(num)=+3531440XXXX)
>
> That works, so maybe you need to use the + instead of the 00 when
> setting the CLID?[/color]

Does that work with Betamax? I don't doubt that the above setup works with
normal Asterisk installations, but Betamax seem to use a funny way to
indicate the outbound CLID. I think I tried all possible combinations of
the above without success, but maybe I missed something.

Theo
Reply With Quote
Reply

Thread Tools
Display Modes

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 Off
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 20:17.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0