[ previous ] [ next ] [ threads ]
 To :  "'Diana Cionoiu'" <diana-liste@v...>
 From :  "stefano bianchi" <stefano.bianchi@i...>
 Subject :  R: [yate] YATE SBC via route application
 Date :  Tue, 29 Aug 2006 13:30:34 +0200
My way..

As i said i can't use the regex routing, as the destination endpoint is
resolved by an internal route function in the db .

I resolve in this way :
In register.conf
[call.route]
query=SELECT * from route_call7('${caller}','${called}')
result=location
priority=20 

In regexroute.conf
Nothing ...

In accfile as i said before.

My route_call7 return a data block like this
CREATE TYPE route_data3 AS
   ("location" text,
    caller text,
    line text,
    error text,
    timeout int4,
    formato text);

Using a return like this:
return {location => $destino, caller=>$caller2 ,line=> $line, error =>
$error,timeout => $timeout};

In "line" i put the account pointer (as like accfile said)
In caller i put the account name as like accfile said

And in location the full sip path to destination.

Now it work.

If some one need it...

Thanks a lot.
/stefano


-----Messaggio originale-----
Da: Diana Cionoiu [mailto:diana-liste@v...] 
Inviato: martedì 29 agosto 2006 10.35
A: stefano bianchi
Cc: yate@v...
Oggetto: Re: [yate] YATE SBC via route application

Hello Stefano,

In regexroute.conf you can have something like:
${address}^ip_address_here:=sip/${called};line=abbey.

ip_address_here should be like this:
192\.168\.1\.1

Diana Cionoiu

stefano bianchi wrote:

>Hi all,
>
>I'm lloking to use YATE as SBC, and authenticate yate to other sip
registar.
>
>In acc.file i put
>[abbey]
>enabled=yes
>protocol=sip
>username=xxxxxxx
>password=xxxxxxx
>registrar=82.85.18.90
>localaddress=auto
>
>And after reload yate authenticate well to abbynet OpenSer (1.0.1
>(i386/linux))
>
>Now i need call coming from internal ATA to be fwd to that 
>account/server, but i can't use regexroute file, as i route everything 
>wich register sql based routine.
>
>I neeed yto undestand how to instruct the route code about line and caller.
>
>Thank in advance
>
>/stefano
>
>  
>