I attempted to implement the code in the example for PSTN gateway where
after matching the enum in the user portion of the uri it uses
t_relay_to. When I
implement this I get unable to find t_relay_to in the startup of ser. It
find t_relay so I know that the tm module is loaded and exists, when I
do nm on the module I see the symbol t_relay_to in there as well???
# attempt handoff to PSTN
if (uri=~"^sip:9[0-9]*@.*") {
log("Forwarding to PSTN\n");
t_relay_to( "192.168.0.2", "5060");
break;
};
Hello,
I need some clarification on the order in which the routing script is
written.
We have multiple gateways that we trigger on various rules. Does it make any
difference to the way the routing script works if the lookup occurs at the
top or bottom of the script??
Our users accounts currently begin with either a 1, 7 or 8 and are of fixed
length. If we add a trigger that begins with one of those digits to send it
off via a gateway, you can't call that particular group of users.
Would it be best to do the lookup at the begining of the routing script or
add length constraints to the triggers?
Regards,
Alan
-------------------------------------------------------------------------------------------------------
This email, and any files transmitted with it, is copyright and may contain confidential information.
The contents are intended for the use of the addressee(s) only.
Unauthorized use may be unlawful.
If you receive this email by mistake, please advise sender immediately.
The views of the author may not necessarily constitute the views of Telco Electronics Limited.
Nothing in this mail shall bind Telco Electronics Limited in any contract or obligation.
Telco Electronics Limited
6-8 Oxford Court
Brackley
Northants
NN13 7XY
Tel 07000 701999
Fax 07000 701777
Hi All
I installed a SER and configured it to send the calls to a PSTN gateway.
then i configured a cisco gateway for sending the calls to SER.in tis
scenario there is no any problem and all the things work fine. after that
i replaced the cisco gateway (that originated the calls) with a windows
messenger 5.0 and started the test again, but it failed with error :
"You cannot have a voice conversation with 18008782897(a)panaisp.com. This
person needs one or more of the following: a computer sound card, version
4.0 or later of Windows Messenger, permission from his or her network
administrator."
I read the debugs and saw error : "Media Type(s) Unavailable"
I replaced the windows messenger with SJPHONE but this error repeated agin
"session rejected: 488 Not Acceptable media"
I don't know the meaning of this error.
Any experience?
Alireza
Hi all,
SER could not forward an INVITE message originating from a SIP UA to our
PSTN gateway with URL: sip:12354@ourDomain.com, but does with the URL:
sip:12345@GatewayIP. The following if statement has been added into the
SER config file:
if(uri=~"sip:[0-9]*@.*" &&(!(src_ip==130.149.159.196))){
rewritehostport("130.149.159.196:4000");
if (!t_relay()) {
sl_reply_error();
};
break;
};
In this case, SER sends the message "404 Not Found" to the SIP UA. What
could the problem be? Does anyone know?
Thanks,
Adel Al-Hezmi
I read all the former posts and added the line lookup("aliases") in to my
ser.cfg and I try to start ser but this is the output
0(0) submit_query(): Table 'ser.alias' doesn't exist
0(0) submit_query(): Error while submitting query
0(0) preload_udomain(): Error while doing db_query
0(0) register_udomain(): Error while preloading domain 'alias'
0(0) domain_fixup(): Error while registering domain
ERROR: error ffffffff while trying to fix configuration
after tham I tried to test it by using serctl add alias command, but when
the command is executed
it seems that ser will go to infinite loop
any idea?
thanks, Andrea
Hi Guys
I read radius howto and download and compile all necessary files and
install all of them and then recompiled SER for supporting
Radius.Authentication with radius is work great but about accounting
nothing happend.(I read the acc and radius howto and know that i should
uncomment 2 lines on Makefile of acc module and did it)I tested radius by
a H.323 gateway and it worked and loged accounting packets but when i want
to log SER it does not work, here is my ser.cfg file that related to
accounting:
# ACCOUNTING
modparam("acc", "radius_config",
"/usr/local/etc/radiusclient/radiusclient.conf")
modparam("acc", "service_type", 16)
modparam("acc", "radius_flag", 2 )
modparam("acc", "radius_missed_flag", 3)
if (method=="INVITE") {
log(1, "INVITE--ALIREZA\n");
setflag(2);
};
if (method=="BYE") {
log(1, "BYE--ALIREZA\n");
setflag(2);
};
I read acc howto and copy the configuration from that but nothing was
changed, after that i changed radius_flag and service_type to defualt
values (1,15)but it does not still work.I saw some logs in
/var/log/message that said: " ser[5029]: INVITE--ALIREZA "
it seems ser log the invite correctly (as i configured) but nothing
happens on radius.
Any sugesstion appreciated.
Alireza
hi i like to forward a request to another server for pstn call from inside my code...can u pls tell me where i can i find the definition for forward function.....which module holds it.....
Regards
Dhawan K
Hi everyone,
I have a little problem. My network looks like this:
x-lite softphone on mac
xlite-softphone on win
grandstream budgetone 100 ip phone
ser proxy (freebsd port build)
VEGA gateway
Incoming calls work great. But outgoing calls are being disconnected
after 16 seconds. Now i talked to grandstream people and i have two
versions of x-lite, the new version b1101 and the old one. With the old
version the outgoing calls are going fine, but the new version is not
working. They told me that the old version is working because it's not
using the Branch ID. The new one does, so does the ip phone, hence it's
not working. I did send him the trace files and everything. Now i
guess my question is : is it ser's fault or vega's fault? Did anyone
experience simmilar problem?
I can send you the trace files if you need them.
Srbo Cvetkovic | CityNet, Inc.
srbo(a)city-net.com | Pittsburgh, PA
voice: 412.481.5406 | fax: 412.431.1315
Hi,
I have been running SER for a long time without any problem. But today it stopped by itself and I found the following messages in the syslog.
Mar 4 11:55:40 sip ser[891]: ERROR: udp_send: sendto(sock,0x40319580,734,0,0x4034c30c,16): Invalid argument(22)
Mar 4 11:55:40 sip ser[891]: CRITICAL: invalid sendtoparameters one possible reason is the server is bound to localhost
and attempts to send to the net
Mar 4 11:55:40 sip ser[891]: ERROR: add_uac: sending request failed
Mar 4 11:55:41 sip ser[941]: ERROR: udp_send: sendto(sock,0x40319580,734,0,0x4034c30c,16): Invalid argument(22)
Mar 4 11:55:41 sip ser[941]: CRITICAL: invalid sendtoparameters one possible reason is the server is bound to localhost
and attempts to send to the net
Mar 4 11:55:42 sip ser[892]: ERROR: udp_send: sendto(sock,0x80b5034,385,0,0x8241610,16): Invalid argument(22)
Mar 4 11:55:42 sip ser[892]: CRITICAL: invalid sendtoparameters one possible reason is the server is bound to localhost
and attempts to send to the net
Mar 4 11:55:42 sip ser[892]: ERROR: sl_reply_error used: Unfortunately error on sending to next hop occured (477/SL)
Mar 4 11:55:52 sip ser[891]: ERROR: udp_send: sendto(sock,0x4030db90,733,0,0x40341940,16): Invalid argument(22)
Mar 4 11:55:52 sip ser[891]: CRITICAL: invalid sendtoparameters one possible reason is the server is bound to localhost
and attempts to send to the net
Mar 4 11:55:52 sip ser[891]: ERROR: add_uac: sending request failed
Mar 4 11:55:52 sip ser[941]: ERROR: udp_send: sendto(sock,0x4030db90,733,0,0x40341940,16): Invalid argument(22)
Mar 4 11:55:52 sip ser[941]: CRITICAL: invalid sendtoparameters one possible reason is the server is bound to localhost
and attempts to send to the net
Mar 4 11:55:53 sip ser[893]: ERROR: udp_send: sendto(sock,0x80b4518,384,0,0x8242ba0,16): Invalid argument(22)
Mar 4 11:55:53 sip ser[893]: CRITICAL: invalid sendtoparameters one possible reason is the server is bound to localhost
and attempts to send to the net
Mar 4 11:55:53 sip ser[893]: ERROR: sl_reply_error used: Unfortunately error on sending to next hop occured (477/SL)
Mar 4 11:56:00 sip ser[891]: ERROR: udp_send: sendto(sock,0x40319580,734,0,0x40312be0,16): Invalid argument(22)
Mar 4 11:56:00 sip ser[891]: CRITICAL: invalid sendtoparameters one possible reason is the server is bound to localhost
and attempts to send to the net
Mar 4 11:56:00 sip ser[891]: ERROR: add_uac: sending request failed
Mar 4 11:56:00 sip ser[941]: ERROR: udp_send: sendto(sock,0x40319580,734,0,0x40312be0,16): Invalid argument(22)
Mar 4 11:56:00 sip ser[941]: CRITICAL: invalid sendtoparameters one possible reason is the server is bound to localhost
and attempts to send to the net
Mar 4 11:56:01 sip ser[896]: ERROR: udp_send: sendto(sock,0x80b49e8,385,0,0x8240448,16): Invalid argument(22)
Mar 4 11:56:01 sip ser[896]: CRITICAL: invalid sendtoparameters one possible reason is the server is bound to localhost
and attempts to send to the net
Mar 4 11:56:01 sip ser[896]: ERROR: sl_reply_error used: Unfortunately error on sending to next hop occured (477/SL)
Mar 4 11:56:07 sip ser[876]: child process 941 exited by a signal 11
Mar 4 11:56:07 sip ser[876]: core was not generated
Mar 4 11:56:07 sip ser[876]: INFO: terminating due to SIGCHLD
What may be the possible cause? How to avoid it?
Thanks a lot!
Bob