[asterisk-users] how to configure caller id

cool dude cool_dudeoflko at yahoo.co.in
Fri Mar 19 01:11:53 CDT 2010


hello i had configured a Dial plan in which i am using application time base i.e

1 - if  call comes to PSTN line    from 8pm  evening till morning 8am the call should  automatically forward to guard exten i.e exten 211, and if guard dosent receive call in 30 secs message should be saved in voicemail.

2 - if call comes in working hours than it should be received by ext 112 n from there using transfer (tT)application  call is tranfered to desired extensions.

now i want when i call from my mobile to pstn line my mobile no should be displayed in softphone


#######################################################################


vi extensions.conf



[from-zaptel]
exten => s,1,Wait(2)
exten => s,n,GotoIfTime(20:00-7:59|mon-sun|*|*?closed,s,1)
exten => s,n,Dial(SIP/112,5,tT)
exten => s,n,Goto(mainmenu,s,1)


[my-phones]
exten => 112,1,Dial(SIP/112,5,T)
exten => 113,1,Dial(SIP/113)
exten => 114,1,Dial(SIP/114)

[mainmenu]
exten => s,1,Answer
exten => s,n,Noop(CALLERID(name))
exten => s,n,SetMusicOnHold(default)
exten => s,n,Set(TIMEOUT(digit)=5)
exten => s,n,Set(TIMEOUT(response)=10)
exten => s,n,Background(enter-ext-of-person)
exten => s,n,WaitExten(5)
exten => _11[2-4],1,Goto(my-phones,${EXTEN},1)
exten => i,1,Playback(pbx-invalid)
exten => t,1,Playback(vm-goodbye)


[closed]
exten => s,1,Dial(SIP/211,30)
exten => s,n,VoiceMail(211,u)
exten => 2999,1,VoiceMailMain(${CALLERID(num)},s) ; by 2999 voicemail can be heard.

#########################################################################



;autogenerated by /usr/sbin/wancfg_dahdi do not hand edit
;autogenrated on 2010-03-18
;Dahdi Channels Configurations
;For detailed Dahdi options, view /etc/asterisk/chan_dahdi.conf.bak

[trunkgroups]

[channels]
context=default
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes
relaxdtmf=yes
rxgain=0.0
txgain=0.0
group=1
callgroup=1
pickupgroup=1
immediate=no


;Sangoma AU100 [slot:0 bus: span:1]  <wanpipe1>
context=from-zaptel
group=0
echocancel=yes
signalling = fxs_ks
channel => 1

context=from-zaptel
group=0
echocancel=yes
signalling = fxs_ks
channel => 2

########################################################################

any help n support will be highly appreciated.
thx



      Your Mail works best with the New Yahoo Optimized IE8. Get it NOW! http://downloads.yahoo.com/in/internetexplorer/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100319/5da21879/attachment.htm 


More information about the asterisk-users mailing list