Hello,
On 16.11.2009 17:09 Uhr, Geoffrey Mina wrote:
Hello, I have a scenario where I need to send traffic to my carrier from two different source IP addresses. The carrier charges me one rate for dialer based traffic and another rate for standard outbound origination. I am planning on using the force_send_socket() method to manually set the source IP address. My question is how does this correlate to my usage of the record_route() function?
Do I need to force_send_socket() BEFORE inserting the Record-Route header?
Are there any other things I need to be concerned with while using the TM module?
you do not need it to set the socket before the record routing. When the sip request is reeived from a different IP interface than one used for sending, you will see two Record-Route headers.
For the messages within the dialog (e.g., re-INVITE, BYE), loose_route() and t_relay() do all the job, so you do not need any forcing of the socket.
Cheers, Daniel