[Asterisk-Users] mySQL-sipfriend dials to another SIP-endpoint - How to set the from-user

Roger Schreiter roger at planinternet.de
Wed Jan 26 19:33:02 MST 2005


Hi,

this seems to be a bug in chan_sip.c (asterisk-1.0.3).

Whenever a column "restrictcid" is defined, the
variable restrictcid was set to 1 in chan_sip.

Now I changed line 1067 to

u->restrictcid = *(rowval[x])-'0';

Now restrictcid really reads the value from the database.
Thus setting this value in sipfriends to 0 lets this var
to 0

=> callerid is send to the remote sip end.


Roger.




More information about the asterisk-users mailing list