Hi,
I have configured a cisco gateway with the timer receive-rtcp so that in case of sip client disconnection from the network, the gateway would still send a BYE and disconnects the POTS side after the timer hits.
The cisco is doing the job however SER's ACC module is not registering these BYEs; i.e. I cannot account for duration of the call.
Is this because no OK is sent back from the sip client that was disconnected? Is there a way to get around this?
Thanks,
Karl
---------------------------------
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!
Hello everyone,
I badly need some help on the following issue ...
I am trying to rewrite the To: and From: headers in order to change some
prefixes found in REGISTER requests. In fact I want to save both the
original request and the modified one. However, even though subst()
reports a successfull replace in the logs (textops: subst_f: replacing
at offset 41 [sip:33] with [sip:0] / textops: subst_f: replacing at
offset 312 [sip:33] with [sip:0] ), the message does not seem to
actually be modified. When I dump the request before and after in a
file, I see no difference, and the save_noreply is processing the
original REGISTER request.
I have read a thread from sep. 2003 where someone said the subst
replacement is only effective just before the message is sent out ... so
I even tried "faking" a t_relay before the save_noreply, but it does not
work neither.
Here is the code I am using :
if (method=="REGISTER") {
save("location");
exec_msg("echo -e REGISTER `date` '\n' `printenv | grep SIP` '\n' >>
/var/log/ser-register.log");
if (search("^From.*sip:33.*")) {
subst('/sip:33/sip:0/g');
save_noreply("location");
exec_msg("echo -e REGISTER DUP `date` '\n' `printenv | grep SIP`
'\n' >> /var/log/ser-register-dup.log");
exec_msg("cat - >> /var/log/ser-register-dup.log");
break;
};
break;
};
Does anyone have an idea why it is not working at all ?
FYI. I also tried textops replace_all function, with no luck.
Best Regards,
Jerome Martin
Hi, ALL:
If there are three UACs(1001, 1002, 1003) register on the same SER,
and they are setting as the same group number for example "1000".
If another UAC make a call to 1001, and 1001 is buzy. The call will be
transfer or forward to 1002 or 1003.
How to implement it? Does anybody have an idea/soluton for it?
Help me please.
--
Best Regards
Charles
Hi,
I tried many things but none seems to work. I am using ser 0.8.4.
With the following code in ser.cfg, every time a REGISTER arrives with
the 33XXXXXX format, the request is logged in my duplicates log, but the
subst line does not seem to work. I tried replace and replace_all also,
but no luck.
I though that maybe the exported shell variables I am dumping in my log
file are not updated after the subst, but a serctl ul show clearly
display only the 33XXXXXX numbers in the location database.
Here is the code I am using :
if (method=="REGISTER") {
save("location");
exec_msg("echo -e REGISTER `date` '\n' `printenv
| grep SIP` '\n' >> /var/log/ser-register.log");
if (search("^From.*sip:33.*")) {
subst('/sip\:33/sip\:0/g');
save_noreply("location");
exec_msg("echo -e REGISTER DUP `date`
'\n' `printenv | grep SIP` '\n' >> /var/log/ser-register-dup.log");
break;
}
break;
};
Any idea ?
Alan Litster wrote:
>>Hi,
>>
>>Thanks for your reply.
>>
>>Alan Litster wrote:
>>
>>
>>
>>>Doing it the way you've suggested would mean modifying the From and To
>>>
>>>
>>>
>>>
>>Indeed. I already tried that, using the replace() / replace_all()
>>textops functions, but I could not even manage to have the header
>>modified. It just did nothing at all ....
>>
>>
>I've had the situation where I've needed to update the Refer-To: header as
>the gateway was unable to handle it in a satisfactory manor. For this I used
>the subst function in the textops module, I'm not sure if this functions any
>differently to the replace functions.
>
>
>
>>Besides, in the recent thread Re: [Serusers] HF replace, someone said
>>that modifying From: and To "is not allowed".
>>
>>
>It's recomended not too, though most people want to modify the From on
>INVITE's. It may not be such a problem on a REGISTER method, just do a
>save_noreply("location")
>
>
>
>>But I am wondering ... ain't it the "Contact:" header which is used by
>>register.so/usrloc.so ?
>>
>>
>It's Contact header is used as the location of the UAC,
>'username@ipaddress_of_uac'. The From/To fields are used as the username
>part on the sip registrar, generally the From/To are the same though may not
>always be the case.
>See http://www.faqs.org/rfcs/rfc3261.html section 10.2
>
>
>
>>>fields, then doing a save. This should in theory all the UAC to
>>>
>>>
>>register on
>>
>>
>>>the two addresses, it could get a little messy.
>>>
>>>
>>>
>>>
>>I agree. I anticipate a few issues on that side.
>>
>>
>>
>>>An alternative would be to create an alias, this would be fine
>>>
>>>
>>if you knew
>>
>>
>>>before hand what format they would register with.
>>>
>>>
>>>
>>>
>>Well, I know which server will send what format, and I can afford to
>>hardcode the IPs in the ser.cfg. But after reading the section about
>>aliases in the ser Admin's manual, I must confess it is not clear for
>>me. Could you elaborate on that idea ?
>>
>>
>In your example you want lookup("33122334455") to return the same as
>lookup("0122334455"). Well if 33122334455 is an alias for 0122334455 it
>will. First it does an alias lookup of 33122334455(a)mydomain.com which
>replaces the r-uri with 0122334455(a)mydomain.com then it does a lookup on
>that, finds a match and does a further replace with 0122334455(a)1.2.3.4 (The
>IP address of the UAC from the Contact record)
>
>
>
>>>>-----Original Message-----
>>>>From: serusers-bounces(a)iptel.org [mailto:serusers-bounces@lists.iptel.org]On
>>>>Behalf Of Jerome Martin
>>>>Sent: 04 May 2005 15:16
>>>>To: serusers(a)lists.iptel.org
>>>>Subject: [Serusers] I need to alter and duplicate REGISTER saves
>>>>
>>>>
>>>>Hello everyone,
>>>>
>>>>After looking everywhere in the docs and ML archives, I couldn't find a
>>>>way to solve my problem, so I would appreciate any help.
>>>>
>>>>We have several iPBX servers sending REGISTERs to a SER registrar. Some
>>>>of those servers send us the numbers to register as aor in the form
>>>>0XXXXXXXXX (local numbering plan), some other in the form 33XXXXXXXXX
>>>>(local country code prefix). For various reasons, we need to handle
>>>>those different REGISTERs simultaneously, and be able to lookup both
>>>>formats in the location database.
>>>>
>>>>What I'm looking for is a way to "duplicate" the REGISTER entries, i.e.
>>>>when ser receives a REGISTER for 33XXXXXXXXX, I'd like it to save() the
>>>>33XXXXXXXXX, but also create an entry for the corresponding 0XXXXXXXXX.
>>>>
>>>>Example : SER receives a REGISTER request for 33122334455. I'd like to
>>>>have two aors in the location database, so that lookup("33122334455")
>>>>and lookup("0123344556") would both return the same thing.
>>>>
>>>>What I have in mind is something like this :
>>>>
>>>>if (method=="REGISTER") {
>>>> # Always save the original aor
>>>> save("location");
>>>>
>>>> # If the number starts with 33, also save a duplicate aor in the
>>>>0XXXXXXXXX format
>>>> if (search("^From.*sip:33.*")) {
>>>>
>>>> # Insert some code to alter the received SIP message and
>>>>
>>>>
>>change the
>>
>>
>>>> # number in order to save the 0XXXXXXXXX aor
>>>> # ...
>>>> # ...
>>>> # ...
>>>>
>>>> save("location");
>>>> break;
>>>> }
>>>> break;
>>>>};
>>>>
>>>>Can anyone help ?
>>>>
>>>>Best Regards,
>>>>Jerome Martin
>>>>
>>>>_______________________________________________
>>>>Serusers mailing list
>>>>serusers(a)lists.iptel.org
>>>>http://lists.iptel.org/mailman/listinfo/serusers
>>>>
>>>>
>>>>
>>>>
>>>-----------------------------------------------------------------
>>>
>>>
>>----------------------------
>>
>>
>>>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 the company.
>>
>>
>>>Nothing in this mail shall bind the company in any contract or
>>>
>>>
>>obligation.
>>
>>
>>>Tel +44 (0) 20 8002 6000
>>>Fax +44 (0) 20 8002 6060
>>>
>>>______________________________________________________________________
>>>This email has been scanned by the MessageLabs Email Security System.
>>>For more information please visit http://www.messagelabs.com/email
>>>______________________________________________________________________
>>>
>>>
>>>
>>>
>
>---------------------------------------------------------------------------------------------
>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 the company.
>Nothing in this mail shall bind the company in any contract or obligation.
>
>Tel +44 (0) 20 8002 6000
>Fax +44 (0) 20 8002 6060
>
>______________________________________________________________________
>This email has been scanned by the MessageLabs Email Security System.
>For more information please visit http://www.messagelabs.com/email
>______________________________________________________________________
>
>
Hell all,
Firstly I'm new here so forgive a perhaps fairly basic question.
I've just compiled and installed ser on this Linux PC:
$ ser -V
version: 0.8.14 (i386/linux)
When I try to run the Ser Sip Server I get an error message to say
that there's errors in the Config file. I thought it must be picking
up the wrong file so I used -f option to force it to the default
config file and it gives the same error. My problem is in the Config
file provided.
$ ser -f /usr/local/etc/ser/ser.cfg
ERROR: bad config file (3 errors)
I thought I'd check the log files but I can't find mention of them in
the install documentation that I'm looking at:
http://cvs.berlios.de/cgi-bin/viewcvs.cgi/*checkout*/ser/sip_router/INSTALL
Can anybody tell me where the log files are and if there is any
obvious way of getting rid of the errors in the default ser.cfg?
Hi!
I want to use rtpproxy in remote mode, i.e. rtpproxy runs on another
machine as ser.
I've tried to start rtpproxy accordingly to the README.remote with:
./rtpproxy -s udp:213.10.10.10
But I only get this error response:
rtpproxy: explicit binding address has to be specified in UDP command mode
What am I doing wrong?
Alex Mack
hi,
I installed serweb, but i can't login to it using default uaser name
password
it says bad password and username...
Dhanuka Kaluarachchi
Head of production - Web & E-Business
Lanka Internet Services Ltd.
Hi guys,
I'm currently trying out CDRTool with ser for generating call detail
records.Currently, I getting a problem in a single call session whereby
when a user calls a certain destination and an invite is sent; if the
called party does not reply in time, a reinvite is sent. However, both
records are recorded in CDRTool, each having the same SIP Session. Why
it this so? Shouldn't only one session be recorded?
Session start time SIP caller
In SIP destination
Out Dur Price KBIn KBOut Status Codecs
4N 2005-05-05 18:32:22 1001(a)lab.test.com
1002(a)lab.test.com
00.07 Ok (200)
Signalling information
SIP Session: 000ded22-eeb20005-306b5b03-43a91caf(a)192.168.10.2
SIP Method: 1 from :
SIP Status: Ok (200) DelayTime: (s)
SIP From: sip:1001@lab.test.com
SIP To: sip:1002@lab.test.com
Start time (caller): 2005-05-05 18:32:22 Asia
Start time (proxy): 2005-05-05 18:32:22 Asia
Stop time (proxy): 2005-05-05 18:32:29 Asia
Session duration: 00:07
SIP Proxy: 192.168.1.2
Next SIP hop:
Billing Party: 1001(a)lab.test.com
5N 2005-05-05 18:32:21 1001(a)lab.test.com
1002(a)lab.test.com
00:08 Ok (200)
Signalling information
SIP Session: 000ded22-eeb20005-306b5b03-43a91caf(a)192.168.10.2
SIP Method: 1 from :
SIP Status: Ok (200) DelayTime: (s)
SIP From: sip:1001@lab.test.com
SIP To: sip:1002@lab.test.com
Start time (caller): 2005-05-05 18:32:21 Asia
Start time (proxy): 2005-05-05 18:32:21 Asia
Stop time (proxy): 2005-05-05 18:32:29 Asia
Session duration: 00:08
SIP Proxy: 192.168.1.2
Next SIP hop:
Billing Party: 1001(a)lab.test.com
Kindly advise,
Regards,
YY
I wrote a script last night to start/stop/restart SER for FreeBSD as I was
unable to see one in the src. I'm happy to submit it into SER, but unsure
how to do this.
PB