I don't have access to the sip code right now, but from past network code I've writen you could try this:
inet_aton("192.168.1.10", &p->sin.sin_addr); If they are just wrapping the "struct sockaddr_in" as "sin" in "p". Worth a try... Ryan > Hello list, I am trying to include a new message after I receive a > Register in chan_sip, at the beginning I would like to forward the same > message to a fixed IP address, I have seen that fileds like p->sa.sin_addr > and p->sin.sin_addr have to be with the IP address, but I am not sure > about how to force these fields to be the destination that I want > (192.168.1.10)... somebody knows how to do it? do you know where can I > fond information about the "p" structure in asterisk and how to modify it > "manually"? > > Thanks and Rgds, > > German > > > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users