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
Is it possible to generate a new SIP request based on an existing one, preserving attributes such as Call ID and body, while only modifying the 'To', 'From' and 'Contact' fields to align with the proxy's requirement for forwarding to the client?
The text was updated successfully, but these errors were encountered:
Updating those headers is straight forward as they are parsed specially due to other modules.
So there is no special function YET, but also depending on strict vs loose routing could be some special functions added.
For now you can easily access those headers
`to = req.To()
from = req.From() .
or using GetHeader func.
to, from, contact are parsed specially and have predefined objects you can find in
sip.ToHeader ....
So updating them will be easy., like changing host port etc
In any case I see maybe some room to have special functions that wrap but hard to make those generic.
Is it possible to generate a new SIP request based on an existing one, preserving attributes such as Call ID and body, while only modifying the 'To', 'From' and 'Contact' fields to align with the proxy's requirement for forwarding to the client?
The text was updated successfully, but these errors were encountered: