Yes, I do have this. It is still not working. Anything else you can think of
that may cause PSTN problem? How about hosts file on this machine? How can I
debug this? I looked at /var/log/messes, it did not help me.
Gary
----- Original Message -----
From: "Jan Janak" <jan(a)iptel.org>
To: "gc" <garych(a)unidial.com>
Cc: <serusers(a)lists.iptel.org>
Sent: Tuesday, June 08, 2004 12:02 PM
Subject: Re: [Serusers] Problem using PSTN.
OK, to clarify it a bit, it should be something like
this:
if (uri =~ "^sip:1[0-9]+@.*") {
record_route();
rewritehostport("GW:PORT");
if (!t_relay()) {
sl_reply_error();
break;
};
};
Jan.
On 08-06 10:48, gc wrote:
> Sorry for the misspell. I did have "^SIP:" in there. I tried forward(),
> t_relay_to_udp() , t_relay_to(). None of them work. I also used ngrep to
> display the sip messages. it seems the message never get forward to PSTN
> gateway. Although I can directly connect to PSTN gateway with my sip
phone
> and make phone call. How can I debug this thing?
>
> gary
> ----- Original Message -----
> From: "Jan Janak" <jan(a)iptel.org>
> To: "gc" <garych(a)unidial.com>
> Cc: <serusers(a)lists.iptel.org>
> Sent: Tuesday, June 08, 2004 5:42 AM
> Subject: Re: [Serusers] Problem using PSTN.
>
>
> > The reqular expression is not correct, it should be something like
this:
> >
> > if (uri =~ "^sip:1.*")
> >
> > Jan.
> >
> > On 07-06 09:15, gc wrote:
> > > I am having problem using PSTN(AS5300). I have a VOCAL setup on the
same
> machine and PSTN works fine with VOCAL. Now I
want to test SER on the
same
> machine. I shut down VOCAL and start SER. I can
make SIP to SIP calls
but
> can not make SIP to PSTN call. In my ser.cfg, I
redirect all the calls
> starting with 1 to the PSTN like this:
> > > if (uri=~"^1.*"){
> > > log(1,"Forwarding to PSTN\n");
> > > record_reoute();
> > > rewritehostport("PSTN IP:PORT");
> > > };
> > >
> > > Do I need any specific module for PSTN to work? How can I debug
this?
> > >
> > > Gary
> > >
> >
> > > _______________________________________________
> > > Serusers mailing list
> > > serusers(a)lists.iptel.org
> > >
http://lists.iptel.org/mailman/listinfo/serusers
> >
> >
>