Index: chan_sip.c =================================================================== RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v retrieving revision 1.292.2.22 diff -u -r1.292.2.22 chan_sip.c --- chan_sip.c 23 Mar 2004 05:06:40 -0000 1.292.2.22 +++ chan_sip.c 24 Mar 2004 19:05:33 -0000 @@ -5359,6 +5359,12 @@ } else c = p->owner; + + /* Set SIPFROM variable */ + from = get_header(req, "From"); + if (from) { + pbx_builtin_setvar_helper(c, "SIPFROM", from); + } if (!ignore && p) p->lastinvite = seqno; if (c) {