You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to have all my outbound traffic go through a proxy (Kamailio) so that internal IPv6 servers can communicate with external IPv4 and so I can do media transcoding (RTPEngine).
As far as I can tell. there is no direct support in dialog.Dialog (or dialog.Transport) for setting an outbound proxy.
I was thinking that it looks like there are two ways I can implement this:
Reimplement Dialog to change the send method.
Prepend msg.Route of all outgoing messages with a Route header that points to the outbound proxy.
Use only the data structures in the sip package and do all the communication work and session tracking myself.
The obvious benefit of the second option is that it allows me to take advantage of the full benefits of this package, but are there any downsides to it? Will it actually work? If not, what is the best alternative to avoid reimplementing most of the dialog package?
Has anyone else done this who can share their experiences?
The text was updated successfully, but these errors were encountered:
kohenkatz
changed the title
How to set make all traffic use an outbound proxy?
How to make all traffic use an outbound proxy?
Jun 7, 2023
kohenkatz
changed the title
How to make all traffic use an outbound proxy?
How to make all SIP traffic use an outbound proxy?
Jun 7, 2023
I need to have all my outbound traffic go through a proxy (Kamailio) so that internal IPv6 servers can communicate with external IPv4 and so I can do media transcoding (RTPEngine).
As far as I can tell. there is no direct support in
dialog.Dialog
(ordialog.Transport
) for setting an outbound proxy.I was thinking that it looks like there are two ways I can implement this:
Dialog
to change the send method.msg.Route
of all outgoing messages with aRoute
header that points to the outbound proxy.sip
package and do all the communication work and session tracking myself.The obvious benefit of the second option is that it allows me to take advantage of the full benefits of this package, but are there any downsides to it? Will it actually work? If not, what is the best alternative to avoid reimplementing most of the
dialog
package?Has anyone else done this who can share their experiences?
The text was updated successfully, but these errors were encountered: