Dear All:
I want to use uac_replace_from function to change from header username, it will be successed in the first time , but when i use in the second time , the from header username become <username1 username2> . but i want it become <username2> , how can i solve it , thanks.
allan
Hi every one
It's my first time there,
I am trying to install cdrtool, I installed openser with radius and mysql
accounting, I follow the install file with cdrtool, but it seam it's not
very clear I added these line in my openser.cfg as they said in the install
file
268 loadmodule "acc.so"
269
270 modparam("acc", "failed_transaction_flag", 1)
271 modparam("acc", "report_cancels", 0)
272 modparam("acc", "report_ack", 0)
273 modparam("acc", "early_media", 0)
274
275 modparam("acc", "log_level", 1)
276 modparam("acc", "log_flag", 1)
277 modparam("acc", "log_missed_flag", 1)
278
279 modparam("acc", "radius_config", "/etc/openser/radius/client.conf")
280 modparam("acc", "radius_flag", 1)
281 modparam("acc", "radius_missed_flag", 1)
282 modparam("acc", "radius_extra", "Sip-RPid=$avp(s:rpid); \
283 Source-IP=$si; \
284 Source-Port=$sp; \
285 Canonical-URI=$avp(can_uri); \
286
Billing-Party=$avp(billing_party); \
287
Divert-Reason=$avp(s:divert_reason); \
288
X-RTP-Stat=$avp(s:rtp_statistics); \
289 From-Header=$hdr(from); \
290 User-Agent=$hdr(user-agent); \
291 Contact=$hdr(contact); \
292 Event=$hdr(event); \
293
SIP-Proxy-IP=$avp(s:sip_proxy_ip)")
alone opense do not start intill I added this
loadmodule "auth_radius.so"
loadmodule "group_radius.so"
loadmodule "avp_radius.so"
modparam("acc", "service_type", 15)
modparam("acc", "radius_extra", "Sip-Src-IP=$si;Sip-Src-Port=$sp")
modparam("acc|auth_radius|group_radius|avp_radius", "radius_config",
"/etc/radiusclient-ng/radiusclient.conf")
the next problem is when adding
setflag(ACCOUNTING_FLAG);
avp_write("SER_IP","$avp(s:sip-proxy)");
avp_write("$ru", "$avp(can_uri)");
errors comes, here what I get from the command /sbin/openser -c
0(22857) parse error (123,9-24): syntax error
0(22857) parse error (123,9-24): missing '(' or ')'?
0(22857) parse error (123,9-24): bad command: missing ';'?
0(22857) parse error (123,24-25): bad command!)
0(22857) parse error (124,24-25): unknown command, missing loadmodule?
0(22857) parse error (125,25-26): unknown command, missing loadmodule?
ERROR: bad config file (6 errors)
0(22857) INFO:mi_fifo:mi_destroy:memory for the child's mi_fifo_pid was not
allocated -> nothing to destroy
is thier any one has a sample of openser.cfg file for cdrtool
Please help
--
View this message in context: http://www.nabble.com/cdrtool-radus-openser.cfg-configuration-tf4776366.htm…
Sent from the OpenSER Users Mailing List mailing list archive at Nabble.com.
Hi Mashudi,
Thanks for your reply. From the documentation, it seems that I need to
install both SER and SEMS under the same directory.
1) I've already installed the SER under /usr/src, can I also install SEMS
under /usr/src instead of /usr/local/src ?
2) By the way, I would like to know that does this voicemail able to
trigger the voicemail on the IP hard phone? For instance, if there's a new
voicemail, can the IP hard phone got the signal of the new voicemail?
Thanks.
Regards,
Roa Yu
-----Original Message-----
From: mashudi [mailto:mashudiflexi@telkom.co.id]
Sent: Saturday, November 10, 2007 2:04 AM
To: roayu
Subject: Spam Re: [Serusers] Voicemail setup on SER v0.9.6
dear roayu,
you can read on
http://www.iptel.org/sems/sems_application_development_tutorial
just follow the document, you will able run simple voice mail.
roayu wrote:
> **********************
> Your mail has been scanned by
> Telkom Anti Virus System
> ***********************
>
> Hi there!
>
>
>
> Could anyone let me know how to setup Voicemail on SER v.0.9.6 ? Do I
> need to install SEMS as well?
>
>
>
> Thanks
>
>
>
>
>
> Regards,
>
> Roa Yu
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Serusers mailing list
> Serusers(a)lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
>
So I've been all over the place looking at various examples, threads, issues,
and solutions to all sorts of forking scenarios. What I haven't been able to
find is a solution to my odd corner case. Let me explain the forking scenario:
Call comes in for user A:
- Use avp_db_load to find that user A wants to parallel fork to 123 and 456
- Call to 123 fails because there's no registration
- Call to 456 times out
== At this point we serial fork to the next step which might hbe
- Just call my cell
What's unclear to me is how to actually achieve this logic. I mean, getting
the initial parallel fork is quite simple using avp_pushto.
What's unclear is how to setup the failure route to know that you can ignore a
failure in any of the forks until the last fork as failed, and then it's time
to move on.
Something like, "are there other branches pending?" would be a nice check to
determine if the failure route should just drop or if it should append a branch
(or two) for the next serial fork.
Comments? Ideas? Thoughts? Am I totally insane? Should I be using a
specific module for this?
--Chris Heiser
Hi!
I few times a day I have 2 cdrs for one call but with reverse direction.
I have looked at the radius server detail records and as far as I can
see this happens:
A Acct-Status-Type = Start with Acct-Session-Id = X1 and Sip-To-Tag =
X2 and Sip-From-Tag = X3 is logged.
I few seconds later Acct-Status-Type = Start with Acct-Session-Id = X1
and Sip-To-Tag = X3 and Sip-From-Tag = X2 is logged. (To and From tag
is reversed)
When the call is over a Update and a Stop is logged.
The Acct-Status-Type is not a unique key in the raddact table and
there for I get a CDR for each direction.
My theory is that this happens when the server recieves a re-INVITE.
Can I prevent this in openser.cfg?
Is it safe to add Acct-Session-Id as a unique key to the raddact
table? Or is the Session id not globaly unique?
--
Morten Isaksen
http://www.misak.dk/blog/
Thanks, but when I try that, I get the following error from openser:
Nov 7 23:17:32 localhost openser[7035]: ERROR:xl_parse_spec: bad pvar name "rr{s.escape.common})') "
Nov 7 23:17:32 localhost openser[7035]:
ERROR:avpops:fixup_db_query_avp: wrong format[insert into sip_responses
(response_code, response_reason) values ('$rs',
'$(rr{s.escape.common})') ]
Nov 7 23:17:32 localhost openser[7035]: ERROR: fix_actions: fixing failed (code=-1) at cfg line 139
OpenSER also complains that i need to specify an avp table, but since I
am specifying the table in the query, I don't understand why that's
required.
Douglas.
----- Original Message ----
From: Daniel-Constantin Mierla <daniel(a)voice-system.ro>
To: Douglas Garstang <dougmig33(a)yahoo.com>
Cc: users(a)lists.openser.org
Sent: Thursday, November 8, 2007 11:57:35 AM
Subject: Re: [OpenSER-Users] Storing SIP Response Codes with avpops?
Hello,
On 11/08/07 21:40, Douglas Garstang wrote:
> All,
>
> I'd like to store SIP response codes in mysql using avpops. Is this
> possible?
>
> I tried to do this a few years ago and couldn't find any
> documentation. Unfortunately, I still can't find any.
>
> Can someone post an example? All I can find online is reference
> documentation for avpops.
>
> I'd really like to see a full example with the modparams defining the
> table structure, and how I would use avp_write and avp_db_store to
> write the $rr response code.
the easiest way is to use avp_db_query(), you can give as parameter any
sql query. In your case, you can use in onreply_route:
avp_db_query("insert into sip_responses (response_code,
response_reason)
values ('$rs', '$(rr{s.escape.common})') ");
You need to create the table sip_responses, with the two string
columns.
Daniel
>
> Thanks.
> Douglas.
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users(a)lists.openser.org
> http://lists.openser.org/cgi-bin/mailman/listinfo/users
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
All,
I'd like to store SIP response codes in mysql using avpops. Is this possible?
I tried to do this a few years ago and couldn't find any documentation. Unfortunately, I still can't find any.
Can someone post an example? All I can find online is reference documentation for avpops.
I'd really like to see a full example with the modparams defining the table structure, and how I would use avp_write and avp_db_store to write the $rr response code.
Thanks.
Douglas.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Pascal Maugeri wrote:
> Thanks for your prompt answer.
>
> On 10/19/07, Klaus Darilion <klaus.mailinglists(a)pernau.at> wrote:
>> It depends on what kind of information should be stored in the other
>> server. If you "your server" needs to see the same contact information
>> as openser received you could use t_replicate to replicate the REGISTER
>> to "your server". In this case "your server" must not challenge the
>> REGISTER.
>
> My server does not need to store any information but the information
> that a user has been registered.
>
> I believe the solution I need is to use this t_replicate but I need to
> replicate the register once the registration is achieved successfully.
> So how can I do this replicate to my server once the complete dialog
> REGISTER-401-REGISTER-OK has been achieved between the UAC and OpenSER
> ?
Just use t_replicate after save(), e.g:
http://lists.iptel.org/pipermail/serdev/2006-June/007518.html
regards
klaus
ps: please Cc: the mailing-list