[asterisk-dev] new changes for realtime with new field ipsvr (chan_sip.c)

Olle E Johansson olle at voop.com
Wed Feb 14 05:19:01 MST 2007


14 feb 2007 kl. 04.11 skrev Germán Aracil Boned:

>
> I think, make more changes on chan_sip.c for add automatic  
> redirection to sip peer registered server. I think make when  
> asterisk read from database peer info. At this momment, check local  
> ip's server, compare with ipsvr value, and change destination for  
> invite to correctly server (where sip peer was send register).
>
> I don't know where can put it in chan_sip.c, can you help me ? What  
> function ? I think add to struct sip_peer: char ipsvr[20] for write  
> when read from db peer info. And compare, before send invite to sip  
> peer, for change destination ip if it is necesary.
>
> where is these in chan_sip.c file for add ?
>
> And .. I think .. Have interes for add this change to version 1.2  
> or 1.4 ?

I strongly feel that this should be handled by the dialplan, not by  
chan_sip code.

/Olle


More information about the asterisk-dev mailing list