[Asterisk-Users] Grandstream CallerID

David Ishmael dishmael at windwardcg.com
Sun Dec 19 12:06:39 MST 2004


I forgot to ask, since the BT100 can't take characters (only numbers), I
would have assumed that there was a function to extract a number from an
incoming PSTN CID, is that possible?

Thanks again,
David

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of David Ishmael
Sent: Sunday, December 19, 2004 2:03 PM
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Subject: RE: [Asterisk-Users] Grandstream CallerID

I did have fromuser set in my sip.conf so I went in and commented the line
out (thanks for the help on that).  This is what I have in my
extensions.conf file:

exten => s,1,SetCallerID(${CALLERID}) ; Set the caller ID
exten => s,2,Wait(2)
exten => s,3,Dial(SIP/1234,20,tr)  ; Dial our office SIP phone
exten => s,4,Hangup

That produces the full CID coming from the PSTN (Verizon) in the log
something like:

"Joe Somebody" <7035551212>

When I change the SetCallerID() function to:

exten => s,1,SetCallerID(1111111) ; Set the caller ID

It still doesn't send the CID to the phone (or if it does, the phone isn't
recognizing it).  Do I have my extensions.conf file setup wrong?  Is there
something special I need to do in the SIP phone configuration?  Here's the
SIP section of the /etc/asterisk/sip.conf:

[1234]
type=friend
context=sip
username=1234
secret=********
callerid=Office <1234>
host=dynamic
nat=no
canreinvite=yes
dtmfmode=inband
incominglimit=1
mailbox=1234 at default
disallow=all
allow=ulaw
allow=alaw

I noticed on the WiKi there's a function called SetCIDNum(), but that
doesn't do anything (or at least nothing I could see). I'm stumped on this
one.  Any advice is always welcomed.  :)

Thanks,
David



-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Matt Clauson
Sent: Sunday, December 19, 2004 11:44 AM
To: Wilson Pickett; Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [Asterisk-Users] Grandstream CallerID

On Sunday 19 December 2004 06:31, Wilson Pickett wrote:
> > Is it possible to send the incoming PSTN caller ID to a Grandstream
> > Budge Tone-100 SIP phone?  I've configured the extensions.conf file
> > and the log is
>
> As Eric notes, the BT100 phones won't show letters. If a call comes
> in without CID, asterisk sends a string like "Asterisk call" which
> the BT will try to display as some giberish so I have setcallerid to
> "000" when this happens. I'd recommend using setcallerid(1234567890)
> (or any number) to test the phone, which should display that. If
> callerid does come in from PSTN, it should just make through as he
> said.

I'm having the same issue as David, and forcing the CallerID with 
SetCallerID() doesn't work - it still only shows the extension of the 
phone I'm calling. (Yes, I've checked the CDR and also done a show 
channel on the phone while ringing - the Caller ID is reset properly

I think I have the solution -- I had the fromuser= variable set, which 
is what Asterisk uses to force CallerID as when it's making calls out 
to the Grandstream.  Is that set, David?  If so, unset it, and you 
should be fine.

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

_______________________________________________
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




More information about the asterisk-users mailing list