RE: [Asterisk-Users] Billing (itemized) in the UK

2004-11-25 Thread Robinson Tim-W10277

Hi Peter
You need to first of all ask your Telco what mechanism it uses with your
current switch.  The most likely ways are 

1) Two stage dialling.  1xxx  pause PIN exten dialled number
2) access code  1xxx exten dialled number

You need to get the specs for this from Your Communications.  It is not
clear from the web site...

Asterisk will cope perfectly with either solution - you will just need
to fiddle a bit with the dial plan. Once we know what you have to send
to the telco there are tons of people here who will advise on the Dial
command you should use to achieve what you want.

Rgds
Tim Robinson
Ps. Any reason why you chose to stick with the analogue solution? Is
this just risk mitigation in the early stages? (this is a valid reason,
btw!)



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Peter
Hoppe
Sent: 25 November 2004 10:54
To: [EMAIL PROTECTED]
Subject: [Asterisk-Users] Billing (itemized) in the UK


Hello!

We are located in the UK, and we are planning to replace our old pbx
with an asterisk based pbx. For 
outgoing calls our present pbx is connected to three PSTN lines which
all have the same number. 
Internally, the pbx caters for quite a few extensions, and each
extension can make outbound phone calls.

Our telecom provider (your communications) gives us monthly itemized
bills that list all of the 
calls per extension, i.e. from the bill we are able to tell which
internal extension made what call 
to which destination at which date/time, how long this call was in
minutes and how much that 
particular call costs.

We would like to reuse the three PSTN lines with the asterisk system,
and at present there are no 
plans to utilize other connectiviy (such as ISDN) - we would like to
stick with the three PSTN lines.

My understanding is that when the asterisk system is running we won't
get any itemized bills any 
more since the telecom provider has no way of telling from which
extension a call originated.


Questions:

To give the extension information to the telco...

How can I configure Asterisk to do send extension information?

What signalling do I have to provide for outgoing calls to give
extension information the telco?

Is there a standard for sending extension numbers (i.e. do I have to
send some DTMF digits)?

Is there a software / asterisk extension (that works in the UK) that
allows asterisk to send 
extension info?

Do I need to buy some equipment that can provide this info to the telco?
Which?

Where could I find more information on that subject?



Thank you very much for your consideration.



___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] Billing (itemized) in the UK

2004-11-25 Thread Senad

To give the extension information to the telco...

How can I configure Asterisk to do send extension information?

[Senad Jordanovic] 
This greatly depends on your provider...

What signalling do I have to provide for outgoing calls to give
extension
information the telco?

[Senad Jordanovic] 
What PBX are you using currently?

Is there a standard for sending extension numbers (i.e. do I have to
send
some DTMF digits)?

[Senad Jordanovic] 
On POTS lines no. On BRI/PRI yes...

Where could I find more information on that subject?

[Senad Jordanovic] 
Try http://www.voip-info.org/tiki-index.php?page=Asterisk


Senad Jordanovic
Bicom Systems, 
The complete systems provider
www.bicomsystems.com
USA 1-212-400-7921
UK   0870 682 782

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] Billing (itemized) in the UK

2004-11-25 Thread David J Carter
Pete,

I am also in the UK and I have added an include in my extensions.conf for
the file listed bellow.

exten = _15X,1,Dial,${TRUNK}/BYEXTENSION
exten = _147X,1,Dial,${TRUNK}/BYEXTENSION
exten = _NX,1,Dial,${TRUNK}/BYEXTENSION
exten = _01.,1,Dial,${TRUNK}/BYEXTENSION
exten = _07.,1,Dial,${TRUNK}/BYEXTENSION
exten = _08.,1,Dial,${TRUNK}/BYEXTENSION
exten = _09.,1,goto(nogo,1)

You dont need a 9 for a line, you couls also add lines for barred numbers


Regards

Dave
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Peter Hoppe
Sent: 25 November 2004 13:34
To: [EMAIL PROTECTED]
Subject: [Asterisk-Users] Billing (itemized) in the UK


Thank you very much for the answer! I think it is a good path to look at. I
have had a look through
our paperwork for the present pbx, and I found one document that seemed to
indicate we have to dial

1666extndialled_number

to give the extn info to the telco. The paper is a bit old (1999) and since
then we have changed our
telco, but I guess that this protocol is still valid. This afternoon I will
hook up a recording
device on the line and see which digits are actually dialled when I dial an
outside line. From the
recording I should be able to reconstruct which digits have actually been
dialled by the pbx.

If the protocol is correct, I could construct a dial command such as

exten = _9.,1,Dial(Zap/g1/1666ID${EXTEN:1})

or so - I would just need a way to construct id - and then any caller from
an inside device would
just prepend a '9' before the real number. I probably would also bar simple
'9' dialling to get an
outside line... lets see.


Keep you posted, and so many thanks for all the help!

P

 Hi Peter
 You need to first of all ask your Telco what mechanism it uses with your
 current switch.  The most likely ways are

 1) Two stage dialling.  1xxx  pause PIN exten dialled number
 2) access code1xxx exten dialled number

 You need to get the specs for this from Your Communications.  It is not
 clear from the web site...

 Asterisk will cope perfectly with either solution - you will just need
 to fiddle a bit with the dial plan. Once we know what you have to send
 to the telco there are tons of people here who will advise on the Dial
 command you should use to achieve what you want.

 Rgds
 Tim Robinson
 Ps. Any reason why you chose to stick with the analogue solution? Is
 this just risk mitigation in the early stages? (this is a valid reason,
 btw!)



 -Original Message-
 From: asterisk-users-bounces at lists.digium.com
 [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Peter
 Hoppe
 Sent: 25 November 2004 10:54
 To: asterisk-users at lists.digium.com
 Subject: [Asterisk-Users] Billing (itemized) in the UK


 Hello!

 We are located in the UK, and we are planning to replace our old pbx
 with an asterisk based pbx. For
 outgoing calls our present pbx is connected to three PSTN lines which
 all have the same number.
 Internally, the pbx caters for quite a few extensions, and each
 extension can make outbound phone calls.

 Our telecom provider (your communications) gives us monthly itemized
 bills that list all of the
 calls per extension, i.e. from the bill we are able to tell which
 internal extension made what call
 to which destination at which date/time, how long this call was in
 minutes and how much that
 particular call costs.

 We would like to reuse the three PSTN lines with the asterisk system,
 and at present there are no
 plans to utilize other connectiviy (such as ISDN) - we would like to
 stick with the three PSTN lines.

 My understanding is that when the asterisk system is running we won't
 get any itemized bills any
 more since the telecom provider has no way of telling from which
 extension a call originated.


 Questions:

 To give the extension information to the telco...

 How can I configure Asterisk to do send extension information?

 What signalling do I have to provide for outgoing calls to give
 extension information the telco?

 Is there a standard for sending extension numbers (i.e. do I have to
 send some DTMF digits)?

 Is there a software / asterisk extension (that works in the UK) that
 allows asterisk to send
 extension info?

 Do I need to buy some equipment that can provide this info to the telco?
 Which?

 Where could I find more information on that subject?



 Thank you very much for your consideration.

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] Billing (itemized) in the UK

2004-11-25 Thread Robinson Tim-W10277

You just need to do something like

exten = _9.,1,Dial(Zap/g1/1666$CALLERIDNUM${EXTEN:1})

You can also do some useful translations like

exten = _9[2-8]XX,1,Dial(Zap/g1/1666$CALLERIDNUM0113${EXTEN:1})

This will look for 9, then a local number beginning 2,3,4,5,6,7,8 , and
dial out the extension number, followed by the 0113 area code.

You will need to make sure that 999 and 112 go direct to BT by using
another line in the extensions file. E.g.
exten = ,1,Dial(Zap/g1/999)
exten = 9112,1,Dial(Zap/g1/112)

And probably 

exten = 999,1,Dial(Zap/g1/999)

Just to be on the safe side!

You could also write a little macro to kick another user off their call
to allow the emergency call to get priority.

There is just so much cool stuff you can do.  But do test well!

Rgds
Tim

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Peter
Hoppe
Sent: 25 November 2004 13:34
To: [EMAIL PROTECTED]
Subject: [Asterisk-Users] Billing (itemized) in the UK

If the protocol is correct, I could construct a dial command such as

exten = _9.,1,Dial(Zap/g1/1666ID${EXTEN:1})

or so - I would just need a way to construct id - and then any caller
from an inside device would 
just prepend a '9' before the real number. I probably would also bar
simple '9' dialling to get an 
outside line... lets see.
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Billing (itemized) in the UK

2004-11-25 Thread Peter Hoppe
Thank you very much for the answers - I have hooked up a special adapter and active loudspeaker on 
each of the three BT lines, but when I got a line and dial a number I cannot hear any other digits 
than those I dial - I would have expected something like seven DTMF bursts/digits (16662xx) before 
my digits are audible. Near the pbx I have noticed a small white box saying 'Smiths communications' 
and 'SC14' on the lid. The box is connected to two cables - one to a power supply, the other is a 4 
pair telephone installation cable with 3 pairs connected. Next to the box is a switch with some 
labels on it: one label says 'LINE 1'. The other two labels describe the switch settings - 'SYSTEM' 
and 'A/PH MOD'. I have the suspicion that the white box has something to do with the billing and 
that it sends some fast data over one of the lines when an outside call is initiated, but I am not 
sure. I'll continue to hunt.

