Re: [Asterisk-Users] blocked caller id

2004-05-21 Thread Philipp von Klitzing
Hi!

 exten = s,1,gotoif,$[${CALLERIDNAME} = \0]?2:3;

Do this:
GotoIf($[foo${CALLERIDNAME} = foo]?2:3)

Cheers, Philipp


___
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] blocked caller id

2004-05-21 Thread Walt Reed
On Fri, May 21, 2004 at 11:24:04AM +0200, Philipp von Klitzing said:
 Hi!
 
  exten = s,1,gotoif,$[${CALLERIDNAME} = \0]?2:3;
 
 Do this:
 GotoIf($[foo${CALLERIDNAME} = foo]?2:3)

Not knowing how the low-level caller ID works, how do you differentiate
between anonymous/private where the caller has blocking on, and
unknown/unavailable where caller ID info is not set (corporate PRI's,
etc.)?


___
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] blocked caller id

2004-05-21 Thread Roger
Philipp von Klitzing wrote:
Hi!
 

exten = s,1,gotoif,$[${CALLERIDNAME} = \0]?2:3;
   

Do this:
GotoIf($[foo${CALLERIDNAME} = foo]?2:3)
 

Got a syntax error,
Tried
gotoif,($[foo${CALLERIDNAME} = foo]?2:3)
Still no dice.
--
Rock River Internet  Roger Grunkemeyer
202 W. State St, 8th Floor[EMAIL PROTECTED]
Rockford, IL 61101   815-968-9888 x102
___
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] blocked caller id

2004-05-21 Thread Roger
Ok - to solve the problem and mark incoming calls w/ Unknown if the 
callerid is unavialable or block, as opposed as them showing up from 
asterisk.  I put the following in the general section of my sip.conf

[general]
callerid=Unknown
Look at asterisk bug 1688 for more info.
--
Rock River Internet  Roger Grunkemeyer
202 W. State St, 8th Floor[EMAIL PROTECTED]
Rockford, IL 61101   815-968-9888 x102
___
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] blocked caller id

2004-05-20 Thread Roger
Gavin Hollinger wrote:
Try replacing:
exten = s,2,SetVar,CALLERIDNUM=111
exten = s,3,SetVar,CALLERIDNAME=blah
exten = s,4,SetVar,CALLERID=blah
With:
exten = s,2,SetCallerID(NAME HERE 8005551212)
 

Hey thanks Gavin - that worked perfectly  Based on pattern matching 
I can now re-write the caller id.  The only problem is I'm not sure what 
the caller id is set to if a block call comes in.

I've tried the following
---
STRING=unknown  -with and w/o quotes
exten = s,1,gotoif,$[${CALLERIDNAME} = ${STRING}]?2:3;
exten = s,2,SetCallerID(Caller ID unknown 0)
---
---
exten = s,1,gotoif,$[${CALLERIDNAME} = \0]?2:3;
exten = s,2,SetCallerID(Caller ID unknown 0)
---
But these give a parse error - taking out the quotes does the same. 

The reason I'm pursing this is most users are puzzled when presented w/ 
a call from asterisk w/ no phone number.  The CALLERID should be set to 
'CallerID blocked' or 'CallerID unavailable'.

This will clarify things for average users.
Yes technically all incoming calls come from the pbx hence the CALLERID 
is set to 'asterisk' I feel this is ambiguous at best, ie Joe User will 
ask Who's asterisk? and downright confusing at worst.

I'd almost call this a bug - not even a feature...
--
Rock River Internet  Roger Grunkemeyer
202 W. State St, 8th Floor[EMAIL PROTECTED]
Rockford, IL 61101   815-968-9888 x102
___
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] blocked caller id

2004-05-19 Thread Roger
Roger wrote:
William Suffill wrote:
check the caller id in your incoming extension before you pass to to a
end user. Reset $calleridname to unavaliable if no number is given
 

Thanks a good suggestion...  How would I implement this???  Any 
docs/web pages/examples you could point me to?

Ok reading over
doc/README.variables
gave me a good idea on how to do this...
I've setup the following in extensions.conf with this idea that if my 
cell phone calls the office I'll have a call from Blah w/ a number of 
111-.  xx is the number for my cell phone which I've removed

exten = s,1,gotoif,$[${CALLERIDNUM} = xx]?2:5;
exten = s,2,SetVar,CALLERIDNUM=111
exten = s,3,SetVar,CALLERIDNAME=blah
exten = s,4,SetVar,CALLERID=blah
exten = s,5,setmusiconhold,default
exten = s,6,responsetimeout,30
exten = s,7,Answer
exten = s,8,Background(topgreet)
exten = s,9,Background(menu)
exten = s,10,Wait,7
exten = s,11,Voicemail(u102)
exten = s,12,Hangup
This is the output when my cell phone calls in - then dials extension 102
   -- Starting simple switch on 'Zap/1-1'
   -- Executing GotoIf(Zap/1-1, 1?2:5) in new stack
   -- Goto (pstn,s,2)
   -- Executing SetVar(Zap/1-1, CALLERIDNUM=111) in new stack
   -- Executing SetVar(Zap/1-1, CALLERIDNAME=blah) in new stack
   -- Executing SetVar(Zap/1-1, CALLERID=blah) in new stack
   -- Executing SetMusicOnHold(Zap/1-1, default) in new stack
   -- Executing ResponseTimeout(Zap/1-1, 30) in new stack
   -- Set Response Timeout to 30
   -- Executing Answer(Zap/1-1, ) in new stack
   -- Executing BackGround(Zap/1-1, topgreet) in new stack
   -- Playing 'topgreet' (language 'en')
 == CDR updated on Zap/1-1
   -- Executing Dial(Zap/1-1, SIP/102|20|r) in new stack
   -- Called 102
   -- SIP/102-b22b is ringing
 == Spawn extension (pstn, 102, 1) exited non-zero on 'Zap/1-1'
   -- Hungup 'Zap/1-1'
I called from another number and it did not do the 3 SetVars - called 
from my cell phone and it did reset the 3 caller id variables.  However 
when looking at the caller id displayed on my phone it still gives the 
normal caller id info - not the modified caller id I was expecting.

--
Rock River Internet  Roger Grunkemeyer
202 W. State St, 8th Floor[EMAIL PROTECTED]
Rockford, IL 61101   815-968-9888 x102
___
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] blocked caller id

2004-05-19 Thread Gavin Hollinger
Try replacing:

exten = s,2,SetVar,CALLERIDNUM=111
exten = s,3,SetVar,CALLERIDNAME=blah
exten = s,4,SetVar,CALLERID=blah

With:

exten = s,2,SetCallerID(NAME HERE 8005551212)



___
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] blocked caller id

2004-05-18 Thread William Suffill
check the caller id in your incoming extension before you pass to to a
end user. Reset $calleridname to unavaliable if no number is given
On Tue, 2004-05-18 at 15:18, Roger wrote:
 I have a question - if a user calls up w/ blocked caller id I get the 
 following on my phone
 
 Incoming call from asterisk
 
 This is the same on my Cisco 7940s and Polycom phones.  For average 
 users this is not intuitive at all..
 
 I'd like to configure this so if I deploy this at a customer site it 
 says caller id unavialable.  With the spelling done right
 
 Any ideas on how this wold be accomplished?

___
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] blocked caller id

2004-05-18 Thread Roger
William Suffill wrote:
check the caller id in your incoming extension before you pass to to a
end user. Reset $calleridname to unavaliable if no number is given
 

Thanks a good suggestion...  How would I implement this???  Any docs/web 
pages/examples you could point me to?

Thanks.
___
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