[Spce-user] Do not allow VoIP calls between Domains
Deon Vermeulen
vermeulen.deon at gmail.com
Wed Jan 19 03:19:11 EST 2011
Hi Andreas
Thanks for the feedback and the info.
Would it e correct if like this?
########################################################################
# Request route 'invite-find-callee'
########################################################################
route[ROUTE_FIND_CALLEE]
{
xlog("L_INFO", "Searching for callee - M=$rm R=$ru F=$fu T=$tu IP=$si:$sp ID=$ci\n");
# make sure to init it to 0 again if we come from a failure-route also
$var(loose_routed) = 0;
if($var(forward == 1))
{
$(avp(s:caller_domain)[*]) = $(avp(s:caller_cli){uri.domain});
$(avp(s:caller_cli)[*]) = $(avp(s:caller_cli){uri.user});
avp_delete("$avp(s:acc_callee_dialed)/g");
$avp(s:acc_callee_dialed) = $rU;
}
if($fd != $rd)
{
route(ROUTE_PSTN);
}
Really appreciate the help.
Regards
Deon
On Jan 16, 2011, at 9:59 AM, Andreas Granig wrote:
> Hi Deon,
>
> On 01/16/2011 08:42 AM, Deon Vermeulen wrote:
>> Could you perhaps give one way to do this using the default script?
>
> It could be done like this after checking for forwards in ROUTE_FIND_CALLEE:
>
> if($fd != $rd) { route(ROUTE_PSTN); }
>
> If you need specific customizations, we can provide professional
> services to do so, just let me know.
>
> Andreas
>
> _______________________________________________
> Spce-user mailing list
> Spce-user at lists.sipwise.com
> http://lists.sipwise.com/listinfo/spce-user
More information about the Spce-user
mailing list