SendText to display text on Grandstream


Morning @everyone,

I have a dilemma with my grandstream gxp2140 and the gxp 2170. When I use the command

exten => 7701,1,NoOp(## Call the 100 by the Caller ${CALLERID(all)} ##)
 same => n,set(CALLERNAME=${CALLERID(name)})
 same => n,set(NUM2USE=${CALLERID(num)})
 same => n,NoOp(## Your extension number is : ${NUM2USE} ##)
 same => n,SendText(${NUM2USE})
 same => n,Playback(astcc-digit-account-number)
 same => n,SayDigits(${NUM2USE})
 same => n,wait(5)
 same => n,Hangup()

But the text appears on the GXP1625 but not on the new models of Grandstream. Why ?


I made an other code more simple but only my softphone display the message.

exten => 7702,1,NoOp(## Send a message the device : ${CALLERID(all)} ##)
 same => n, SendText(Welcome to Asterisk)
 same => n,Wait(5)
 same => n,Hangup()

So strange… Any idea for resolve that ?


We haven’t played with this on GS phones, but on Cisco phones there is a configuration that has to allow unsolicited messages such as this. We’ll check, but there may be a similar setting on the GS phones.


Alright :slight_smile: It’s important for me to display some messages on the device because where I work we change of CID each time to communicate with our clients. So our commercials need to known which number they use.


Cool concept. One thought, since you have a lot of screen real estate is to change the inbound caller ID to prefix it with the called DID as well. That way, you’re not relying on phone features.