[Serusers] SER -> Cisco Gateway (PSTN)

Greger V. Teigre greger at teigre.com
Mon Feb 21 11:59:56 CET 2005


You need to t_relay after a rewritehostport, which only rewrites the ruri 
(no forwarding is done).   Or you should use the t_relay_to_udp() function.
g-)

Guido Krause wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> hi,
>
> we used the ser as a sip proxy and i will forward traffic to our
> cisco gateway (pstn). when i make a forward i become a timeout (no
> dialtone). whats wrong????
>
> we use ser-0.8.12-0
>
> ser.cfg
> ~ if (!lookup("location")) {
> ~                        if(uri =~"sip:1024#"){
> ~                                log(1,"Forwarding to PSTN\n");
> ~                                rewritehostport("IP-GW:5060");
> ~                              break;
> ~                        }else{
> ~                        sl_send_reply("404", "Not Found");
> ~                        log(1,"404 Not found\n");
> ~                        break;
> ~                };
>
>
> cisco:
> dial-peer voice 99300 voip
> ~ incoming called-number 1024#T
> ~ session protocol sipv2
> ~ dtmf-relay rtp-nte
> ~ codec g729r8 bytes 60
>
>
> thanks
>
> hans
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.4 (GNU/Linux)
> Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
>
> iD8DBQFCGbtpouYj3oyEw4wRAmR9AJ938/dqMVsbtAJdcI/RV9RVtMiLegCfVcs1
> ruGUvrL+dl+UHtHpQ5uxut4=
> =1N0c
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> Serusers mailing list
> serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers 




More information about the sr-users mailing list