LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-18-2009, 04:20 AM   #1
rajesh84210
Member
 
Registered: Jul 2009
Posts: 53

Rep: Reputation: 15
kindly describe this line for me


Dear All,
Iam configuring an opensource server and i would like to know the meaning of this line..
i get an error in this line.(This is kamailio server and iam trying for instant messaging conference in it)


xdbg("script: message from [$fu ] chat0000 [$ru ] msg [$rb]\n");
 
Old 08-18-2009, 04:32 AM   #2
mhernandez314
LQ Newbie
 
Registered: Aug 2009
Posts: 9

Rep: Reputation: 0
It seems like a call to a debugging function, but it obviously depends on the context of the source.
You'll need to provide some more info (source file, line...) if you want any more logic responses.
 
Old 08-18-2009, 04:34 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well presumably xdbg is a method for logging a debug message, and it's called with a message string. Nothing tricky.
 
Old 08-18-2009, 04:40 AM   #4
rajesh84210
Member
 
Registered: Jul 2009
Posts: 53

Original Poster
Rep: Reputation: 15
yes i shall post the entire code .. i have marked it by using *******, that s exactly where the code is..


debug=5 # debug level (cmd line: -dddddddddd)
fork=no # don't fork
log_stderror=yes # log to stderr (cmd line: -E)


children=0 # number of children
check_via=no # (cmd. line: -v)
dns=off # (cmd. line: -r)
rev_dns=off # (cmd. line: -R)
port=5065

listen=192.168.64.75
alias="stefan.lo"

# ------------------ module loading ----------------------------------
mpath="/usr/local//lib/kamailio/modules/"

loadmodule "db_mysql.so"
loadmodule "textops.so"
loadmodule "usrloc.so"
loadmodule "maxfwd.so"
loadmodule "imc.so"
loadmodule "tm.so"
loadmodule "sl.so"
loadmodule "xlog.so"
loadmodule "mi_fifo.so"
loadmodule "registrar.so"


# ----------------- setting module-specific parameters ---------------

# -- mi_fifo params --
##modparam("mi_fifo", "fifo_name", "/tmp/openser_fifo")
modparam("mi_fifo", "fifo_name", "/tmp/kamailio_fifo")


# -- usrloc params --
modparam("usrloc", "db_mode", 2)

# -- registrar params --
modparam("registrar", "default_expires", 120)

# -- registrar params --
modparam("usrloc", "db_mode", 0)

# -- imc params --
modparam("imc", "imc_cmd_start_char", "#")
modparam("imc|usrloc", "db_url", "mysql://openserpenserrw@192.168.64.75/openser")

# -- tm params --
modparam("tm", "fr_timer", 10 )
modparam("tm", "fr_inv_timer", 15 )
modparam("tm", "wt_timer", 10 )


route{
if ( !mf_process_maxfwd_header("10") )
{
sl_send_reply("483","To Many Hops");
drop();
};

# registrations -
if(is_method("REGISTER")) {
save("location");
exit;
}
##if(uri=~"sip:q*@")
## if(uri=~"sip:chat-0000@192.168.64.75")

##the below line has been edited by Rajesh.
if(uri=~"sip:chat0000@192.168.64.75")
{
# IMC - message

**************************************************************************************************
xdbg("script: message from [$fu ] chat0000 [$ru ] msg [$rb]\n");
if(is_method("MESSAGE"))
{
log("MESSAGE received -> processing with imc\n");
sl_send_reply("200", "ok");
imc_manager();
exit;
} else {
sl_send_reply("404", "not found");
exit;
};
} else {
xdbg("script: message not for room, from [$fu ] r-uri [$ru] msg [$rb]\n");
if(!lookup("location"))
{
sl_send_reply("404", "not found");
exit;
}
t_relay();
#sl_send_reply("200", "ok");
exit();
};
}
 
Old 08-18-2009, 04:50 AM   #5
rajesh84210
Member
 
Registered: Jul 2009
Posts: 53

Original Poster
Rep: Reputation: 15
any posts for me ?..
 
Old 08-18-2009, 04:58 AM   #6
rajesh84210
Member
 
Registered: Jul 2009
Posts: 53

Original Poster
Rep: Reputation: 15
Thanks acid Kewpie,
Sorry, i dint see ur post before replying to my earlier post.i get the following error and the error points to the previous line.

ERROR:corev_parse_spec: error searching pvar "fu"
Aug 18 14:54:07 [15286] ERROR:corev_parse_spec: wrong char [u/117] in [$fu ] chat0000 [$ru ] msg [$rb]
] at [2 (0)]
Aug 18 14:54:07 [15286] ERROR:xlog:xdbg_fixup: wrong format[script: message from [$fu ] chat0000 [$ru ] msg [$rb]
]
Aug 18 14:54:07 [15286] ERROR:core:fix_actions: fixing failed (code=-1) at cfg line 83
Aug 18 14:54:07 [15286] ERROR:core:main: failed to fix configuration with err code -1
 
Old 08-18-2009, 04:59 AM   #7
mhernandez314
LQ Newbie
 
Registered: Aug 2009
Posts: 9

Rep: Reputation: 0
It deffinately is a debugging function; if debug mode is activated then that line is displayed (probably in stderr).

Nothing to worry about.
 
Old 08-18-2009, 05:14 AM   #8
rajesh84210
Member
 
Registered: Jul 2009
Posts: 53

Original Poster
Rep: Reputation: 15
but i do get errors pointing to that line.. whats ur say?..
 
Old 08-18-2009, 08:27 AM   #9
mhernandez314
LQ Newbie
 
Registered: Aug 2009
Posts: 9

Rep: Reputation: 0
Which errors? Where? When?
 
Old 08-18-2009, 09:25 AM   #10
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Bookworm (Fluxbox WM)
Posts: 1,391
Blog Entries: 54

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
The error is that the variable '$fu' was not found.

The documentation suggests that you need to load the module 'pv' in order to gain access to the variables.
 
Old 08-18-2009, 11:38 PM   #11
rajesh84210
Member
 
Registered: Jul 2009
Posts: 53

Original Poster
Rep: Reputation: 15
@mhernandes
The errors which i have mentioned in the post just above ur post.

I would like to know what exactly is $fu and do i need to make any changes in it .. i have posted my full cfg above.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Please describe Mainwin directory fzanella Linux - Newbie 1 07-27-2009 02:38 PM
Sending email problem, too much to describe here ACDII Linux - Server 0 03-07-2007 01:12 PM
Memory regions - please describe Enjo Linux - General 1 03-22-2006 08:08 AM
how do you describe what you do? mcd Slackware 1 02-09-2005 06:16 PM
Describe Debian for me.... TheOneAndOnlySM Linux - Distributions 64 08-28-2003 01:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration