[Asterisk-Dev] (no subject)

Aron Vargas aron at simpletelecom.com
Fri Sep 19 14:17:20 MST 2003


I was tring to use the $UNIQUEID variable, passing it in a SIP uri, inorder
to syncronize call records.
I found that the variable was not being populated. In pbx.c I found what I
think was an oversite.

before  
line 682:        } else if (c && !strcmp(var, "UNIQUEID")) {
line 683:                  snprintf(workspace, workspacelen -1, "%s",
c->uniqueid);
line 684:        } else {

after
line 682:        } else if (c && !strcmp(var, "UNIQUEID")) {
added  :                  strncpy(workspace, c->uniqueid, workspacelen -1);
added  :                  *ret = workspace;
line 685:        } else {

After this change I was able to user the UNIQUEID variable in the dialplan
as expected.

Aron
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 1764 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-dev/attachments/20030919/64d67d46/winmail.bin


More information about the asterisk-dev mailing list