Hello List,<div><br></div><div>This question I think it's more related to SIP in general, or OpenSIPS - Asterisk implementation that just opensips. However I highly value the feedback and expertise of this list. I have the following scenario.</div>
<div><br></div><div>Customers -> OpenSIPS -> Asterisk Farm -> PSTN</div><div><br></div><div>I use my OpenSIPS for multiple reasons, authentication, billing, authentication.</div><div><br></div><div>However the Asterisk servers see the source IP for all SIP traffic as the Proxy and not the customer IP. Which for the most part is ok. However limit the flexibility to the configuration, as I have to apply the same settings to all customer "hidden" by the load balancer.</div>
<div><br></div><div>I could overwrite the FROM, to force asterisk to match a profile based on the customer id, taken from an AVP. However Im worried about a few implications.</div><div><br></div><div>Some of my customer deliver me Caller id on the FROM, Horrible I know, so I copy it over to the PAI header and then manually parse the header in asterisk.</div>
<div><br></div><div>Would overwriting the FROM cause any problems? Is it ok acording to SIP RFC point of view? Would a SIP client freak out seen the FROM has changed on the Sequential replies for the dialog.</div><div><br>
</div><div>If changing the FROM is not a viable solution, what other alternatives do I have? Has anyone gone through this problem before and come up with some clever solution?</div><div><br></div><div>And this is not just Asterisk related, it could theoretically be any gateway. If there's a SIP proxy hiding the original Source IP/Port, which is the most commonly used configuration to match SIP trunk profiles in almost any equipment, then what can you use? What If I want to forbid a codec for a particular customer. </div>
<div><br></div><div>I would be surprised if this issue has not come across an RFC or an implementation, but I have not read all of them, not quite ;)</div><div><br></div><div>Thank you for your feedback in advanced. <br clear="all">
<div><br></div>-- <br>Robert<br>
</div>