Hi all,
when I shoot the following routing rule:
if ($rU=~"^[1]$" && src_ip==192.168.1.30) {
xlog("PBX to UA@PBX! $rU@$rd:$rp via $si");
$rU="185511";
$rd="192.168.1.30";
$rp="5060";
$du="sip:[email protected]:5060";
xlog("PBX to UA@PBX! $rU@$rd:$rp via $si");
force_send_socket(udp:192.168.1.150:5060);
t_relay();
exit;
}
I don't get why OpenSIPS is reverting my changes somewhere internally so this
happens:
U 192.168.1.30:5060 -> 192.168.1.150:5060 (PSTN to OpenSIPS)
INVITE sip:[email protected];user=phone SIP/2.0
To: sip:[email protected];user=phone
From: "bla"
<sip:[email protected];user=phone>;tag=7d6bed4b820d54e0c0ae4cb86f442b81
#
U 192.168.1.150:5060 -> 192.168.1.30:5060
SIP/2.0 100 Giving a try
To: sip:[email protected];user=phone
From: "bla" <sip:[email protected]
0;user=phone>;tag=7d6bed4b820d54e0c0ae4cb86f442b81
#
U 192.168.1.150:5060 -> 192.168.1.30:5060
INVITE sip:[email protected]:5060;user=phone SIP/2.0
To: sip:[email protected];user=phone
From: "bla" <sip:2031
@192.168.1.30;user=phone>;tag=7d6bed4b820d54e0c0ae4cb86f442b81
#
U 192.168.1.30:5060 -> 192.168.1.150:5060
SIP/2.0 100 Trying
To: sip:[email protected];user=phone
From: "bla"
<sip:[email protected];user=phone>;tag=7d6bed4b820d54e0c0ae4cb86f442b81
I simply want if someone from inside or outside calls a known area of numbers
that they are getting relayed to a different number. Is the above routing
script part wrong for my purpose?
Very Respectfully
Dimitry Nagorny
Trainee
robot5 GmbH
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users