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:
Mark Spencer
2004-10-02 01:56:08 +00:00
parent 856a9a528c
commit 15c6bf0860
7 changed files with 60 additions and 6 deletions

View File

@@ -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 */