mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-03 04:16:43 +00:00
Add iax2 parsing for TNS/TON/PRES
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3877 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -3694,8 +3694,10 @@ static void initreqprep(struct sip_request *req, struct sip_pvt *p, char *cmd, c
|
||||
|
||||
snprintf(p->lastmsg, sizeof(p->lastmsg), "Init: %s", cmd);
|
||||
|
||||
l = p->owner->cid.cid_num;
|
||||
n = p->owner->cid.cid_name;
|
||||
if (p->owner) {
|
||||
l = p->owner->cid.cid_num;
|
||||
n = p->owner->cid.cid_name;
|
||||
}
|
||||
if (!l || !ast_isphonenumber(l))
|
||||
l = default_callerid;
|
||||
/* if user want's his callerid restricted */
|
||||
|
||||
Reference in New Issue
Block a user