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

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

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

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

[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

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

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

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 =

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:

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 =