On Apr 5, 2004, at 3:53 PM, Mark Hagler wrote:


What do you do when $CALLERIDNUM of the caller isn’t the 4-digit extension?    I set all of my users Caller ID entries to their 10-digit phone # so that Caller ID appears correctly when I send their call out the PRI to the public network.    The side effect of this is breaking convenient access to voicemail using this method, and I haven’t found a way to fix it yet.

Use the database.


 exten => 1000,1,Answer,1
 exten => 1000,2,Wait,1
 exten => 1000,3,DBGet(MYEXTEN=extension/#{CALLERIDNUM})
 exten => 1000,4,Voicemailmain([EMAIL PROTECTED])

Then populate the DB via the asterisk CLI:

database put extension 1234567890 5432

This maps the phone with caller ID 1234567890 to extension 5432.


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

Reply via email to