Hey everyone,
I'm trying to work out how to recognise whether a user is offline or
just doesn't exist.
I have this snippet of code ...
if (!lookup("location")) {
<snip>
if ((method=="INVITE" || method=="ACK") && t_newtran() ) {
t_reply("404", "Not Found");
# Put an entry in the database
acc_db_request("404 Not Found","missed_calls");
break;
} else {
# all other requests to off-line users are simply
replied
# statelessly and no reports are issued
sl_send_reply("404", "Not Found");
break;
};
However, I don't think it's right.. as I don't see under what situations
I will reach the else statement... No matter whether I call an offline
user or a non-existent user I always get a 404 Not Found and an entry is
stored in the database...
This is not ideal - I'd like to be able to differentiate between an
offline and a non-existent user..
Can anyone help me on this please?
Many thanks in advance,
D
-------------------------------------
Dave Bath
dave(a)fuuz.com
www.fuuz.com
07736 232085
NOTE: The information contained in this email is intended for the named
recipients only, it may be privileged and confidential. If you are not
the intended recipient, you must not copy distribute or take any action
in reliance upon it. No warranties or assurances are made in relation to
the safety and content of this email and any attachments. No liability
is accepted for any consequences arising from it
Hey guys,
Having a small problem with calls to aliases not being displayed in
serweb. If I call <username>@<host> then the missed call is displayed
fine in the missed call section when <username> is logged in. If I call
<alias>@<host> I don't see them in the call section when <username> is
logged in. The calls to aliases are tagged and are in the database
missed_calls table, they're just not displayed in serweb... any ideas?
I'm using ser 814 and serweb 146
Many thanks in advance
Dave
-------------------------------------
Dave Bath
dave(a)fuuz.com
www.fuuz.com
07736 232085
NOTE: The information contained in this email is intended for the named
recipients only, it may be privileged and confidential. If you are not
the intended recipient, you must not copy distribute or take any action
in reliance upon it. No warranties or assurances are made in relation to
the safety and content of this email and any attachments. No liability
is accepted for any consequences arising from it
As soon as I add the loadmodule line for the URI module, I can't authenticate anymore, it times out and
even the debug shows nothing, no auth requests, etc. I have tried with several sip clients.
Can someone point me in the right direction?
Thanks
*** DISCLAIMER ***
This e-mail and any attachments thereto may contain information, which is confidential and/or protected
by intellectual property rights and are intended for the sole use of the recipient(s) named above. Any
use of the information contained herein (including, but not limited to, total or partial reproduction,
communication or distribution in any form) by persons other than the designated recipient(s) is
prohibited. If you have received this e-mail in error, please notify the sender either by telephone or
by e-mail and delete the material from any computer. Thank you for your cooperation.
I read the README file located in the exec module dir,but
was not sure about interface, since there is not a lot of info.
In the admin guide there is a few examples of exec_msg but
none of the exec_dst. Has anyone implemented this. I would
surely appreciate any info.
thanks,
Jignesh Gandhi
-----Original Message-----
From: Bogdan-Andrei IANCU [mailto:iancu@fokus.fraunhofer.de]
Sent: Thursday, July 29, 2004 3:32 AM
To: Gandhi, Jignesh
Cc: 'serusers(a)lists.iptel.org'
Subject: Re: [Serusers] re : re : redirect using external application.
Gandhi, Jignesh wrote:
> Hello,
>
> We have the following setup. A proxy forwarding all
> the calls to our SER and the SER replies to the proxy
> with the appropriate location where the call should be
> routed (statless). So the first call could go to A and
> the next call could go to C and so on.
>
> I want to be able to do some load balancing and smart
> routing. By smart routing I mean that a program
> running on the same box as the SER will keep track of
> the health status of all the destination boxes like A,
> B, C stated above. So when an invite comes from the
> proxy, How can I call an external let's say "c"
> program which will return the destination address the
> SER should should return to the Proxy to use.
>
> I have looked at exec_dst but the admin guide provides
> only exec_msg examples. I have a feeling that I could
> use it, but not sure.
indeed, the answer for you is exec_dst() - used for rewriting RURI. For
a detailed description, take a look into README file in modules/exec.
bogdan
>
> I hope that I explained the setup properly. If anyone
> has any questions please ask.
>
> thanks in advance for your help.
> Jignesh Gandhi
> Software Engineer II
> Jignesh.Gandhi(a)glenayre.com
>
>
>
> _______________________________________________
> Serusers mailing list
> serusers(a)lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
Bogdan I tried this but when i write
serctl ul add user sip:user@userip:5060
and check there is nothing in the database table location...
> ----- Original Message -----
> From: "Bogdan-Andrei IANCU" <iancu(a)fokus.fraunhofer.de>
> To: <pi(a)hostmates.com>; <serdev(a)lists.iptel.org>
> Sent: Wednesday, July 28, 2004 5:54 PM
> Subject: Re: [Serusers] Call Failed: 404 Not Found
>
> > pi(a)hostmates.com wrote:
> > >I changed ser.cfg
> > >listen=213.213.213.213 #myip
> > >alias=mydomain.org
> > >
> > >Chaged the sip phone system properties using the ip not the domain and
> > >serctl ul add stratsi sip:213.213.213.213:5060
> > >serctl ul add pi sip:213.213.213.213:5060
> > >Is that u mean ?
> >
> > ser.cfg is ok; the contact you inserted are wrong; serctl ul add is a
> > test to replace the registration process - so, by "serctl ul add" you
> > "register" a user with a contact (the ip of the user phone):
> > serctl ul add user user_phone_contact
> > so, replace in serctl cmd the contact: it shouldn't be the server ip,
> > but the user's phone ip.
> >
> > bogdan
> >
> >
> > __________ NOD32 1.578 (20031212) Information __________
> >
> > This message was checked by NOD32 antivirus system.
> > http://www.nod32.com
hello friends,
i run the command
pathc p0<modules/cpl-c/tm.patch
so again i made a make , make all
even though i did not find cpl-c.so
so how to get that
your help is highly appreciated
with regards
rama kanth
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail
hello friends,
in order to produce cpl-c.so
how do i need to use tbe tm.pacth
your help will be appreciated
with regards
rama kanth
__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail
Please see reply's inline...
-----Original Message-----
From: GR S [mailto:gr_sh2003@yahoo.com]
Sent: 29 July 2004 02:01
To: Dave Bath
Cc: serusers(a)lists.iptel.org
Subject: RE: [Serusers] Asterisks to ser to asterisk (voicemail)
Dave,
--- Dave Bath <dave(a)fuuz.com> wrote:
> Hey Girish,
<snip>
> Ser always pass it the format it's expecting... there must be way to
do
> a lookup(alias) and then re-write the URI with the alias before it
gets
> forwarded.?
I am sorry. I haven't used 'aliases' and MSILO module. So my knowledge
is very limited on using
these features. We also have a setup somewhat similer to what you had
described, but we have a
plug-in for SER from which we fetch the records from the database,
modify the uri and send it to
Asterisk. This works fine for us and as you said, the ${EXTEN} in
Asterisk dialplan handles all
such numbers.
Hmm... what do you mean about fetching from the database? I am using
the mysql module and have the subscribers and aliases stored in the
database... it sounds like I want to do exactly what you are doing -
lookup the alias in the database and then modify the URI. Do you have
any advice as to how you are doing this?
> Sorry if my explanation about the 404 is confusing... it's confusing
for
> me too! Attached is the ser.cfg (I hope it retains the indentation!)
>
>From your ser.cfg:
if ((method=="INVITE" || method=="ACK") && t_newtran() ) {
t_reply("404", "Not Found");
I think this is why you get the 404 message failure route. Instead try
this:
if ((method == ....
{
t_on_failure("4");
t_relay();
break;
}
Thanks - I'll try this! Although I'll need to check to make sure that I
still do cope with true 404 errors.
Thanks for all the help,
D
>
> Dave
>
Best Regards,
=====
Girish Gopinath <gr_sh2003(a)yahoo.com>
_______________________________
Do you Yahoo!?
Express yourself with Y! Messenger! Free. Download now.
http://messenger.yahoo.com
Hi all,
This is no doubt one of those stupid little errors that I just can't
spot, but I have spent too much time now, so I turn to the lists.
I have a ser.cfg that works great on a FreeBSD box, now I have moved
that config the a debian box. All software revisions (ser and rtpproxy)
are the same.
On the debian box the statement: if (uri==myself) always fails.
I have checked that the hostname of the box resolves to the box
correctly, and all the eth0 look sane. Something very basic is eluding
me here but I just can see what.
Tips? :)
-Jev
hello friends,
my s/w configurations are
o.s : redhat linux 9.0
ser : ser 0.8.12-tcp_nonb (i386/linux)
i want to use cpl
i try to include the cpl-c.so i checked in the
/usr/local/lib/ser/modules/
but i could not get that
so i try to make in the sip_router/modules/cpl-c/
it gives the error as
______________________________________________________
In file included from cpl_run.c:981:
cpl_proxy.h: In function `failed_reply':
cpl_proxy.h:167: structure has no member named
`t_get_fake_req'
In file included from cpl_run.c:981:
cpl_proxy.h: In function `run_proxy':
cpl_proxy.h:481: structure has no member named
`register_req_cb'
cpl_proxy.h:487: structure has no member named
`register_req_cb'
make: *** [cpl_run.o] Error 1
_______________________________________________________
so where am i going wrong
with regards
serdiehard
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail