[Asterisk-Users] Adding digits to incoming callids depending on context?

Calvin Hendryx-Parker calvin at sixfeetup.com
Sat Jan 29 10:24:27 MST 2005


Which phones do you have?  We are using Cisco 7940G phones and I have 
been able to do this by modifying the dialplan.xml for the phone to 
rewrite numbers as they are dialed to include the "9" in front of 
whatever is dialed from the phone.  Now you can use the received calls 
menus without having to edit the numbers before hand.

Calvin

On Jan 29, 2005, at 12:13 PM, Stefan Gofferje wrote:

> Hi folks,
>
> is there a chance to modify the callerid of incoming calls?
> At the moment, I'm using three ways to place and receive calls:
>
> exten => _0.,1,Dial(CAPI/@XXXXXX:${EXTEN:1},60,r)
> exten => _0.,2,Congestion
> exten => _0.,3,Hangup()
>
> exten => _90.,1,Dial(SIP/${EXTEN:2}@sipgate.de,60,Ttr)
> exten => _90.,2,Congestion
> exten => _90.,3,Hangup()
>
> exten => _91.,1,Dial(SIP/${EXTEN:2}@nikotel.com,60,Ttr)
> exten => _91.,2,Congestion
> exten => _91.,3,Hangup()
>
> ISDN/CAPI, sipgate.de and nikotel.com. I have seperate contexts for 
> each incoming service.
>
> I would like to add the prefix for dialling out to the callerid of 
> incoming calls, so I can use the missed-calls list of my phones 
> directly. I thought about something like:
>
> [incoming_ISDN]
> exten => xxxxxx,1,SetVar(CALLERIDNUM,0${CALLERIDNUM})
> exten => xxxxxx,2,Dial(SIP/6000&SIP/6001,20,rt)
> exten => xxxxxx,3,Voicemail(u6000)
> exten => xxxxxx,103,Voicemail(b6000)
>
> Unfortunately, this doesn't work... Would probably have bee too easy...
>
> Does anybody have a clue on how to complete this?
>
> Regards,
>   Stefan
>
> -- 
>  (o_   Stefan Gofferje          | Linux Systems Specialist
>  //\   Reg'd Linux User #247167 | SuSE Certified Linux Trainer
>  V_/_  Linux is like a Wigwam - No gates, no windows, Apache inside
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
-- 
S i x  F e e t  U p  |  "Nowhere to go but open-source"
Silicon Valley: +1 (650) 401-8579  |  Midwest: +1 (317) 861-5948
Toll-Free: 1-866-SIX-FEET
mailto:calvin at sixfeetup.com
http://www.sixfeetup.com  |  Zope Hosting from $19.95/month




More information about the asterisk-users mailing list