Hi,

[email protected] wrote on 06/15/2015 03:00 AM:
>
>
> I want to call offnet through   db_reg_agent via sems:
>
> internal_proxy--------> sems(db_reg_agent) ------->pstn_sbc
>
>
> I have read docs ,  no idea about the config.
>
>
> in    auth_b2b.sbcprofile.conf
>
>
> we can just write fixed account for call out
>
no, if the internal_proxy is e.g. Kamailio/*ser etc, you can fetch the
account from the DB easily and add it as header P-App-Param to the
INVITE going to SEMS. In auth_b2b.sbcprofile.conf it e.g. expects
 P-App-Param: u=<user>;d=<domain>;p=<pwd>


# A P-App-Param header is expected of the form:
#   P-App-Param: u=<user>;d=<domain>;p=<pwd>
# The INVITE is then sent from <user>@<domain>
# to ruri-user@<domain>
#
# if the user/domain/password should be set here
# in the configuration, replace $P(u), $P(p) and $P(d)
# below.

RURI=sip:$rU@$P(d)
From="\"$P(u)\" <sip:$P(u)@$P(d)>"
To="\"$rU\" <sip:$rU@$P(d)>"

## routing
# outbound proxy:
#outbound_proxy=sip:192.168.5.106:5060
# force outbound proxy (in-dialog requests)?
#force_outbound_proxy=yes
# destination IP[:port] for outgoing requests
#next_hop=192.168.5.106

enable_auth=yes
auth_user=$P(u)
auth_pwd=$P(p)



>
> can I use db_reg_agent subscriber  account call out ?
>
you can easily pick that subscriber account in the DB lookup in the proxy.

If that isn't possible you could write a small c++ call_control
module, or write one in DSM (even easier).

hth
Stefan
>
>
>
> Johnathan Zhao
>
>
>
> _______________________________________________
> 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