[Asterisk-Users] Passing CallerID to SIP phone from TDM400P

James Bean james at hdcs.com.au
Tue Oct 12 21:38:06 MST 2004


Hi,

Sorry, newbie, I want to pass the incoming callerid information through
to my sip phone but when an incoming call gets passed through it says
asterisk on the display instead of the number.

Being in australia callerid information is passed through on the second
ring not the first, (hence my noop command doesn't currently work)

James

----------------------------------------------------------

/etc/asterisk/extensions.conf

[pstn]

exten => s,1,NoOp(Comment Only: Call from ${CALLERIDNUM}) ; Just put a
comment in the CLI for info.
exten => s,2,Dial(SIP/snom-james,45,t)
exten => s,3,Hangup
;exten => s,3,VoiceMail(u100)    ;Whatever box you want.

[internal]

exten => i,1,Playback(invalid)
exten => i,2,Hangup
exten => t,1,Hangup

exten => 099,1,Echo     ;simple echo test when you dial 099 on your
phone

include => sip

[sip]

exten => 690,1,Dial(SIP/snom-james,30,tr)
exten => 690,2,voicemail2,u900
exten => 690,102,voicemail2,b900

exten => 691,1,Dial(SIP/bt-karen,30,tr)
exten => 691,2,voicemail2,u901
exten => 691,102,voicemail,b901
                                      

/etc/asterisk/sip.conf

[general]

port = 5060
bindaddr = 192.168.69.1
context = sip
disallow = gsm
allow = alaw
disallow = ulaw
srvlookup=no

[snom-james]
type=friend
secret=<password removed>
host=dynamic
callerid="James" <690>
defaultip=192.168.69.250
dtmfmode=inband
mailbox=690

[bt-karen]
type=friend
secret=<password removed>
host=dynamic
callerid="Karen" <691>
defaultip=192.168.69.251
dtmfmode=inband
mailbox=691
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20041012/7257e0ac/attachment.htm


More information about the asterisk-users mailing list