> I use NAGIOS to
> monitor SER to know when a server of applications on
> that server have ...
Can you tell me more ?
Harry
--- Steve Blair <blairs(a)isc.upenn.edu> a écrit :
>
>
> hgaillac-sip(a)yahoo.fr wrote:
>
> >Hello,
> >
> >Ok SRV records point to proxy sip server but if
> this
> >one is down before or during connection !!!
> >
> >
> >
> During a connection doesn't matter in my
> environment. I am running SER
> in a stateless
> mode. Once the call is setup media flows between
> endpoints and the proxy
> is out of the
> connection. I am not using NAT either.
>
> > SER1
> >DNS servers=== [?] =====sip agents
> > SER2
> >
> >How [?] can it provide H-A (heartbeat soft) between
> >ser boxes.
> >
> >
> >
> Neither the SRV or VRRP can provide a heartbeat
> between SER boxes. You'd
> need an application running on the SER boxes to do
> that. I rely upon
> t_replicate to update the backup during
> registration, I use NAGIOS to
> monitor SER to know when a server of applications on
> that server have
> failed and I use an SRV record defined in each phone
> to identify the
> proxy. This way the phone will failover on it's own
> during call setup.
> Of course this doesn't help during a call but as I
> said I am running SER
> in a stateless mode so the proxy "steps out" once
> the call is setup.
>
> >If one of these sip proxy failed during a call can
> we
> >redirect the call to the other proxy ?
> >
> >
> I'm not sure how you would accomplish this.
>
> >Regards
> >Harry
> >
> >--- Steve Blair <blairs(a)isc.upenn.edu> a écrit :
> >
> >
> >
> >>Sorry. I don't do diagrams :-) Which piece of this
> >>explanation is unclear?
> >>
> >>-Steve
> >>
> >>hgaillac-sip(a)yahoo.fr wrote:
> >>
> >>
> >>
> >>>Could you please send me a diagram ?
> >>>
> >>>Harry
> >>>--- Steve Blair <blairs(a)isc.upenn.edu> a écrit :
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>>VRRP for layer 3. H-A woud depend upon your
> >>>>availability requirements.
> >>>>In our case we use an SRV record to identify
> >>>>multiple proxy servers each
> >>>>with their own priority and weight. Phones
> >>>>
> >>>>
> >>register
> >>
> >>
> >>>>using the SRV name
> >>>>as the proxy address. Each proxy uses
> t_replicate
> >>>>
> >>>>
> >>to
> >>
> >>
> >>>>replicate
> >>>>registration data. So far this works for us.
> >>>>
> >>>>_Steve
> >>>>
> >>>>hgaillac-sip(a)yahoo.fr wrote:
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>Ok so vrrp for layer 2/3 but which solution for
> >>>>>
> >>>>>
> >>H-A
> >>
> >>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>?
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>Harry
> >>>>>--- Steve Blair <blairs(a)isc.upenn.edu> a écrit
> :
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>>Harry:
> >>>>>>
> >>>>>> Assuming you are talking about running VRRP
> in
> >>>>>>your routers and not
> >>>>>>on the Asterisk host itself then the answer is
> a
> >>>>>>qualified yes. VRRP by
> >>>>>>itself won't give you the transparency of an
> SRV
> >>>>>>record for identifying
> >>>>>>your proxy servers. It will allow you to have
> >>>>>>automatic failover to
> >>>>>>backup gateways should the primary gateway
> >>>>>>
> >>>>>>
> >>to/from
> >>
> >>
> >>>>>>your "SER subnet" fail.
> >>>>>>
> >>>>>>-Steve
> >>>>>>
> >>>>>>hgaillac-sip(a)yahoo.fr wrote:
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>>hello,
> >>>>>>>
> >>>>>>>Can we use VRRP when a SER is down ?
> >>>>>>>
> >>>>>>>
> >>>>>>> SER1 (master)
> >>>>>>>sip agents == || === Asterisk Farm==sip/pstn
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>gateway
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> SER2 (slave)
> >>>>>>>
> >>>>>>>Regards
> >>>>>>>Harry
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
>
>>>>___________________________________________________________________________
> >>>>
>
=== message truncated ===
___________________________________________________________________________
Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international.
Téléchargez sur http://fr.messenger.yahoo.com
Hello,
I'm having trouble with SER (0.9.4) sometimes corrupting the bodies of
SIP messages that it forwards. I'm using binary message bodies, with
appropriate Accept, Content-Type and Content-Length headers which the
proxy server should forward without modification.
Sometimes the messages are forwarded correctly with all headers and the
message body intact. Other times, one byte has gone missing from the end
of the message body, so that the value in the Content-Length header is
one more than the actual number of bytes in the message body. The
receiving UA then rejects this message because it is malformed. From
repeated testing, it looks as though this problem happens whenever the
number of bytes in the SIP message (going out from SER) prior to the
body is an even number. When there are an odd number of bytes, the
message body is always uncorrupted.
Anybody have any ideas what's happening here or how to fix it?
Jon.
Hello all,
the pdt module was enhanced to support multidomain translation of the
prefixes, i.e. a new R-URI domain is searched by prefix and domain of
FromURI. Until now the search was performed by prefix only.
**************
This means the database table will have three columns (sdomain, prefix,
domain), where sdomain stands for a source domain to which a set of
(prefixes,domain) pairs could be assinged.
Database creation example:
DROP DATABASE IF EXISTS pdt;
CREATE DATABASE pdt;
USE pdt;
-- create table
CREATE TABLE pd_multidomain (
sdomain VARCHAR(255) NOT NULL,
prefix VARCHAR(32) NOT NULL,
domain VARCHAR(255) NOT NULL DEFAULT "",
PRIMARY KEY (sdomain, prefix)
);
**************
The module exports one function prefix2domain(mode) to be used from
script to update the RURI if this is in a PSTN format. For details about
the 'mode' parameter please refer to the README file.
The module parameter called 'prefix' is available to define which URIs
must be translated. Here it is an example how to set it in the script
file modparam("pdt", "prefix", "00"). This means only the RURIs in the
format 00xxxxx@yyyyy will be updated if predix2domain() is called in the
script. By default is set to NULL, and all RURIs will be updated if
prefix2domain() is called.
An example of translation:
-- Input:
modparam("pdt", "prefix", "00")
Database entries (sdomain - prefix - domain):
(siphub.org, 123, alpha.org)
(siphub.org, 124, beta.org)
(siphub.org, 126, gamma.org)
(openser.org, 123, one.org)
(openser.org, 124, two.org)
(openser.org, 125, three.org)
Message:
RURI: 00123456789(a)mydomain.com
FromURI: alice(a)siphub.org
-- Translation via prefix2domain(0)
-- Output
RURI: 456789(a)alpha.org
**************
Three fifo commands are available for adding, deleting and listing the
(sdomain, prefix, domain) entries in the database.
/*
* How to add a new entry - fifo command example
*
* ---
* :pdt_add:[response_file]\n
* sdomain\n
* prefix\n
* domain\n
* \n
* --
*
* - '.' (dot) means NULL value and is not allowed
*/
/*
* How to delete existent entries - fifo command example:
*
* ---
* :pdt_delete:[response_file]\n
* sdomain
* domain\n
* \n
* --
*
* - the specified (sdomain, *, domain) entry will be deleted
* - '.' (dot) means NULL value and is not allowed
*/
/*
* How to see already defined entries - fifo command example:
*
* ---
* :pdt_list:[response_file]\n
* sdomain\n
* prefix\n
* domain\n
* \n
* --
*
* - '.' (dot) means NULL value
* - the comparison operation is 'START WITH' -- if domain is 'a' then
* all domains starting with 'a' are listed
*/
In the module directory under ./doc/ there are available example shell
scripts for these commands.
Any feedback is highly appreciated.
Regards,
Ramona
Hi Karel,
Fixed! 8-)
I did 'yum -y install php-imap' which fixed the imap_8bit() function
call.
I then got "sorry -- cannot open write fifo" on the registration
confirmation page.
This file is not writable by my httpd user (user apache on CentOS) so I
set the ownership to root.apache. This is reset to root.root when ser
starts, so I added 'chown root.apache /tmp/ser_fifo' to the start
section of the /etc/init.d/ser script, just before the 'return $RETVAL'
line.
Serweb now works a treat.
Thanks again for your code and your help,
Bart...
-----Original Message-----
From: Karel Kozlik [mailto:karel@iptel.org]
Sent: 01 February 2006 10:30
To: Bart J. Smit
Cc: SER Users
Subject: Re: [Serusers] Serweb does not send mail on registration
well, you need the imap extension for php. It should be sufficient to
add this line to your php.ini:
extension=imap.so
Karel
Bart J. Smit napsal(a):
> Thanks Karel,
>
> Good thinking; I forgot to check the apache logs.
>
> The error log gave a vital clue:
>
> PHP Fatal error: Call to undefined function: imap_8bit() in
> /var/www/serweb-0.9.4/html/functions.php on line 310.
>
> I'll go and check the PHP to see if I need additional PEAR modules or
a
> patch to the script.
>
> Bart...
>
> -----Original Message-----
> From: Karel Kozlik [mailto:karel@iptel.org]
> Sent: 01 February 2006 07:55
> To: Bart J. Smit
> Cc: SER Users
> Subject: Re: [Serusers] Serweb does not send mail on registration
>
> Hello,
> is there an error message in PHP log. Or in apache error log?
>
> Karel
>
> Bart J. Smit napsal(a):
>
>>I have serweb-0.9.4 installed on CentOS 4.2 with MySQL 4.1.12-3 and
>>ser-0.9.6-1 compiled from the source RPM at
>>http://ftp.upjs.sk/pub/users/sal/Fedora/4/voip. When I register a new
>>user, the PHP script goes to an empty page without title and the email
>>never gets sent to the address entered on the registration form.
>>
>>The database gets the correct user details inserted into the pending
>>table. The sendnotification and greeting fields remain empty.
>>
>>I have modified the line in config_data_layer.php for the collation
>>character set to read:
>>$config->data_sql->collation = "latin1_swedish_ci";
>>This got rid of a DB error in serweb which I traced through pear
>>logging:
>>Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and
>>(utf8_general_ci,COERCIBLE) for operation '=']
>>
>>I have sent a test email with the debugging/mail.php script and it
>>arrives fine. I have tested the registration page with local
>
> recipients,
>
>>recipients on the LAN and external recipients but the behaviour stays
>>the same.
>>
>>All the pages I have googled on serweb registration problems always
>>state that the emails are sent out correctly, so I'm likely missing
>>something obvious.
>>
>>Can anybody help me get the registration to work?
>>
>>Thanks,
>>
>>Bart...
>>
>>_______________________________________________
>>Serusers mailing list
>>serusers(a)lists.iptel.org
>>http://lists.iptel.org/mailman/listinfo/serusers
Thanks Karel,
Good thinking; I forgot to check the apache logs.
The error log gave a vital clue:
PHP Fatal error: Call to undefined function: imap_8bit() in
/var/www/serweb-0.9.4/html/functions.php on line 310.
I'll go and check the PHP to see if I need additional PEAR modules or a
patch to the script.
Bart...
-----Original Message-----
From: Karel Kozlik [mailto:karel@iptel.org]
Sent: 01 February 2006 07:55
To: Bart J. Smit
Cc: SER Users
Subject: Re: [Serusers] Serweb does not send mail on registration
Hello,
is there an error message in PHP log. Or in apache error log?
Karel
Bart J. Smit napsal(a):
> I have serweb-0.9.4 installed on CentOS 4.2 with MySQL 4.1.12-3 and
> ser-0.9.6-1 compiled from the source RPM at
> http://ftp.upjs.sk/pub/users/sal/Fedora/4/voip. When I register a new
> user, the PHP script goes to an empty page without title and the email
> never gets sent to the address entered on the registration form.
>
> The database gets the correct user details inserted into the pending
> table. The sendnotification and greeting fields remain empty.
>
> I have modified the line in config_data_layer.php for the collation
> character set to read:
> $config->data_sql->collation = "latin1_swedish_ci";
> This got rid of a DB error in serweb which I traced through pear
> logging:
> Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and
> (utf8_general_ci,COERCIBLE) for operation '=']
>
> I have sent a test email with the debugging/mail.php script and it
> arrives fine. I have tested the registration page with local
recipients,
> recipients on the LAN and external recipients but the behaviour stays
> the same.
>
> All the pages I have googled on serweb registration problems always
> state that the emails are sent out correctly, so I'm likely missing
> something obvious.
>
> Can anybody help me get the registration to work?
>
> Thanks,
>
> Bart...
>
> _______________________________________________
> Serusers mailing list
> serusers(a)lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
Juha,
I've updated the documentation.
I don't know how to produce output, so I don't know if
it works. I haven't done a patch before either, so, let me know if
this is the preferred format or if you want to see it a different way.
By the way, when I was reading the documentation I noticed that
the enum query puts the highest priority query in the ruri, then the
rest of them are stored in new branches with a q value.
I haven't actually tried this. Is it the plan that these branches will
be looped through serially upon failure without having a retry route
block?
The new patch is attached.
Thanks,
-g
On Jan 29, 2006, at 4:27 AM, Bogdan-Andrei Iancu wrote:
> To be more precisely, the file is modules/enum/doc/enum_user.sgml
>
> bogdan
>
> Juha Heinanen wrote:
>
>>> is the documentation the README file?
>>>
>>
>> you have to edit the xml file from which README is generated
>> automatically.
>>
>> -- juha
>>
>>
>
Hi all,
I am trying to use the dispatcher module. I have two gateway address in the dispatcher.list file. But when it reaches that particular gateway, it does not rewrite the host with that gateway. Is dispatcher not supposed to do it??
One more thing....
when I used the function forward(); for forwarding the call to set of gateways, the openser shows an error saying that it is "bad forwardarguement".
openser needs the ip addr and the port in the forward function, but then how will it look at the destination set.
It worked when I used t_relay(), but I need to forward it statelessly. I just used the function as it was shown in the example of the dispatcher module in the docs..
can someone please help me on this..
Thanks in advance.
jayesh.
---------------------------------
Jiyo cricket on Yahoo! India cricket
Hi,
I am trying to get a multi-domain setup working between OpenSER and
Asterisk (PSTN gateway and Voicemail).
It appears that I need to munge the username before it goes to Asterisk
so that it includes the domain element, otherwise there is clashing in
the username namespace on Asterisk.
It looks like I should be able to use uac_replace_from to change the
From URI from user(a)domain.com to user_domain(a)domain.com so that then I
can set up the users in Asterisk as [user_domain]
Does this sound sane, and could someone tell me how I can accomplish
this in OpenSER? I have tried a few things but they all end up as bad
headers.
Thanks in advance.
--
-Barry Flanagan
Hi All,
I tried installing 0.9.2 and 0.9.4 but both behave in the same way, only if I
hit 5 to 10 times on login then one can login and in admin only ACl
changes and
user preferences are working. Server monitoring and admin privileges are not
working. Things which are working will work only if I hit 5 to 10 times
on them
only. Please help me, I do not know where I am going wrong, I followed all the
steps in serweb INSTALL doc.
Thanks,
Manoj.
Quoting Karel Kozlik <karel(a)iptel.org>:
> Hi,
> I looked at your web server but it's behaviour is very strange. It
> sometimes don't reply, sometimes not return whole html page. For
> example the page
> http://www.mantragroup.com/serweb/html/admin/users.php is often cut
> off in the middle.
>
> Try examine your logs. Access and error log of apache and log of php.
>
> Karel
>
> mkumar(a)mantragroup.com napsal(a):
>> Hi Karel Kozlik,
>>
>> Thanks for the reply. Initially I tried using serweb admin mode but
>> for me only
>> the initial page http://www.mantragroup.com/serweb/html/admin/users.php is
>> displayed from there if I hit on admin privileges or server
>> monitoring or user
>> preferences nothing opens, it still shows the same initial page of
>> admin login.
>>
>> Thanks,
>> Manoj.
>>
>> Quoting Karel Kozlik <karel(a)iptel.org>:
>>
>>> Hi,
>>> please (CC) the forum in your replies in order to others can read
>>> the answers.
>>>
>>> To your problem:
>>> the correct values to allow change ACL are:
>>>
>>> priv_name: acl_control
>>> priv_value: int
>>>
>>> priv_name: acl_control
>>> priv_value: ld
>>>
>>> priv_name: acl_control
>>> priv_value: local
>>>
>>> But you realy do not need to know this!
>>>
>>> Instead of changeing values in DB you can simply login to serweb as admin:
>>> - click to tab 'admin privileges'
>>> - click to link 'changes privilges' for user 'admin'
>>> - mark the checkboxes in 'ACL control' area
>>> - click to 'save'
>>>
>>> Now you should be able to change ACL of other users.
>>>
>>> Karel
>>>
>>>
>>>
>>> mkumar(a)mantragroup.com napsal(a):
>>>
>>>> Hi Karel Kozlik,
>>>>
>>>> I really do not know what are the correct values that must be given under
>>>> priv_name, for admin I gave is_admin, change_privileges and for giving acl
>>>> permissions I tried giving local,ld,acl_ld,acl_local but none worked and I
>>>> still get "You haven't any privileges to control ACL" when I log
>>>> in to admin,
>>>> can you please give me syntax which grants acl change privilges to
>>>> admin. I
>>>> tried searching on net and doc which came with installation but
>>>> none helped me.
>>>> Please spare a minute and help me configure serweb.
>>>>
>>>> Thanks,
>>>> Manoj.
>>>>
>>>> Quoting Karel Kozlik <karel(a)iptel.org>:
>>>>
>>>>> Hi,
>>>>> that is OK. You can have more admins in serweb. And you can
>>>>> define privileges for changeing ACL for each admin. To do that,
>>>>> click to tab 'admin privileges' and select 'change privileges'
>>>>> for some admin. Here you may define which values of ACL this
>>>>> admin may change.
>>>>>
>>>>> Karel
>>>>>
>>>>> mkumar(a)mantragroup.com napsal(a):
>>>>>
>>>>>> Hi All,
>>>>>>
>>>>>> I was able to install serweb and login to it both from admin and
>>>>>> user end. But
>>>>>> in admin end I have a problem, when I hit on ACL of any user
>>>>>> that appered when
>>>>>> I first login as admin, I get a error "You haven't any
>>>>>> privileges to control
>>>>>> ACL". In the DataBase I gave the following privileges to admin
>>>>>>
>>>>>> username admin
>>>>>> domain mantragroup.com
>>>>>> priv_name change_privileges
>>>>>> priv_value 1
>>>>>>
>>>>>> username admin
>>>>>> domain mantragroup.com
>>>>>> priv_name change_privileges
>>>>>> priv_value 1
>>>>>>
>>>>>> Someone please help me and guide me to inderstand where I am
>>>>>> going wrong.
>>>>>>
>>>>>> Thanks,
>>>>>> Manoj
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> Serusers mailing list
>>>>>> serusers(a)lists.iptel.org
>>>>>> http://lists.iptel.org/mailman/listinfo/serusers
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>
>>
>>
>>
>