On 22.04.2013, at 16:41, Moacir Ferreira wrote:

> It may be a "dumb" question, but I am just starting learning about SEMS...
>  
> I am trying to set up a transparent SBC so I can connect a Kamailio server to 
> a VoIP provider that requires authentication. I noticed I can provide the 
> credentials to SEMS so the b leg can authenticate with my VoIP provider. Now, 
> how do I configure the opposite? I mean, how SEMS knows where to send an 
> incoming call from the provider to the Kamailio server? Finally, what plugins 
> do I need to load to enable this?
>  

You need to configure a couple of profiles which will be used when the call 
comes from your provider. If further call-routing is done in kamailio, it is 
basically one sbc-profile you need.

>From doc/Readme.sbc.txt:

Example: 
  In order to have all calls coming from source IP 10.0.* going to
  'internal1' profile, all calls coming from source IP 10.1.* going to 
'internal2'
  profile, then for calls coming from other IP addresses those to RURI-domain
  iptel.org go to 'iptel' profile, and all other calls being refused, we could 
set
  ~~~~~~~~~ sbc.conf ~~~~~~~~~
  profiles=internal1,internal2,iptel,refuse
  regex_maps=src_ipmap,rurimap
  active_profile=$M($si=>src_ipmap),$M($rh=>rurimap),refuse
  ~~~~~~~~~~~~~~~~~~ ~~~~~~~~~

  ~~~~~~~~~ src_ipmap.conf ~~~
  ^10\.0\..*=>internal1
  ^10\.1\..*=>internal2
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  ~~~~~~~~~ rurimap.conf ~~~~~
  iptel.org=>iptel
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~

That should basically do the trick.

Cheers
-Raphael.

> Thanks,
>  
> Moacir
> _______________________________________________
> Sems mailing list
> [email protected]
> http://lists.iptel.org/mailman/listinfo/sems

_______________________________________________
Sems mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/sems

Reply via email to