I also asked the telecom provider but they were not very helpful and couldn't 
(or didn't wish to)
give me any information as to the technical details.
I'll hunt on...
P

Robinson Tim-W10277 wrote:
You just need to do something like
exten = _9.,1,Dial(Zap/g1/1666$CALLERIDNUM${EXTEN:1})
You can also do some useful translations like
exten = _9[2-8]XX,1,Dial(Zap/g1/1666$CALLERIDNUM0113${EXTEN:1})
This will look for 9, then a local number beginning 2,3,4,5,6,7,8 , and
dial out the extension number, followed by the 0113 area code.
You will need to make sure that 999 and 112 go direct to BT by using
another line in the extensions file. E.g.
exten = ,1,Dial(Zap/g1/999)
exten = 9112,1,Dial(Zap/g1/112)
And probably 

exten = 999,1,Dial(Zap/g1/999)
Just to be on the safe side!
You could also write a little macro to kick another user off their call
to allow the emergency call to get priority.
There is just so much cool stuff you can do.  But do test well!
Rgds
Tim
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Peter
Hoppe
Sent: 25 November 2004 13:34
To: [EMAIL PROTECTED]
Subject: [Asterisk-Users] Billing (itemized) in the UK
If the protocol is correct, I could construct a dial command such as
exten = _9.,1,Dial(Zap/g1/1666ID${EXTEN:1})
or so - I would just need a way to construct id - and then any caller
from an inside device would 
just prepend a '9' before the real number. I probably would also bar
simple '9' dialling to get an 
outside line... lets see.
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users



--
There are 10 kinds of people in the world,
those who understand binary, and those who don't.

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Billing (itemized) in the UK

2004-11-25 Thread Peter Hoppe
Solution found!
I connected a recording device to the line and called the same number (near London) from different 
devices. The recording I played into an audio editor (cool edit) and played the files with a program 
that could decode DTMF signals. The program then showed the numbers I dialed. Except for the 
recording from one or two devices (missed digit / double digit = audio not clean) with every 
device the dialled number was:

1666wwwstation_idwdialed_number
The first tests failed because I tried a local number and we have least-cost-routing as well, so 
that 1666 only works with non-local numbers.

So many thanks for all your help, esp. Tim Robinson's comment which brought me on the right track! 
Also for those who gave me different dial commands - I will look into that. We should now be able to 
connect asterisk to the PSTN line and still get the itemized bills from our telco as before.

One post asked why we wouldn't move over to ISDN - the reason is that our analog lines have so far 
sufficed for us in every respect and I try to follow the maxime: If it ain't broke, don't fix it.

Peter

Peter Hoppe wrote:
Thank you very much for the answers - I have hooked up a special adapter 
and active loudspeaker on each of the three BT lines, but when I got a 
line and dial a number I cannot hear any other digits than those I dial 
- I would have expected something like seven DTMF bursts/digits 
(16662xx) before my digits are audible. Near the pbx I have noticed a 
small white box saying 'Smiths communications' and 'SC14' on the lid. 
The box is connected to two cables - one to a power supply, the other is 
a 4 pair telephone installation cable with 3 pairs connected. Next to 
the box is a switch with some labels on it: one label says 'LINE 1'. The 
other two labels describe the switch settings - 'SYSTEM' and 'A/PH MOD'. 
I have the suspicion that the white box has something to do with the 
billing and that it sends some fast data over one of the lines when an 
outside call is initiated, but I am not sure. I'll continue to hunt.

I also asked the telecom provider but they were not very helpful and 
couldn't (or didn't wish to)
give me any information as to the technical details.

I'll hunt on...
P

Robinson Tim-W10277 wrote:
You just need to do something like
exten = _9.,1,Dial(Zap/g1/1666$CALLERIDNUM${EXTEN:1})
You can also do some useful translations like
exten = _9[2-8]XX,1,Dial(Zap/g1/1666$CALLERIDNUM0113${EXTEN:1})
This will look for 9, then a local number beginning 2,3,4,5,6,7,8 , and
dial out the extension number, followed by the 0113 area code.
You will need to make sure that 999 and 112 go direct to BT by using
another line in the extensions file. E.g.
exten = ,1,Dial(Zap/g1/999)
exten = 9112,1,Dial(Zap/g1/112)
And probably
exten = 999,1,Dial(Zap/g1/999)
Just to be on the safe side!
You could also write a little macro to kick another user off their call
to allow the emergency call to get priority.
There is just so much cool stuff you can do.  But do test well!
Rgds
Tim
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Peter
Hoppe
Sent: 25 November 2004 13:34
To: [EMAIL PROTECTED]
Subject: [Asterisk-Users] Billing (itemized) in the UK
If the protocol is correct, I could construct a dial command such as
exten = _9.,1,Dial(Zap/g1/1666ID${EXTEN:1})
or so - I would just need a way to construct id - and then any caller
from an inside device would just prepend a '9' before the real number. 
I probably would also bar
simple '9' dialling to get an outside line... lets see.
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users




--
There are 10 kinds of people in the world,
those who understand binary, and those who don't.

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users