Re: [asterisk-users] callerid and user on voicemail

2010-12-27 Thread Oguzhan Kayhan
On Wednesday, December 22, 2010 04:59:42 pm Danny Nicholas wrote:
 -Original Message-
 From: asterisk-users-boun...@lists.digium.com
 [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Oguzhan
 Kayhan Sent: Wednesday, December 22, 2010 4:11 AM
 To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
 Subject: [asterisk-users] callerid and user on voicemail
 
 Hello,
 
 There is a problem that i can not figure out how to solve.
 I got users with 5 digit usernames for sip.
 
 Some users has a callerid for outside calls.
 
 I have such problems
 
 When a user activates (for ex) call forwarding, System creates that entry
 on
 
 database as CFIM/callerid  not the username,
 So this rule works only if a call is made from outside to the callerid. Not
 the local calls made to username.
 
 Or, if that user dials *97 and tries to enter voicemail,  voicemail
 application looks for callerid instead of username , so it can not find it.
 
 And got similar problems in some other applications too.
 So, how can i make to use callerid only for outbound calls, or to forward
 incoming calls to local extensions.
 
 This won't completely solve your questions, but here are some tips.  #1.
 You can define a different callerid than the user-id in sip.conf.  For
 example, your user 12345 may look like this
 [12345]
 Type=peer
 Context=default
 
 Add this line
 Callerid=Joe Cool 5551212
 

Hi and thanks for the reply,
Userid and caller ids are different. Thats making the problem bigger.
If it was like 55512345/12345 i can crop the number in dialingplans and doenst 
have any headaches.



 #2.  *97 is just a dialplan line like this:
 Exten = *97,1,voicemailmain(${CALLERID(n...@default)
 
 You can either do some error trapping or use ex-girlfriend logic like this
 Exten = *97,1,noop(new *97 logic)
 Exten = *97/12345,n,voicemailmain(1...@default)
 Exten = *97,n,voicemailmain(${CALLERID(num)@default)
Making such static definitions can work with small number of users but, it is 
planned to have about 5000 users which makes impossible to make such 
definitions.
Maybe i should match username and callerid together.
mmm that might work :)


 
 Hope this is useful.
 
 
 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
 
 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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


Re: [asterisk-users] callerid and user on voicemail

2010-12-22 Thread Danny Nicholas
-Original Message-
From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Oguzhan Kayhan
Sent: Wednesday, December 22, 2010 4:11 AM
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Subject: [asterisk-users] callerid and user on voicemail

Hello,

There is a problem that i can not figure out how to solve.
I got users with 5 digit usernames for sip.

Some users has a callerid for outside calls.

I have such problems

When a user activates (for ex) call forwarding, System creates that entry on

database as CFIM/callerid  not the username,
So this rule works only if a call is made from outside to the callerid. Not 
the local calls made to username.

Or, if that user dials *97 and tries to enter voicemail,  voicemail 
application looks for callerid instead of username , so it can not find it.

And got similar problems in some other applications too.
So, how can i make to use callerid only for outbound calls, or to forward 
incoming calls to local extensions.

This won't completely solve your questions, but here are some tips.  #1.
You can define a different callerid than the user-id in sip.conf.  For
example, your user 12345 may look like this
[12345]
Type=peer
Context=default

Add this line
Callerid=Joe Cool 5551212

#2.  *97 is just a dialplan line like this:
Exten = *97,1,voicemailmain(${CALLERID(n...@default)

You can either do some error trapping or use ex-girlfriend logic like this
Exten = *97,1,noop(new *97 logic)
Exten = *97/12345,n,voicemailmain(1...@default)
Exten = *97,n,voicemailmain(${CALLERID(num)@default)

Hope this is useful.


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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