Hi people!
I got my BRI ISDN card running with the latest libpri, dahdi and asterisk version. Now the question itself. How do I set my callerid though dahdi that the outgoing numbers are properly at the caller displayed on the screen.
I have several MSN numbers, and I am not really getting smart…
tux*CLI> dahdi show channels
Chan Extension Context Language MOH Interpret Blocked State
pseudo default default In Service
1 tamerein de default In Service
2 tamerein de default In Service
extensions.conf:
tux*CLI> dialplan show tameraus
[ Context 'tameraus' created by 'pbx_config' ]
'_X.' => 1. ExecIf($[${EXTEN:0:1} = 0]?Set(CALLERID(num)=4826380)) [pbx_config]
2. ExecIf($[${EXTEN:0:1} = 0]?Dial(dahdi/g1/${EXTEN:1},60,f)) [pbx_config]
3. ExecIf($[${EXTEN:0:1} = 1]?Set(CALLERID(num)=4825821)) [pbx_config]
4. ExecIf($[${EXTEN:0:1} = 1]?Dial(dahdi/g1/${EXTEN:1})) [pbx_config]
5. ExecIf($[${EXTEN:0:1} = 2]?Dial(SIP/freecall2/${EXTEN:1})) [pbx_config]
6. ExecIf($[${EXTEN:0:1} = 3]?Dial(SIP/sipgate/${EXTEN:1})) [pbx_config]
7. ExecIf($[${EXTEN:0:1} = 4]?Dial(Skype/service.higazi-it.com@zaifur)) [pbx_config]
8. Hangup() [pbx_config]
/etc/dahdi/system.conf
span=1,1,3,ccs,ami
bchan=1-2
dchan = 3
echocanceller=oslec,1-2
loadzone = de
defaultzone = de
/etc/asterisk/chan_dahdi.conf:
[trunkgroups]
[channels]
language=de
switchtype=euroisdn
pridialplan=dynamic
;prilocaldialplan=unknown
internationalprefix = 00
nationalprefix = 0
localprefix = 06131
privateprefix = 06131xxxxx
unknownprefix =
facilityenable = yes
signalling = bri_cpe_ptmp
; p2p TE mode => bri_cpe
; p2mp TE mode => bri_cpe_ptmp
; p2p NT mode => bri_net
; p2mp NT mode => bri_net_ptmp
;
facilityenable=yes
polarityevents=yes
usecallerid=yes
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes
echotraining=yes
echotraining=800
rxgain=2.0
;txgain=3.0
;
group=1
callgroup=1
pickupgroup=1
mohinterpret=default
mohsuggest=default
;
context=tamerein
signalling = bri_cpe
immediate=no
channel => 1
callerid = asreceived
context=tamerein
signalling = bri_cpe
immediate=no
channel => 2
callerid = asreceived
any ideas?!
Tamer