Tomasz Chmielewski
2005-Sep-21 07:10 UTC
[Asterisk-Users] add 0 (zero) to incoming callerID - how?
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
Nathan Pralle
2005-Sep-21 07:52 UTC
[Asterisk-Users] add 0 (zero) to incoming callerID - how?
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 -------------------------------------
Matt Riddell
2005-Sep-21 07:57 UTC
[Asterisk-Users] add 0 (zero) to incoming callerID - how?
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)
Michiel van Baak
2005-Sep-21 11:03 UTC
[Asterisk-Users] add 0 (zero) to incoming callerID - how?
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 michiel@vanbaak.info 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?"
Matt Riddell
2005-Sep-21 21:46 UTC
[Asterisk-Users] add 0 (zero) to incoming callerID - how?
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? Hmmmm.... -- Cheers, Matt Riddell _______________________________________________ http://www.sineapps.com/news.php (Daily Asterisk News - html) http://www.sineapps.com/rssfeed.php (Daily Asterisk News - rss)
Michiel van Baak
2005-Sep-21 22:20 UTC
[Asterisk-Users] add 0 (zero) to incoming callerID - how?
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? > > Hmmmm.... > > -- > Cheers, > > Matt RiddellI 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 michiel@vanbaak.info 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?"
Matt Riddell
2005-Sep-22 00:06 UTC
[Asterisk-Users] add 0 (zero) to incoming callerID - how?
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)
Bruno De Luca
2005-Sep-22 00:56 UTC
[Asterisk-Users] add 0 (zero) to incoming callerID - how?
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 : bdeluca@fgasoftware.com Internet: http://www.fgasoftware.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050922/04e063a6/attachment.htm