[ previous ] [ next ] [ threads ]
 To :  "Dome Charoenyost" <dome@t...>
 From :  "Tomasz P" <fabrykabit@g...>
 Subject :  Re: [yate] Re: What's channel type variable ?
 Date :  Sat, 15 Dec 2007 12:49:15 +0100
Add "module" parameter to Your plpgsql function, like this:

query=SELECT * from y_getroute('${called}','${address}','${proto}','${module}')

Regards.

2007/12/13, Dome Charoenyost :
> Look like no protocol message.
> This is my stupid way :)
> I put
>   m->addParam("protocol","h323");
> in to h323chan.cpp below call.preroute line
> and
>   m->addParam("protocol","sip");
> into ysipchan.cpp
>
>
> Dome C.
>
>
> On 12/13/07, Dome Charoenyost  wrote:
> > Dear All,
> > I want to modify getroute for check channel type (h323 Or sip Or ..)
> > before return destination gateway.
> >
> > Example
> >
> > query=SELECT * from y_getroute('${called}','${address}','${proto}')
> >
> > Can someone guide me ?
> >
> > Dome C.
> >
>