Fix get_rdnis typo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1009 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
af47f4a497
commit
6642fb0688
|
@ -3058,7 +3058,7 @@ static int get_rdnis(struct sip_pvt *p, struct sip_request *oreq)
|
|||
req = oreq;
|
||||
if (!req)
|
||||
req = &p->initreq;
|
||||
strncpy(tmp, get_header(oreq, "Diversion"), sizeof(tmp) - 1);
|
||||
strncpy(tmp, get_header(req, "Diversion"), sizeof(tmp) - 1);
|
||||
if (!strlen(tmp))
|
||||
return 0;
|
||||
c = ditch_braces(tmp);
|
||||
|
|
Loading…
Reference in New Issue