Hi all,
I was wondering if I can auto start SER at boot up? I am running
Solaris 10 with SER 0.9.6.
I've done this:
ln /usr/local/sbin/serctl /etc/rc3.d/S99ser
ln /usr/local/sbin/serctl /etc/rc0.d/K00ser
ln /usr/local/sbin/serctl /etc/rc1.d/K00ser
ln /usr/local/sbin/serctl /etc/rc2.d/K00ser
ln /usr/local/sbin/serctl /etc/rc3.d/K00ser
But after reboot it still doesn't start... Did i make the links wrong?
Or is there another setting somewhere?
Thanks
Ben
Hi,
I am testing the presence in openser1.2 ... running a ser.0.9.6 as a
registrar/proxy which forwards all presence messages to openser.
As a client, I use xlite 3.0 ...
I had an old semi-functional openser working, pre-1.2 ... and now I
upgraded to 1.2 from svn and it ain't working :) The config file I
modified, as well as creating the DBTEXT files (all) from scratch
using the textdb.sh script.
Now, you can see the attached config file ... and the whireshark trace
with the subscribe and publish messages received ...
What happens can be seen here, in the log I get ... most interesting
are the lines with ERROR written on them ;)
They tell that a new row could not be inserted ... and that some
lookup failed on the database ... I guess a familiar eye can catch
that easy.
4(2517) parse_headers: flags=78
4(2517) t_lookup_request: start searching: hash=50044, isACK=0
4(2517) DEBUG: RFC3261 transaction matching failed
4(2517) DEBUG: t_lookup_request: no transaction found
4(2517) =============================================================================================
4(2517) The request method used is to [SUBSCRIBE] information.
(handle subscribe)
4(2517) =============================================================================================
1(2513) SIP Request:
1(2513) method: <SUBSCRIBE>
1(2513) uri: <sip:Chelsea@cafes.org>
1(2513) version: <SIP/2.0>
1(2513) parse_headers: flags=2
1(2513) Found param type 232, <branch> = <z9hG4bKa4e7.bd4e2945.0>; state=16
1(2513) end of header reached, state=5
1(2513) parse_headers: Via found, flags=2
1(2513) parse_headers: this is the first via
1(2513) After parse_msg...
1(2513) preparing to run routing scripts...
1(2513) parse_headers: flags=100
1(2513) Found param type 232, <branch> =
<z9hG4bK-d87543-2641a76387057623-1--d87543->; state=6
1(2513) Found param type 235, <rport> = <4326>; state=16
1(2513) end of header reached, state=5
1(2513) parse_headers: Via found, flags=100
1(2513) parse_headers: this is the second via
1(2513) DEBUG:maxfwd:is_maxfwd_present: value = 16
1(2513) ==============================================================================================
1(2513) parse_headers: flags=10
1(2513) DEBUG:parse_to:end of header reached, state=10
1(2513) DBUG:parse_to: display={}, ruri={sip:Chelsea@cafes.org}
1(2513) DEBUG: get_hdr_field: <To> [25]; uri=[sip:Chelsea@cafes.org]
1(2513) DEBUG: to body [<sip:Chelsea@cafes.org>
]
1(2513) DEBUG: add_param: tag=1753b200
1(2513) DEBUG:parse_to:end of header reached, state=29
1(2513) DBUG:parse_to: display={"X-lite user 1"}, ruri={sip:Klaas@cafes.org}
1(2513) New Message received: [7] from [sip:Klaas@cafes.org]
1(2513) Request method used:[SUBSCRIBE].
1(2513) =============================================================================================
1(2513) DEBUG: t_newtran: T on entrance=0xffffffff
1(2513) parse_headers: flags=ffffffffffffffff
1(2513) get_hdr_field: cseq <CSeq>: <1> <SUBSCRIBE>
1(2513) DEBUG: get_hdr_body : content_length=0
1(2513) found end of header
1(2513) parse_headers: flags=78
1(2513) t_lookup_request: start searching: hash=32330, isACK=0
1(2513) DEBUG: RFC3261 transaction matching failed
1(2513) DEBUG: t_lookup_request: no transaction found
1(2513) =============================================================================================
1(2513) The request method used is to [SUBSCRIBE] information.
(handle subscribe)
1(2513) =============================================================================================
1(2513) parse_headers: flags=ffffffffffffffff
1(2513) PRESENCE: handle_subscribe: 'expires' found
1(2513) PRESENCE: handle_subscribe: lexpire= 3600
1(2513) PRESENCE: handle_subscribe: 'To' header ALREADY PARSED:
<sip:Chelsea@cafes.org>
1(2513) PRESENCE:handle_subscribe: generating to_tag
1(2513) PRESENCE :proces_rr: out rr [<sip:192.168.1.150;ftag=1753b200;lr=on>]
1(2513) DBT:dbt_query: new res with 2 cols
1(2513) DBT:dbt_result_new: new res with 2 cols
1(2513) PRESENCE:handle_subscribe:The query in table watches returned no result
1(2513) DBT:dbt_table_check_row: NULL value not allowed - field 0
1(2513) DBT:db_insert: cannot insert the new row!!
1(2513) DBT:db_insert: make clean!
1(2513) PRESENCE:handle_subscribe: ERROR while inserting into watchers table
1(2513) PRESENCE:handle_subscribe: ERROR occured
1(2513) DEBUG: cleanup_uac_timers: RETR/FR timers reset
1(2513) DEBUG: add_to_tail_of_timer[2]: 0xb5d79c78 (45)
1(2513) DEBUG:tm:UNREF_UNSAFE: after is 0
1(2513) DEBUG:destroy_avp_list: destroying list (nil)
1(2513) receive_msg: cleaning up
2(2515) SIP Request:
2(2515) method: <PUBLISH>
2(2515) uri: <sip:Klaas@cafes.org>
2(2515) version: <SIP/2.0>
2(2515) parse_headers: flags=2
2(2515) Found param type 232, <branch> = <z9hG4bK5aa3.0e4b2fb7.0>; state=16
2(2515) end of header reached, state=5
2(2515) parse_headers: Via found, flags=2
2(2515) parse_headers: this is the first via
2(2515) After parse_msg...
2(2515) preparing to run routing scripts...
2(2515) parse_headers: flags=100
2(2515) Found param type 232, <branch> =
<z9hG4bK-d87543-7441d6073759ed7a-1--d87543->; state=6
2(2515) Found param type 235, <rport> = <4326>; state=16
2(2515) end of header reached, state=5
2(2515) parse_headers: Via found, flags=100
2(2515) parse_headers: this is the second via
2(2515) DEBUG:maxfwd:is_maxfwd_present: value = 16
2(2515) ==============================================================================================
2(2515) parse_headers: flags=10
2(2515) DEBUG:parse_to:end of header reached, state=10
2(2515) DBUG:parse_to: display={"X-lite user 1"}, ruri={sip:Klaas@cafes.org}
2(2515) DEBUG: get_hdr_field: <To> [38]; uri=[sip:Klaas@cafes.org]
2(2515) DEBUG: to body ["X-lite user 1"<sip:Klaas@cafes.org>
]
2(2515) DEBUG: add_param: tag=eb194522
2(2515) DEBUG:parse_to:end of header reached, state=29
2(2515) DBUG:parse_to: display={"X-lite user 1"}, ruri={sip:Klaas@cafes.org}
2(2515) New Message received: [5] from [sip:Klaas@cafes.org]
2(2515) Request method used:[PUBLISH].
2(2515) =============================================================================================
2(2515) DEBUG: t_newtran: T on entrance=0xffffffff
2(2515) parse_headers: flags=ffffffffffffffff
2(2515) get_hdr_field: cseq <CSeq>: <1> <PUBLISH>
2(2515) DEBUG: get_hdr_body : content_length=439
2(2515) found end of header
2(2515) parse_headers: flags=78
2(2515) t_lookup_request: start searching: hash=15013, isACK=0
2(2515) DEBUG: RFC3261 transaction matching failed
2(2515) DEBUG: t_lookup_request: no transaction found
2(2515) =============================================================================================
2(2515) The request method used is to [PUBLISH] information. (handle publish)
2(2515) =============================================================================================
2(2515) parse_headers: flags=ffffffffffffffff
2(2515) PRESENCE:handle_publish: SIP-If-Match not found
2(2515) PRESENCE: generate_ETag: etag= a.1175401932.2515.3 / 19
2(2515) PRESENCE:handle_publish: new etag = a.1175401932.2515.3
2(2515) PRESENCE: handle_publish: 'expires' found
2(2515) PRESENCE: handle_publish: lexpire= 3600
2(2515) PRESENCE: handle_publish: 'To' header ALREADY PARSED:
<sip:Klaas@cafes.org>
2(2515) parse_headers: flags=ffffffffffffffff
2(2515) PRESENCE:update_presentity: inserting 7 cols intotable
2(2515) DBT:dbt_table_check_row: NULL value not allowed - field 0
2(2515) DBT:db_insert: cannot insert the new row!!
2(2515) DBT:db_insert: make clean!
2(2515) PRESENCE:update_presentity: Error while inserting new presentity
2(2515) PRESENCE:update_presentity: ERROR occured
2(2515) PRESENCE:handle_publish: ERROR occured while updating presentity
2(2515) PRESENCE: handle_publish: ERROR occured
2(2515) DEBUG: cleanup_uac_timers: RETR/FR timers reset
2(2515) DEBUG: add_to_tail_of_timer[2]: 0xb5d77d08 (45)
2(2515) DEBUG:tm:UNREF_UNSAFE: after is 0
2(2515) DEBUG:destroy_avp_list: destroying list (nil)
2(2515) receive_msg: cleaning up
4(2517) parse_headers: flags=ffffffffffffffff
4(2517) PRESENCE: handle_subscribe: 'expires' found
4(2517) PRESENCE: handle_subscribe: lexpire= 3600
4(2517) PRESENCE: handle_subscribe: 'To' header ALREADY PARSED:
<sip:Klaas@cafes.org>
4(2517) PRESENCE:handle_subscribe: generating to_tag
4(2517) PRESENCE :proces_rr: out rr [<sip:192.168.1.150;ftag=e7740874;lr=on>]
4(2517)
[p_user]= Klaas [p_domain]= cafes.org
[w_user]= Klaas [w_domain]= cafes.org
4(2517) [event]= presence.winfo
[staus]= active
[expires]= 3600
4(2517) [to_tag]= 10.2517.1175401973.2
[from_tag]= e7740874
4(2517) PRESENCE: update_subscription ...
4(2517)
[p_user]= Klaas [p_domain]= cafes.org
[w_user]= Klaas [w_domain]= cafes.org
4(2517) [event]= presence.winfo
[staus]= active
[expires]= 3600
4(2517) [to_tag]= 10.2517.1175401973.2
[from_tag]= e7740874
4(2517) expires: 3600
4(2517) PRESENCE:update_subscription:Inserting into database:
n_query_cols:14
4(2517) [0] = to_user Klaas
4(2517) [1] = to_domain cafes.org
4(2517) [2] = from_user Klaas
4(2517) [3] = from_domain cafes.org
4(2517) [4] = event presence.winfo
4(2517) [5] = event_id
4(2517) [6] = callid MGUwMzgyNGFiMWE5ZGIxZjg1NGQwNDI5N2JlOTFmYjA.
4(2517) [7] = to_tag 10.2517.1175401973.2
4(2517) [8] = from_tag e7740874
4(2517) [9] = contact sip:Klaas@192.168.3.172:4326
4(2517) [10] = status active
4(2517) [11] = cseq 1
4(2517) DBT:dbt_table_check_row: NULL value not allowed - field 0
4(2517) DBT:db_insert: cannot insert the new row!!
4(2517) DBT:db_insert: make clean!
4(2517) PRESENCE:update_subscription: ERROR while storing new subscription
4(2517) PRESENCE:update_presentity: ERROR occured
4(2517) PRESENCE:handle_subscribe: ERROR while updating database
4(2517) PRESENCE:handle_subscribe: ERROR occured
4(2517) DEBUG: cleanup_uac_timers: RETR/FR timers reset
4(2517) DEBUG: add_to_tail_of_timer[2]: 0xb5d763b8 (45)
4(2517) DEBUG:tm:UNREF_UNSAFE: after is 0
4(2517) DEBUG:destroy_avp_list: destroying list (nil)
4(2517) receive_msg: cleaning up
3(2516) 1(2513) SIP Request:
1(2513) method: <SUBSCRIBE>
1(2513) uri: <sip:Chelsea@cafes.org>
1(2513) version: <SIP/2.0>
1(2513) parse_headers: flags=2
1(2513) Found param type 232, <branch> = <z9hG4bKa4e7.bd4e2945.0>; state=16
1(2513) end of header reached, state=5
1(2513) parse_headers: Via found, flags=2
1(2513) parse_headers: this is the first via
1(2513) After parse_msg...
1(2513) preparing to run routing scripts...
1(2513) parse_headers: flags=100
1(2513) Found param type 232, <branch> =
<z9hG4bK-d87543-2641a76387057623-1--d87543->; state=6
1(2513) Found param type 235, <rport> = <4326>; state=16
1(2513) end of header reached, state=5
1(2513) parse_headers: Via found, flags=100
1(2513) parse_headers: this is the second via
1(2513) DEBUG:maxfwd:is_maxfwd_present: value = 16
1(2513) ==============================================================================================
Dear all:
Avpops module' exported function avp_db_delete() can do delete one record?
example:
I use "test" as default table that has two fields.
username | number
-------------------
bob | 1
alice | 1
bob | 2
my configuration:
modparam("avpops", "avp_url", "mysql://ser:heslo@localhost/ser")
modparam("avpops", "avp_table", "test")
modparam("avpops", "username_column", "username")
modparam("avpops", "avp_aliases", "num=i:55")
modparam("avpops", "db_scheme", "number_scheme:table=test;value_col=number;value_type=string")
if (method=="INVITE"){
avp_db_load("$from/username", "$num/$number_scheme"); //load from table "test" ,number column as string value into AVP name '$num'
avp_db_delete("$from/username", "s:test") //delete all bob' record
};
if bob calling then bob'record has deleted
username | number
--------------------
alice | 1
But i want delete a record.
ex: delete number value is 1 for bob
username | number
--------------------
alice | 1
---------------------
bob | 2
avp_db_delete() can do delete one record?
Another question is avp_db_store() can do insert new data in table?
ex: insert into test (username,number) values ("mary","3")
username | number
-------------------
alice | 1
-------------------
bob | 2
-------------------
mary | 3
avp_db_store() can do it?
sorry,I still can't understand what it mean about avp_db_store() and avp_db_delete().
Can tell me?
Thanks a lot in advance
Chungyu
I'm using openser 1.1.x, and seeing something rather strange.
We are using openser as a proxy with openser and asterisk on box A,
asterisk on box B.
Openser listens on ports 5060 and 5065.
Asterisk listens on port 5070 on box A and 5060 on box B.
When a call arrives from PSTN, it works fine if I forward to asterisk in box B.
If I forward to asterisk on box A, everything seems to be going well
and then openser generates a CANCEL to the receiving phone for
seemingly no good reason.
You can see from the packet below that the cancel is being generated
by openser, because of the user agent.
What might cause this?
Thanks,
Mark Price
U 66.129.95.24:5065 -> 71.199.89.40:16742
CANCEL sip:9043067833@71.199.89.40:16742;rinstance=f5f4de634aa6bff6;transport=udp
SIP/2.0..Via: SIP/2.0/UDP
66.129.95.24:5065;branch=z9hG4bK1c31.2cb72f11.0..From: "Mark Price"
<sip:9046268172@66.129.95.5>;tag=as11c24889..Call-ID:
1a095b0e1901cead54e8d68c63271aad@66.129.95.5..To:
<sip:9043067833@joinuneta.com:5065>..CSeq: 102 CANCEL..User-Agen
t: OpenSer (1.1.0-tls (i386/linux))..Content-Length: 0....
Hi,
is it possible to use OpenSER + RTProxy as a small Session Border Controller?
I want to pass ALL calls to an extra OpenSER+RTPProxy, so ALL calls use
RTP Sessions via RTPProxy. Can the RTP Proxy signal to the SIP Proxy, if a
RTP Session timeouts, so the SIP Proxy can signal a BYE to both legs of
the call?
I need something like this, to not account timeouted calls. For example
broken calls, which never end.
any other ideas? professional session border controllers are very very
very expensive.
Hi,
I know asterisk doesn't support tls but that something strange in SIP
protocol :
TLS UA -> Openser -> no tls UA : that work
TLS UA -> Openser -> asterisk : that don't work
any one know something about this ?
to use asterisk I make rewritehostport.
thank for help
hi, all:
I want to make a client to send the REGISTER update message in a
short time, which is used to prevent the NAT device to close the port
for the client. So I want to rewrite the reply message for REGISTER
and change the expire parameter to a value of my setting. How can I
achieve this?
Thanks.
andy.yang
2007/04/10
Hi,
we are using Asterisk (1.2.12.1), chan_ss7 library (0.8.4) and a Digium
E1 card to perform calls between IP and PSTN/GSM networks.
In the next step we need to translate Redirecting number from ISUP-IAM
message to Diversion field of SIP-INVITE message. Do you have an idea to
make it on Asterisk ? Is it perhaps possible via the OpenSer Diversion
module?
Thanks for your help,
Peter
Evening all!
I'm trying to use subst() to alter the first line of an INVITE I'm
sending to a remote Asterisk box, although I have been unable to get
this working. Perhaps I need to use a different function?
The INVITE I'm working with looks like (IPs have been changed to
protect the innocent):
INVITE sip:s@192.168.1.250 SIP/2.0
Record-Route: <sip:192.168.1.190;lr;ftag=as62d28c09>
Via: SIP/2.0/UDP 192.168.1.190;branch=z9hG4bKcce2.b907e716.0
Via: SIP/2.0/UDP 192.168.1.147:5060;branch=z9hG4bK5a287301;rport=5060
From: "lmadsen2#lmentinc" <sip:lmadsen2#lmentinc@192.168.1.147>;tag=as62d28c09
To: <4166289921@switch1>
Contact: <sip:lmadsen2#lmentinc@192.168.1.147>
Call-ID: 791d9cc101c5cbdd2896c0d357cf644c(a)192.168.1.147
CSeq: 102 INVITE
User-Agent: Asterisk
Max-Forwards: 69
Remote-Party-ID: "lmadsen2#lmentinc"
<sip:lmadsen2#lmentinc@192.168.1.147>;privacy=off;screen=no
Date: Thu, 12 Apr 2007 05:00:26 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Content-Type: application/sdp
Content-Length: 240
I have two subst() I've been playing with. This one works which alters
the To: line in the INVITE:
subst('/^To: (.*)sip:[^@]*+(.*)$/To: \1$hdr(X-DID)\2/g');
This one does not, which I would like to alter the INVITE
sip:s@192.168.1.250 SIP/2.0 of the header. This is the very first line
in the INVITE.
subst('/^INVITE (.*)sip:[^@]*+(.*)$/INVITE sip:$hdr(X-DID)\2/ig');
I tested the regex online as well, and it seems to work.
Anything I'm missing? Is there another function I can use to alter the
line I want, or am I up poop creek?
Thanks!
--
Leif Madsen.
http://www.leifmadsen.comhttp://www.oreilly.com/catalog/asterisk
hi, raviprakash sunkara,
http://www.voip-info.org/wiki/view/Open+Source+VOIP+Software
search here, maybe you can find something useful.
i use SIPp to test performance, it can generate calls in certain sequence.
regards,
yan lin
*** Disclaimer: This message may contain privileged and/or confidential information. If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or distribute it; do not open any attachments, delete it immediately from your system and notify the sender promptly by e-mail that you have done so. Thank you. ***