[Serusers] routing question
Jiri Kuthan
jiri at iptel.org
Tue Jun 17 21:02:06 CEST 2003
Steve,
The fragment alone looks ok. It is hard to tell what script error
you have from such a small script fragment and without seeing the
messages. We would need both to judge what the problem is.
-Jiri
At 07:54 PM 6/17/2003, Steve Blair wrote:
>Hello:
>
> I have some Cisco phones registered to SER running on
>FreeBSD 4.7. Users of these phones want to dial a telephone
>number and have the call correctly routed out to the PSTN
>via a Cisco gateway on the network. The users of course
>only key-in a telephone number. No domain name or
>IP address. I thought the following code would correctly
>append the IP address and port of the gateway to their
>telephone number so the call could get routed correctly. This
>is not working. Instead either the IP address of the calling
>phone or the domain name for my domain is appended. Any
>thought on how to correct this would be appreciated.
>
> # check if it's about PSTN destinations through our gateway;
> if (uri=~"sip:9{10}")
> {
> route(4);
> break;
> };
>
> route[4]
> .....
> some account statements followed by
> .....
> rewritehostport("ip-address-of-pstn-gateway:5060");
>
>
>Thanks,Steve
>
>_______________________________________________
>Serusers mailing list
>serusers at lists.iptel.org
>http://lists.iptel.org/mailman/listinfo/serusers
--
Jiri Kuthan http://iptel.org/~jiri/
More information about the sr-users
mailing list