Sorry Guys, I'm very new to this. Taking a dive 'under the hood', to try to learn what is going on, and to see what I can achieve.
I have 1 sip device ( voip telephone) on the network, constantly firing out REGISTER requests (I have turned off my asterisk server!). That's good. I have a terminal window open, running tcpdump. That's good too - I can see what is going on.
I also have kamailio - giving me absolutely nothing. It's not complicated config file. In fact it is the simplest I could do. However, it logs nothing - and i am expecting it to.
Can someone put me out of my misery, and point out the glaring error I have? How can I send messages to STDERR while testing?
Cheers,
Phil
----
## WARNING - FOR TESTING & EDUCTION ONLY ####### Global Parameters #########
debug=5 fork=no log_stderror=yes port=5060
####### Modules Section ########
# set module path mpath="/usr/local/lib/kamailio/modules/" loadmodule "sl.so"
####### Routing Logic ########
route{ if(method=="REGISTER") { log(1,"this SIP request is a REGISTER message\n"); sl_send_reply("404", "No registrar"); };
if (af!=INET6) { log(1,"Message received over IPv4 link\n"); };
if(proto==UDP) { log(1,"SIP message received over UDP\n"); };
if(status=="200") { log(1,"this is a 200 OK reply\n"); };
if(uri==myself) { log(1,"the request is for local processing\n"); }; }
How did you start it?
Daniel
On 01/10/14 02:27, White, Phil wrote:
Sorry Guys, I'm very new to this. Taking a dive 'under the hood', to try to learn what is going on, and to see what I can achieve.
I have 1 sip device ( voip telephone) on the network, constantly firing out REGISTER requests (I have turned off my asterisk server!). That's good. I have a terminal window open, running tcpdump. That's good too - I can see what is going on.
I also have kamailio - giving me absolutely nothing. It's not complicated config file. In fact it is the simplest I could do. However, it logs nothing - and i am expecting it to.
Can someone put me out of my misery, and point out the glaring error I have? How can I send messages to STDERR while testing?
Cheers,
Phil
## WARNING - FOR TESTING & EDUCTION ONLY ####### Global Parameters #########
debug=5 fork=no log_stderror=yes port=5060
####### Modules Section ########
# set module path mpath="/usr/local/lib/kamailio/modules/" loadmodule "sl.so"
####### Routing Logic ########
route{ if(method=="REGISTER") { log(1,"this SIP request is a REGISTER message\n"); sl_send_reply("404", "No registrar"); };
if (af!=INET6) { log(1,"Message received over IPv4 link\n"); };
if(proto==UDP) { log(1,"SIP message received over UDP\n"); };
if(status=="200") { log(1,"this is a 200 OK reply\n"); };
if(uri==myself) { log(1,"the request is for local processing\n"); }; }
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hi Daniel
I've tried a couple of incantations;
kamailio -e kamailio -E
and a combination of the two.
That's all.
On 1 Oct 2014, at 07:06, Daniel-Constantin Mierla miconda@gmail.com wrote:
How did you start it?
Daniel
On 01/10/14 02:27, White, Phil wrote:
Sorry Guys, I'm very new to this. Taking a dive 'under the hood', to try to learn what is going on, and to see what I can achieve.
I have 1 sip device ( voip telephone) on the network, constantly firing out REGISTER requests (I have turned off my asterisk server!). That's good. I have a terminal window open, running tcpdump. That's good too - I can see what is going on.
I also have kamailio - giving me absolutely nothing. It's not complicated config file. In fact it is the simplest I could do. However, it logs nothing - and i am expecting it to.
Can someone put me out of my misery, and point out the glaring error I have? How can I send messages to STDERR while testing?
Cheers,
Phil
## WARNING - FOR TESTING & EDUCTION ONLY ####### Global Parameters #########
debug=5 fork=no log_stderror=yes port=5060
####### Modules Section ########
# set module path mpath="/usr/local/lib/kamailio/modules/" loadmodule "sl.so"
####### Routing Logic ########
route{ if(method=="REGISTER") { log(1,"this SIP request is a REGISTER message\n"); sl_send_reply("404", "No registrar"); };
if (af!=INET6) { log(1,"Message received over IPv4 link\n"); };
if(proto==UDP) { log(1,"SIP message received over UDP\n"); };
if(status=="200") { log(1,"this is a 200 OK reply\n"); };
if(uri==myself) { log(1,"the request is for local processing\n"); }; }
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda _______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hello,
can you check if there are log messages in syslog file? have you checked that kamailio is running?
Daniel
On 01/10/14 08:45, Google - One wrote:
Hi Daniel
I've tried a couple of incantations;
kamailio -e kamailio -E
and a combination of the two.
That's all.
On 1 Oct 2014, at 07:06, Daniel-Constantin Mierla <miconda@gmail.com mailto:miconda@gmail.com> wrote:
How did you start it?
Daniel
On 01/10/14 02:27, White, Phil wrote:
Sorry Guys, I'm very new to this. Taking a dive 'under the hood', to try to learn what is going on, and to see what I can achieve.
I have 1 sip device ( voip telephone) on the network, constantly firing out REGISTER requests (I have turned off my asterisk server!). That's good. I have a terminal window open, running tcpdump. That's good too - I can see what is going on.
I also have kamailio - giving me absolutely nothing. It's not complicated config file. In fact it is the simplest I could do. However, it logs nothing - and i am expecting it to.
Can someone put me out of my misery, and point out the glaring error I have? How can I send messages to STDERR while testing?
Cheers,
Phil
## WARNING - FOR TESTING & EDUCTION ONLY ####### Global Parameters #########
debug=5 fork=no log_stderror=yes port=5060
####### Modules Section ########
# set module path mpath="/usr/local/lib/kamailio/modules/" loadmodule "sl.so"
####### Routing Logic ########
route{ if(method=="REGISTER") { log(1,"this SIP request is a REGISTER message\n"); sl_send_reply("404", "No registrar"); };
if (af!=INET6) { log(1,"Message received over IPv4 link\n"); };
if(proto==UDP) { log(1,"SIP message received over UDP\n"); };
if(status=="200") { log(1,"this is a 200 OK reply\n"); };
if(uri==myself) { log(1,"the request is for local processing\n"); }; }
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla http://twitter.com/#!/miconda -http://www.linkedin.com/in/miconda _______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org mailto:sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hi Daniel
Now you're making me paranoid!
Line 2 & 3 of the config file I interpret as "don't fork, don't background, send all log messages to STDERR. When proxy is started, yes it runs fine (at least I get a lot of output, including being informed what interface & port it is listening on). There is nothing in /var/log/messages - and because of the config, I would not expect there to be.
Am I missing something really embarrassingly basic here?
Cheers
On 1 Oct 2014, at 08:22, Daniel-Constantin Mierla miconda@gmail.com wrote:
Hello,
can you check if there are log messages in syslog file? have you checked that kamailio is running?
Daniel
On 01/10/14 08:45, Google - One wrote:
Hi Daniel
I've tried a couple of incantations;
kamailio -e kamailio -E
and a combination of the two.
That's all.
On 1 Oct 2014, at 07:06, Daniel-Constantin Mierla miconda@gmail.com wrote:
How did you start it?
Daniel
On 01/10/14 02:27, White, Phil wrote:
Sorry Guys, I'm very new to this. Taking a dive 'under the hood', to try to learn what is going on, and to see what I can achieve.
I have 1 sip device ( voip telephone) on the network, constantly firing out REGISTER requests (I have turned off my asterisk server!). That's good. I have a terminal window open, running tcpdump. That's good too - I can see what is going on.
I also have kamailio - giving me absolutely nothing. It's not complicated config file. In fact it is the simplest I could do. However, it logs nothing - and i am expecting it to.
Can someone put me out of my misery, and point out the glaring error I have? How can I send messages to STDERR while testing?
Cheers,
Phil
## WARNING - FOR TESTING & EDUCTION ONLY ####### Global Parameters #########
debug=5 fork=no log_stderror=yes port=5060
####### Modules Section ########
# set module path mpath="/usr/local/lib/kamailio/modules/" loadmodule "sl.so"
####### Routing Logic ########
route{ if(method=="REGISTER") { log(1,"this SIP request is a REGISTER message\n"); sl_send_reply("404", "No registrar"); };
if (af!=INET6) { log(1,"Message received over IPv4 link\n"); };
if(proto==UDP) { log(1,"SIP message received over UDP\n"); };
if(status=="200") { log(1,"this is a 200 OK reply\n"); };
if(uri==myself) { log(1,"the request is for local processing\n"); }; }
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda _______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Sorry. Now fixed. I was missing the obvious. route section works as expected. Apologies for the noise.
Regards Phil
On 1 Oct 2014, at 08:22, Daniel-Constantin Mierla miconda@gmail.com wrote:
Hello,
can you check if there are log messages in syslog file? have you checked that kamailio is running?
Daniel
On 01/10/14 08:45, Google - One wrote:
Hi Daniel
I've tried a couple of incantations;
kamailio -e kamailio -E
and a combination of the two.
That's all.
On 1 Oct 2014, at 07:06, Daniel-Constantin Mierla miconda@gmail.com wrote:
How did you start it?
Daniel
On 01/10/14 02:27, White, Phil wrote:
Sorry Guys, I'm very new to this. Taking a dive 'under the hood', to try to learn what is going on, and to see what I can achieve.
I have 1 sip device ( voip telephone) on the network, constantly firing out REGISTER requests (I have turned off my asterisk server!). That's good. I have a terminal window open, running tcpdump. That's good too - I can see what is going on.
I also have kamailio - giving me absolutely nothing. It's not complicated config file. In fact it is the simplest I could do. However, it logs nothing - and i am expecting it to.
Can someone put me out of my misery, and point out the glaring error I have? How can I send messages to STDERR while testing?
Cheers,
Phil
## WARNING - FOR TESTING & EDUCTION ONLY ####### Global Parameters #########
debug=5 fork=no log_stderror=yes port=5060
####### Modules Section ########
# set module path mpath="/usr/local/lib/kamailio/modules/" loadmodule "sl.so"
####### Routing Logic ########
route{ if(method=="REGISTER") { log(1,"this SIP request is a REGISTER message\n"); sl_send_reply("404", "No registrar"); };
if (af!=INET6) { log(1,"Message received over IPv4 link\n"); };
if(proto==UDP) { log(1,"SIP message received over UDP\n"); };
if(status=="200") { log(1,"this is a 200 OK reply\n"); };
if(uri==myself) { log(1,"the request is for local processing\n"); }; }
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda _______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda