[Serusers] SER Forward on busy
Greg Fausak
greg at august.net
Sat Jun 7 23:43:04 CEST 2003
OK,
I'll try again.
I couldn't keep it up before :-)
---greg
>
>
> Greg,
>
> please be kind enough and retry with 8.11 -- developing with 8.10
> is for us currently quite counterproductive.
>
> thanks,
>
> -jiri
>
> At 07:03 PM 6/7/2003, Greg Fausak wrote:
> >I got my hardcoded forwarding working, so I thought I'd
> > createa table and make it real. I created a new table, called
> > onbusy, that is exactly like 'aliases'. I then modified serctl
> > to support it, and inserted a forwardint record.
> >
> >Then, in my code, I added:
> >
> >#
> ># forward to location
> >#
> >route[2]
> >{
> > log(1,"IN ROUTE2");
> > if(method=="INVITE" | method=="BYE" | method=="PRACK")
> > {
> > log(1,"TRACE: addRecordRoute()");
> > setflag(1);
> > setflag(2);
> > addRecordRoute();
> > };
> >
> > t_on_negative("2");
> >
> > if(!t_relay())
> > {
> > sl_reply_error();
> > break;
> > };
> >}
> >
> >reply_route[2]
> >{
> > log(1,"REPLY_ROUTE:");
> > revert_uri();
> > #
> > # check to see if there is a number to forward to
> > #
> > if (!lookup("onbusy"))
> > {
> > t_reply_unsafe("487", "Busy Here?");
> > break;
> > };
> >
> > append_branch();
> > t_on_negative("2");
> >}
> >
> >However, it doesn't work...I get...
> >Jun 7 10:22:28 rave ser[752]: ERROR: reply cannot be parsed
> >Jun 7 10:22:28 rave ser[752]: on_negative_reply: Error in do_action
> >
> >
> >Any ideas???
> >
> >---greg
> >
> >
> >
> >_______________________________________________
> >Serusers mailing list
> >serusers at lists.iptel.org
> >http://lists.iptel.org/mailman/listinfo/serusers
>
> --
> Jiri Kuthan http://iptel.org/~jiri/
>
> _______________________________________________
> Serusers mailing list
> serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
>
More information about the sr-users
mailing list