Using the howto
8.2. Relaying PSTN in ser.cfg The following is an extremely simple sample of how to relay a call from a SIP client to the PSTN
# attempt handoff to PSTN
if(uri=~"^sip:9[0-9]*@mydomain.com"){ log("Forwarding to PSTN\n"); # The following line is not liked t_relay_to( "192.168.0.2", "5060"); break; };
gives:-
Aug 4 11:25:51 Sheriff ser: parse error (124,28-29): unknown command, missing loadmodule?
Am I missing a module?
Hello, check if you have tm and print modules loaded (if you use the same piece of config as below). Otherwise, send us line 124 from your config file.
Daniel
Dave Cotton wrote:
Using the howto
8.2. Relaying PSTN in ser.cfg The following is an extremely simple sample of how to relay a call from a SIP client to the PSTN
# attempt handoff to PSTN
if(uri=~"^sip:9[0-9]*@mydomain.com"){ log("Forwarding to PSTN\n"); # The following line is not liked t_relay_to( "192.168.0.2", "5060"); break; };
gives:-
Aug 4 11:25:51 Sheriff ser: parse error (124,28-29): unknown command, missing loadmodule?
Am I missing a module?
On Mon, 2003-08-04 at 12:29, Daniel-Constantin Mierla wrote:
Hello, check if you have tm and print modules loaded (if you use the same piece of config as below). Otherwise, send us line 124 from your config file.
Daniel
Effectively that was my line 124
t_relay_to( "192.168.0.2", "5060")
But since I mailed the list I've found a reference to t_relay_to_udp, if I use that I no longer get this error, and ser starts with 24 processes accompanied by 48 mysql processes, having never seen ser working correctly so I have no idea if this is supposed to happen.
Now I get good old 483 too many hops.
On Aug 04, 2003 at 12:52, Dave Cotton dcotton@linuxautrement.com wrote:
On Mon, 2003-08-04 at 12:29, Daniel-Constantin Mierla wrote:
Hello, check if you have tm and print modules loaded (if you use the same piece of config as below). Otherwise, send us line 124 from your config file.
Daniel
Effectively that was my line 124
t_relay_to( "192.168.0.2", "5060")
But since I mailed the list I've found a reference to t_relay_to_udp, if I use that I no longer get this error, and ser starts with 24 processes accompanied by 48 mysql processes, having never seen ser working correctly so I have no idea if this is supposed to happen.
Now I get good old 483 too many hops.
if(uri=~"^sip:9[0-9]*@mydomain.com"){ log("Forwarding to PSTN\n"); # The following line is not liked t_relay_to( "192.168.0.2", "5060"); break; };
Instead of t_relay_to_udp try: rewritehostport("192.168.0.10:5060"); t_relay();
(I think your pstn gateway relays the message back to you, because of the uri).
For a better pstn config. sample see examples/pstn.cfg in the ser source dir.
Andrei
That's use of 8.10 doc for 8.11 code, I guess. Use t_relay_to_udp. -jiri
-jiri
At 11:35 AM 8/4/2003, Dave Cotton wrote:
Using the howto
8.2. Relaying PSTN in ser.cfg The following is an extremely simple sample of how to relay a call from a SIP client to the PSTN
# attempt handoff to PSTN
if(uri=~"^sip:9[0-9]*@mydomain.com"){ log("Forwarding to PSTN\n"); # The following line is not liked t_relay_to( "192.168.0.2", "5060"); break; };
gives:-
Aug 4 11:25:51 Sheriff ser: parse error (124,28-29): unknown command, missing loadmodule?
Am I missing a module?
Dave Cotton dcotton@linuxautrement.com
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
-- Jiri Kuthan http://iptel.org/~jiri/
On Mon, 2003-08-04 at 12:38, Jiri Kuthan wrote:
That's use of 8.10 doc for 8.11 code, I guess. Use t_relay_to_udp. -jiri
Thanks, Looks like it, please see my other post.
Wow, this list responds so quickly, the answers come before I've finished typing the question.
Just need to sort out the 483 error and we may be cooking on gas.
And now someones pointed me to some info on that!