Hi Jon,
I have tried with current master branch and I have the User-Agent header there.
At least with these options (in main sems config file) it seems to work for me:
use_default_signature=no
signature="My Big sems server"
With reg_agent (i.e. configured in reg_agent.conf):
REGISTER sip:vku-test.com SIP/2.0
Via: SIP/2.0/UDP 192.168.1.202:5080;branch=z9hG4bKtJe25aKh;rport
From: <sip:[email protected]>;tag=25BA33C6-4FF2984800086FA8-7FEFE700
To: <sip:[email protected]>
CSeq: 50 REGISTER
Call-ID: 3D5BEBAD-4FF2984800087066-7F1ED700
Contact: <sip:[email protected]:5080>
Route: <sip:192.168.1.202:5060;lr>
Expires: 3600
User-Agent: My Big sems server
Max-Forwards: 70
Content-Length: 0
And with db_reg_agent as well (configured in DB):
REGISTER sip:vku-test.com SIP/2.0
Via: SIP/2.0/UDP 192.168.1.202:5080;branch=z9hG4bKcePuba74;rport
From: vaclav
<sip:[email protected]>;tag=4D4848BD-4FF2984600088CD9-8909C740
To: vaclav <sip:[email protected]>
CSeq: 50 REGISTER
Call-ID: 1DF69800-4FF2984600088D0C-8909C740
Contact: <sip:[email protected]:5080>
Route: <sip:192.168.1.202;lr>
Expires: 7200
User-Agent: My Big sems server
Max-Forwards: 70
Content-Length: 0
Attaching configs.
Vaclav
On Po, čec 02, 2012 at 06:26:15 +0200, Jon Bonilla wrote:
> Hi All
>
> I'm using reg_agent and db_reg_agent modules to register sems in some PBX and
> Class5 switches.
>
> I've seen that although I have the "signature" configuration option enabled,
> sems doesn't send any User-Agent header in the REGISTER request.
>
> Although is cosmetic, it would be nice to have that to quickly spot the
> sems registrations in the servers.
>
> Is there any config option I'm missing?
>
>
> use_default_signature=no
> signature="My little sems server"
>
>
>
> cheers,
>
> jon
>
> _______________________________________________
> Sems mailing list
> [email protected]
> http://lists.iptel.org/mailman/listinfo/sems
media_ip=192.168.1.202
sip_ip=192.168.1.202
# media_ip=10.1.27.168
# sip_ip=10.1.27.168
sip_port=5080
rtp_low_port=8500
rtp_high_port=9000
additional_interfaces=hacked
sip_ip_hacked=127.0.0.1
sip_port_hacked=5080
media_ip_hacked=127.0.0.1
rtp_low_port_hacked=10000
rtp_high_port_hacked=20000
plugin_path=/home/kubartv/frafos/sw/lib/sems/plug-in/
load_plugins=wav;ilbc;speex;sbc;session_timer;cc_rest;xmlrpc2di;gsm;adpcm;silk;reg_agent;db_reg_agent;uac_auth;registrar_client
#exclude_plugins=precoded_announce;py_sems;db_reg_agent;csv_cdr;cc_sw_prepaid;dimanagedha;cc_call_timer
#application = $(apphdr)
application=sbc
# parameter: plugin_config_path=<path>
#
# - in this path configuration files of the applications
# (e.g. announcement.conf) are searched
plugin_config_path=/home/kubartv/frafos/sw/etc/sems/registrations
fork=no
stderr=yes
loglevel=2
accept_fr_without_totag=yes
media_processor_threads=10
session_processor_threads=10
use_default_signature=no
signature="My Big sems server"
# Database connection
mysql_user=sems
mysql_passwd=sems
# mysql_server, default: localhost
# mysql_server=localhost
#mysql_db, default: sems
# mysql_db=sems
# table for registration status
# default: registrations
# registrations_table="registrations"
# query joining subscriber info with registration table
joined_query="select subscribers.subscriber_id as subscriber_id,
subscribers.user as user, subscribers.pass as pass, subscribers.realm as realm,
registrations.registration_status as registration_status, registrations.expiry
as expiry, registrations.last_registration as last_registration from
subscribers left join registrations on
subscribers.subscriber_id=registrations.subscriber_id;"
#example with contact:
# joined_query="select subscribers.subscriber_id as subscriber_id,
subscribers.user as user, subscribers.pass as pass, subscribers.realm as realm,
subscribers.contact as contact, registrations.registration_status as
registration_status, registrations.expiry as expiry,
registrations.last_registration as last_registration from subscribers left join
registrations on subscribers.subscriber_id=registrations.subscriber_id;"
# outbound_proxy=<sip_uri>
# set the outbound proxy to send registrations through
#
outbound_proxy=sip:192.168.1.202
# contact_hostport=<host:port> - overriding contact host:port
# sets the contact host:port portion that is registered
# default: empty
#contact_hostport=10.0.0.50:5080
# db_read_contact=[yes, no] : read individual contact to register from DB?
# note: joined_query must select the contact, too
# default: no
#db_read_contact=yes
#save_contacts=[yes, no] : save contacts?
# for monitoring and troubleshooting, all contacts returned with a positive
reply
# may be saved to DB in the registrations.contacts colums
# default: yes
#save_contacts=yes
#save_auth_replies=[yes, no] : update status on 401 replies (auth)?
# usually, 401 replies which are resent with auth are not saved. if
save_auth_replies=yes,
# last_code and last_reason in DB is updated with the 401
#save_auth_replies=yes
# expires: desired expires, i.e. expires value that is requested
# default: 7200
# expires=300
# error_retry_interval
#
# default: 300
# reregister_interval: fraction of actual expires after which register is
refreshed
# default: reregister_interval=0.5
#reregister_interval=0.5
# minimum_reregister_interval: if set, re-register is scheduled in least loaded
time
# in minimum_reregister_interval .. reregister_interval i order to smooth load
spikes
# must be smaller than reregister_interval
# default: off
#
# example:
# reregister_interval=0.5
# minimum_reregister_interval=0.4
# on a registration expiring in 3600s, the least loaded spot between 1440s
and 1800s
# is chosen
#
#minimum_reregister_interval=0.4
# enable_ratelimiting=yes : Enable ratelimiting?
# default: no
# if enabled, the amount of initial REGISTER requests is limited (not counting
re-trans-
# missions and requests re-sent for authentication)
#enable_ratelimiting=yes
# ratelimit_rate=300 : rate of initial REGISTER requests to send as maximum
#ratelimit_rate=2
# ratelimit_per=1 : per time unit (in seconds, e.g. 300 REGISTER in 1 second)
#ratelimit_per=1
#ratelimit_slowstart=[yes|no] : on startup send initially ratelimit_rate or 0
requests
#default: no
#ratelimit_slowstart=yes
# delete_removed_registrations=yes : delete removed registrations from
registrations
# table in DB? (otherwise they will stay with STATUS_REMOVED)
# default: yes
#
#delete_removed_registrations=no
# delete_failed_deregistrations=yes : delete failed de-registrations from
registrations
# table in DB? (otherwise they will stay with STATUS_TO_BE_REMOVED)
# only applicable if delete_removed_registrations=yes
# default: no
#
#delete_failed_deregistrations=no
#
#
# Registrations at SIP registrar,
# refreshed if necessary.
#
#
# See also proxy_sticky_auth configuration in sems.conf
# for some (broken) registrars.
domain=vku-test.com
user=sems
pwd=heslo
# optional (defaults to user):
#display_name=myuser
#auth_user=myuser
# optional (defaults to resolved by domain):
proxy=sip:192.168.1.202:5060
# optional (default to <user>@<publicip/localip>):
#contact=sip:[email protected]
#
# For multiple registrations add more entries
#
#domain1=iptel.org
#user1=xyz
#pwd1=ppp
# optional:
#display_name1=xyz
#auth_user1=xyz
#proxy1=sip:sip.iptel.org:5060
#contact1=sip:[email protected]
#domain2=iptel.org
#user2=xyz
#pwd2=ppp
# optional:
#display_name2=xyz
#auth_user2=xyz
#proxy2=sip:sip.iptel.org:5060
_______________________________________________
Sems mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/sems