Integration with softswitch for IP based authentication (wholesale)

308 views
Skip to first unread message

marcvoipc...@gmail.com

unread,
Jan 26, 2016, 7:29:45 AM1/26/16
to CGRateS
Hello,
 this is my first post on this group and I would like to thank the whole CGRateS team for their huge work already done. 

I would like to start using your system for wholesale billing on the system I'm building right now. The main reason is the great performance in terms of concurrent sessions your system can handle.


I've reached the point where the examples which comes with the package works well however the system I'm building is not for calls between users but rather for calls to external carriers and with IP based authentication.

The question is - do you have some sort of example of integration with OpenSIPs or Freeswitch for IP based auth? 


Other questions:
  Freeswitch - how do you do the routing to external providers? The default.xml dialplan has a following lines:

<!-- Use Suppliers information to simulate calls to suppliers, replace here with real gateway ids out of suppliers -->
    <extension name="CGR Suppliers">
     <condition field="cgr_suppliers" expression=".+">
       <action application="set" data="cgr_supplier=${cgr_suppliers[1]}" />

  What do you put in here to get interconnection with the carriers?



  Freeswitch - default sip profile used in the examples is the "internal" one but the production setup would be on external profile (which is not discussed on the tutorials)?

  Freeswitch / OpenSIPs - do we have actually anything better with Freeswitch (doing RTP natively) compared to OpenSIPs with multiple RTP Proxy servers in wholesale system? Freeswitch comes with many features which are totally out of scope in wholesale (voicemails, conferences, etc) so OpenSIPs as a session manager with external RTP Proxy server(s) would actually bring more power and better flexibility in terms of scaling up the platform? Am I correct with this assumption?



Thank you in advance.

Best regards, 
Marc

Dan-Cristian Bogos

unread,
Jan 28, 2016, 2:49:33 AM1/28/16
to cgr...@googlegroups.com

Hi Mark

Answers inline ...


Am 26.01.2016 13:29 schrieb <marcvoipc...@gmail.com>:
>
> Hello,
>  this is my first post on this group and I would like to thank the whole CGRateS team for their huge work already done. 

Thank you for your kind words.


>
> I would like to start using your system for wholesale billing on the system I'm building right now. The main reason is the great performance in terms of concurrent sessions your system can handle.
>
>
> I've reached the point where the examples which comes with the package works well however the system I'm building is not for calls between users but rather for calls to external carriers and with IP based authentication.
>
> The question is - do you have some sort of example of integration with OpenSIPs or Freeswitch for IP based auth? 

No example afaik but it should be a trivial thing to achieve. If you look at the tutorial configs all we exchange with Opensips or FreeSWITCH is string information so what you populate in should not matter. As I see it you can take 2 approaches for IP auth:
* IP address should become your account in CGRateS
* Use aliasing to convert between IP you send and a real account in CGR.


>
>
> Other questions:
>   Freeswitch - how do you do the routing to external providers? The default.xml dialplan has a following lines:
>
> <!-- Use Suppliers information to simulate calls to suppliers, replace here with real gateway ids out of suppliers -->
>     <extension name="CGR Suppliers">
>      <condition field="cgr_suppliers" expression=".+">
>        <action application="set" data="cgr_supplier=${cgr_suppliers[1]}" />
>
>   What do you put in here to get interconnection with the carriers?
>

This was a sample of LCR channel variable however we did not complete testing the idea. Should in theory work but again did not test it. For now your best shot would be querying CGR API for LCR and selecting the gateway in dialplan based on info received from CGR. You will receive simple string tags identifying your suppliers in CGR and you need to match that info within your dialplan logic. I hope I will find the time to finish also the channel vars idea at some point.


>
>
>   Freeswitch - default sip profile used in the examples is the "internal" one but the production setup would be on external profile (which is not discussed on the tutorials)?

This does not relate to CGR since we don't enforce any routing for you. We simply return info which you should use (or not) in your dialplan.


>
>   Freeswitch / OpenSIPs - do we have actually anything better with Freeswitch (doing RTP natively) compared to OpenSIPs with multiple RTP Proxy servers in wholesale system? Freeswitch comes with many features which are totally out of scope in wholesale (voicemails, conferences, etc) so OpenSIPs as a session manager with external RTP Proxy server(s) would actually bring more power and better flexibility in terms of scaling up the platform? Am I correct with this assumption?

More or less. You can also use FreeSWITCH as a dumb b2bua without involving any of the AS functionality. Since OpenSIPs is not a b2bua it is not really recommended that you do accounting there, but we don't live in an ideal world anyway.

Feel free to come back with additional questions.

DanB.


>
>
>
> Thank you in advance.
>
> Best regards, 
> Marc
>

> --
> You received this message because you are subscribed to the Google Groups "CGRateS" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to cgrates+u...@googlegroups.com.
> To post to this group, send email to cgr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/cgrates/4d6dcd17-1792-480b-9445-6546393aea3a%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages