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
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@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
-- Jiri Kuthan http://iptel.org/~jiri/
Hi All,
I have a similar problem. However, I have no route(4).
Usually, what does one setup the config to look assuming there are a couple of phones, and a gateway?
Sean
----- Original Message ----- From: "Jiri Kuthan" jiri@iptel.org To: "Steve Blair" blairs@isc.upenn.edu; serusers@lists.iptel.org Sent: Tuesday, June 17, 2003 4:02 PM Subject: Re: [Serusers] routing question
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@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
-- Jiri Kuthan http://iptel.org/~jiri/
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
At 01:49 AM 6/18/2003, Sean Watkins wrote:
Hi All,
I have a similar problem. However, I have no route(4).
Usually, what does one setup the config to look assuming there are a couple of phones, and a gateway?
Usually, it takes a numbering plan which distinguishes both. http://www.iptel.org/ser/doc/seruser.html#AEN322
-jiri