Re: [Asterisk-Users] add 0 (zero) to incoming callerID - how?

2005-09-22 Thread Matt Riddell
Bruno De Luca wrote:
> Correct: Use ${DNID} to get the number. I'm sorry.
> Bruno.

${CALLERIDNUM} is the most commonly used.

-- 
Cheers,

Matt Riddell
___

http://www.sineapps.com/news.php (Daily Asterisk News - html)
http://www.sineapps.com/rssfeed.php (Daily Asterisk News - rss)
___
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
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] add 0 (zero) to incoming callerID - how?

2005-09-22 Thread Bruno De Luca




Correct: Use ${DNID} to get the number. I'm sorry.
Bruno.

Bruno De Luca wrote:

  
  
  
Use
  
  ${CHANNEL} to get the number
  
then
  SetCIDNum() to set the new number w/ zero.
  
  
  
Tomasz Chmielewski wrote:
  I have an
asterisk box and SIP / IAX2 phones. 

To call out, users have to add 0 (zero) before a real telephone number.


That means, that if they want to call someone that has a number 123456,

they have to call 0-123456. 

Simple, right? 

This has a serious drawback though - when someone calls us from the 
number 123456, we see the callerID 123456, and we're unable to use the 
callback/redial feature in the telephone (because the phone doesn't
know 
that it should add 0 before the number). 


So the idea is to manipulate the incoming callerID number, and to add a

0 before it. 

This way the telephone user will be able to callback/redial. 

How can I manipulate the incoming callerID number (and add 0 before
it)? 


  
  
  
  -- 


 BRUNO DE LUCA
 Tel. +39 02 9350 4780 (102)
 
 FG&A Software
 20017 Rho - Via Puccini, 8

 E-Mail :
[EMAIL PROTECTED]
 Internet:
http://www.fgasoftware.com
  

___
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users



-- 


 BRUNO DE LUCA
 Tel. +39 02 9350 4780 (102)
 
 FG&A Software
 20017 Rho - Via Puccini, 8

 E-Mail :
[EMAIL PROTECTED]
 Internet:
http://www.fgasoftware.com




___
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
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] add 0 (zero) to incoming callerID - how?

2005-09-22 Thread Bruno De Luca





Use

${CHANNEL} to get the number

then
SetCIDNum() to set the new number w/ zero.



Tomasz Chmielewski wrote:
I have an
asterisk box and SIP / IAX2 phones.
  
  
To call out, users have to add 0 (zero) before a real telephone number.
  
  
That means, that if they want to call someone that has a number 123456,
  
they have to call 0-123456.
  
  
Simple, right?
  
  
This has a serious drawback though - when someone calls us from the
  
number 123456, we see the callerID 123456, and we're unable to use the
  
callback/redial feature in the telephone (because the phone doesn't
know
  
that it should add 0 before the number).
  
  
  
So the idea is to manipulate the incoming callerID number, and to add a
  
0 before it.
  
  
This way the telephone user will be able to callback/redial.
  
  
How can I manipulate the incoming callerID number (and add 0 before
it)?
  
  
  



-- 


 BRUNO DE LUCA
 Tel. +39 02 9350 4780 (102)
 
 FG&A Software
 20017 Rho - Via Puccini, 8

 E-Mail :
[EMAIL PROTECTED]
 Internet:
http://www.fgasoftware.com


___
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
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] add 0 (zero) to incoming callerID - how?

2005-09-22 Thread Matt Riddell
Michiel van Baak wrote:
> Set(CALLERID(number)=0123456789)
> SetCIDNum(0123456789)

And

> Set(CALLERID(name)=My name)
> SetCIDName(My Name)

I prefer the old one, was much more simple.  It seems with the new formats in
Asterisk I always end up with extension lines that are wider than my screen
width whereas the old versions are long, but not too wide.

Each to their own!

:D

-- 
Cheers,

Matt Riddell
___

http://www.sineapps.com/news.php (Daily Asterisk News - html)
http://www.sineapps.com/rssfeed.php (Daily Asterisk News - rss)
___
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
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] add 0 (zero) to incoming callerID - how?

2005-09-21 Thread Michiel van Baak
On 16:46, Thu 22 Sep 05, Matt Riddell wrote:
> Michiel van Baak wrote:
> > On 02:57, Thu 22 Sep 05, Matt Riddell wrote:
> >>Tomasz Chmielewski wrote:
> >>
> >>>How can I manipulate the incoming callerID number (and add 0 before it)?
> >>
> >>exten => s,1,Answer()
> >>exten => s,2,SetCIDNum(0${CALLERIDNUM})
> >>exten => s,3,...
> > 
> > 
> > And when using CVS head this will become:
> > exten => s,1,Set(CALLERID(number)=0${CALLERIDNUM})
> > exten => s,2,.
> 
> Now, which do you think looks nicest?  The newest and greatest?
> 
> H
> 
> -- 
> Cheers,
> 
> Matt Riddell

