-----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

Reply via email to