El Tuesday 16 October 2007 15:16:31 Klaus Darilion escribió:
Iñaki Baz Castillo wrote:
The gateway will be in fact other OpenSer+CDRtool+MediaProxy (if I can configure it) or Asterisk. They will contact with the real SIP carrier.
So when user_B@domain_B calls sip:12345@domain_B it will appear in OpenSer gateway:
- From=user_B@domain_B
- RURI=12345@domain_B
But in the aboved explained forwarding it will appear
- From=user_A@domain_A
- RURI=12345@domain_B
I'm not sure then how to invoice this call. I see 2 options:
a) Invoice always based on RURI [*]
b) Add a "Diversion" (or other custom) header in main OpenSer so OpenSer gateway will invoice to the user in that header.
I would use b). Add a header to the INVITE sent to GW-Openser (name it as you like, e.g: X-Billing-Party: ) and in GW-Openser use this header for accounting. Further:
- make sure to remove every X-Billing-Party header from messages
routed by the main proxy
- do not accept INVITEs without this header in the GW-Openser.
This way you can be sure that nobody bypasses your accounting logic.
Ok, thanks a lot again for your help.
Best regards.