I love the new syntax.
In the stable you have:
SetCallerID
SetCIDNum
SetCIDName

compare that to:
Set(CALLERID(number)=0123456789)
Set(CALLERID(name)=My name)

;)
-- 
Michiel van Baak
http://michiel.vanbaak.info
[EMAIL PROTECTED]
GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7E0B9A2D

"Why is it drug addicts and computer afficionados are both called users?"

___
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
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] add 0 (zero) to incoming callerID - how?

2005-09-21 Thread Matt Riddell
Michiel van Baak wrote:
> On 02:57, Thu 22 Sep 05, Matt Riddell wrote:
>>Tomasz Chmielewski wrote:
>>
>>>How can I manipulate the incoming callerID number (and add 0 before it)?
>>
>>exten => s,1,Answer()
>>exten => s,2,SetCIDNum(0${CALLERIDNUM})
>>exten => s,3,...
> 
> 
> And when using CVS head this will become:
> exten => s,1,Set(CALLERID(number)=0${CALLERIDNUM})
> exten => s,2,.

Now, which do you think looks nicest?  The newest and greatest?

H

-- 
Cheers,

Matt Riddell
___

http://www.sineapps.com/news.php (Daily Asterisk News - html)
http://www.sineapps.com/rssfeed.php (Daily Asterisk News - rss)
___
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
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] add 0 (zero) to incoming callerID - how?

2005-09-21 Thread Michiel van Baak
On 02:57, Thu 22 Sep 05, Matt Riddell wrote:
> Tomasz Chmielewski wrote:
> > How can I manipulate the incoming callerID number (and add 0 before it)?
> 
> exten => s,1,Answer()
> exten => s,2,SetCIDNum(0${CIDNUM})
> exten => s,3,...

And when using CVS head this will become:
exten => s,1,Set(CALLERID(number)=0${CALLERIDNUM})
exten => s,2,.

Just to be complete ;)
-- 
Michiel van Baak
http://michiel.vanbaak.info
[EMAIL PROTECTED]
GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7E0B9A2D

"Why is it drug addicts and computer afficionados are both called users?"

___
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
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] add 0 (zero) to incoming callerID - how?

2005-09-21 Thread Matt Riddell
Tomasz Chmielewski wrote:
> How can I manipulate the incoming callerID number (and add 0 before it)?

exten => s,1,Answer()
exten => s,2,SetCIDNum(0${CIDNUM})
exten => s,3,...

-- 
Cheers,

Matt Riddell
___

http://www.sineapps.com/news.php (Daily Asterisk News - html)
http://www.sineapps.com/rssfeed.php (Daily Asterisk News - rss)
___
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
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] add 0 (zero) to incoming callerID - how?

2005-09-21 Thread Nathan Pralle

Pretty easy stuff.

Something like this:

exten => s,1,Wait(1)
exten => s,2,Answer
exten => s,3,SetCIDNum(0${CALLERIDNUM})
exten => s,4,Dial(Local/105)

Nathan

Tomasz Chmielewski wrote:

I have an asterisk box and SIP / IAX2 phones.

To call out, users have to add 0 (zero) before a real telephone number.

That means, that if they want to call someone that has a number 123456,
they have to call 0-123456.

Simple, right?

This has a serious drawback though - when someone calls us from the
number 123456, we see the callerID 123456, and we're unable to use the
callback/redial feature in the telephone (because the phone doesn't know
that it should add 0 before the number).


So the idea is to manipulate the incoming callerID number, and to add a
0 before it.

This way the telephone user will be able to callback/redial.

How can I manipulate the incoming callerID number (and add 0 before it)?




--
-
Nathan E. Pralle
Give the Director a Serpent Deflector
www.nathanpralle.com
-
___
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


[Asterisk-Users] add 0 (zero) to incoming callerID - how?

2005-09-21 Thread Tomasz Chmielewski

I have an asterisk box and SIP / IAX2 phones.

To call out, users have to add 0 (zero) before a real telephone number.

That means, that if they want to call someone that has a number 123456,
they have to call 0-123456.

Simple, right?

This has a serious drawback though - when someone calls us from the
number 123456, we see the callerID 123456, and we're unable to use the
callback/redial feature in the telephone (because the phone doesn't know
that it should add 0 before the number).


So the idea is to manipulate the incoming callerID number, and to add a
0 before it.

This way the telephone user will be able to callback/redial.

How can I manipulate the incoming callerID number (and add 0 before it)?


--
Tomek
http://wpkg.org

___
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users