[asterisk-users] fromdomain not honored on outbound INVITE request

Thomas Rechberger t.rechberger at gmail.com
Fri Mar 21 09:50:24 CDT 2014


meanwhile i got an answer from fprior who was testing patch already.

add this code to chan_sip.c :

         /* Allow domain to be overridden */
         if (!ast_strlen_zero(p->fromdomain))
                 d = p->fromdomain;
         else /* Save for any further attempts */
                 ast_string_field_set(p, fromdomain, d);

after this one (approx. at line 13741)
         /* Allow user to be overridden */
         if (!ast_strlen_zero(p->fromuser))
                 l = p->fromuser;
         else /* Save for any further attempts */
                 ast_string_field_set(p, fromuser, l);

on 11.x it should after fromname section, but i guess wont matter.
Will test this soon.
The code is really that simple, is it really needed to have it signed 
from the author?




More information about the asterisk-users mailing list