[Asterisk-Users] Adding caller name / ID to outbound meetme calls

Keith Waters kwlist at waters.co.za
Tue Nov 1 07:44:33 MST 2005


Hi All -

I'm calling people on Zap interface using /var/spool/asterisk/outgoing
and then putting them into a MeetMe.  This works 100%, but tends to
give "unknown" name and number on the "meetme list" command...

eg:
User #: 01    <unknown> <no name>            Channel: Zap/1-1 
(unmonitored)

I really would like to show the dialled number (at the very least) on this 
line, instead of 'unknown'

Looking at the source code:
ast_cli(fd, "User #: %-2.2d %12.12s %-20.20s Channel: %s %s %s %s %s\n", 
user->user_no, user->chan->cid.cid_num ? user->chan->cid.cid_num : 
"<unknown>", user->chan->cid.cid_name ? user->chan->cid.cid_name : "<no 
name>", user->chan->name, (user->userflags & CONFFLAG_ADMIN) ? "(Admin)" : 
"", (user->userflags & CONFFLAG_MONITOR) ? "(Listen only)" : "", 
(user->adminflags & ADMINFLAG_MUTED) ? "(Admn Muted)" : "", 
istalking(user->talking));

.... it seems to use cid_name and cid_num ....

I have tried to use various combinations or SetVar/Var in the 'outgoing' 
call file

eg:

Channel: Zap/g2/108
MaxRetries: 1
RetryTime: 30
WaitTime: 30
Context: ext-meetme
Extension: 9991
Priority: 1
# Above here is a normal call file.  Below here are my vain attempts to set 
the cid_name variable
SetVar: CALLERID=108
SetVar: NAME=108
SetVar: CALLERIDNAME=108
SetVar: CALLERIDNUM=108
SetVar: CID_NAME=108
SetVar: CID_NUM=108
Set: CALLERID=108
Set: NAME=108
Set: CALLERIDNAME=108
Set: CALLERIDNUM=108
Set: CID_NAME=108
Set CID_NUM=108
Data:   108

So far, none of these has had any measure of success

My dialplan is quite straightforward:

exten => 9991,1, Wait(1)
exten => 9991,2,AGI(festival-script.pl|Please hold.  You are about to join 
the conference call.)
exten => 9991,3,MeetMe(1|dMrps)
exten => 9991,4,Hangup;

Does anybody have an idea, please?

Thanks in advance!
Keith
SIP://keith@sip.intercape.co.za




More information about the asterisk-users mailing list