Is there a version of textops that can do substs with AVPs that will work on
SER 0.9.6 or is that an openSER-only modification of the code?
I'm curious because we're ALSO running into the issues of charging the
call-forwarding user for forwarding a call to the PSTN instead of charging the
calling party. Ideally, I'd like to rewrite the from address solely for the
purpose of authenticating the user who's doing the forwarding and charging him
for the call, but that would likely break things as there'd be no way to get
back to the original user if I just rewrote the from username.
SO, I thought, why not let the b2bua handle the details and just forward a uri
with a prefix string that includes the user who's forwarding the call (the
original RURI instead of just the rewritten one).
And there's the trick. How do I craft a RURI out of bits and pieces of things
into one long RURI?
If it were all the same number, I could use prefix, but it's dynamic (as is
the nature of most things), so prefix won't work.
How do I take
RURI=1105
And add to it:
The rewritten RURI from the call forwarding info: 18005551212
AND the prefix for the b2bua auth: 9999
To make:
new ruri: 9999110518005551212
N.
Hi everyone,
I know these list aren't the best place to ask for assistance. However, I
would like to know if anyone here knows what are the best European
University to do a Ph.D degree in something related to VoIP. Anyone here
already working on a particular project like this? All answers will be
helpful.
Thanks,
Jose Simoes
By making sure that the accounting flag is set also for those messages.
g-)
Caxton wrote:
> Dear Teigre:
> How can I slove this problem?
> Thanks.
>
> Sincerely
> Caxton
>
>
> 2006/7/11, Greger V. Teigre <greger(a)teigre.com
> <mailto:greger@teigre.com>>:
>
> The BYE is loose routed, thus it will go to route(1).
> g-)
>
> Caxton wrote:
> Hi all:
>
> I have installed radius server, and I also configure the
> "ser.cfg" for the radius accounting. However, there is a problem
> confues me.
>
> While the sip session have set up, the radiusclient send a
> Request-Account packet to radius server immediately, than radius
> server
> can save the start-up time of the session into database. But
> after the session terminated, radiusclient do nothing(it should
> send a
> Accounting-Stop packet to radius server)!! Therefore, I can
> not have a complete time record.
>
> I try to look up the solution in seruser mailing list, but I
> can not find what I want. Please help me, thanks.
>
> Sincerely
>
> Caxton
>
> -----ser.cfg-----
>
> [cut]
>
> # -- acc params --
> modparam("acc", "radius_config",
> "/usr/local/etc/radiusclient-ng/radiusclient.conf")
> modparam("acc", "log_level", 2)
> modparam("acc", "radius_flag", 1)
> modparam("acc", "report_ack", 0)
> # ------------------------- request routing logic -------------------
>
> # main routing logic
> route{
>
> # initial sanity checks -- messages with
> # max_forwards==0, or excessively long requests
> if (!mf_process_maxfwd_header("10")) {
> sl_send_reply("483","Too Many Hops");
> break;
> };
> if (msg:len >= 2048 ) {
> sl_send_reply("513", "Message too big");
> break;
> };
> # we record-route all messages -- to make sure that
> # subsequent messages will go through our proxy; that's
> # particularly good if upstream and downstream entities
> # use different transport protocol
> if (!method=="REGISTER") record_route();
>
> # subsequent messages withing a dialog should take the
> # path determined by record-routing
> if (loose_route()) {
> # mark routing logic in request
> append_hf("P-hint: rr-enforced\r\n");
> route(1);
> break;
> };
>
> if (!uri==myself) {
> # mark routing logic in request
> append_hf("P-hint: outbound\r\n");
> route(1);
> break;
> };
>
> # if the request is for other domain use UsrLoc
> # (in case, it does not work, use the following command
> # with proper names and addresses in it)
> if (uri==myself) {
>
> if (method=="REGISTER") {
> log(1, "REGISTER: Authenticating user\n");
> # Uncomment this if you want to use digest authentication
> if
> (!www_authorize("pc80.s206.tj.mcu.edu.tw
> <http://pc80.s206.tj.mcu.edu.tw/>", "subscriber")) {
> log(1, "REGISTER: Chanllenging
> user\n");
> www_challenge("
> pc80.s206.tj.mcu.edu.tw <http://pc80.s206.tj.mcu.edu.tw/>", "0");
> break;
> };
> save("location");
> break;
> };
> if(method=="INVITE") {
> log(1, "INVITE\n");
> setflag(1);
> }
> if(method=="MESSAGE") {
> log(1, "MESSAGE\n");
> setflag(1);
> }
> if(method=="BYE"||method== "CANCEL") {
> log(1, "BYE or CANCEL\n");
> setflag(1);
> }
>
> [cut]
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Serusers mailing list
> Serusers(a)lists.iptel.org <mailto:Serusers@lists.iptel.org>
> http://lists.iptel.org/mailman/listinfo/serusers
>
>
>
Thanks Jiri and Greger for your answers.
I just wanted to make it simple, because I'm using a third party billing system.
I'm using SER + Asterisk b2bua. My original idea was to add a Diversion header to the sip message in SER, and to modify the Radius message in Asterisk b2bua when i find that diversion header, to give the Radius message ready and modified to the billing system, so they don't have to make any additional process for the call forward case.
Please, is this possible? any ideas?
Thanks again.
Rosa.
-----------------------------------------------
> Date: Tue, 11 Jul 2006 08:18:59 +0200
> From: greger(a)teigre.com
> To: jiri(a)iptel.org
> CC: rosadesantis(a)hotmail.com; serusers(a)lists.iptel.org
> Subject: Re: [Serusers] Call Forward Billing
>
> Just to expand on "special-casing": Getting user actions into $ can be very tricky and is very dependent on your billing system. I.e. the capabilities of the type of invoice records that can be created (and manipulated; rating, VAT, no VAT, customer discounts, volume discounts, time of day etc etc). You normally have to start there and trace back: What should the normalized CDRs look like for the billing system to import and rate them correctly. Then you step backwards again: Your accounting records (start/stop), what should they look like. The tool taking start/stop records must be capable of interpreting the records and create normalized CDRs. If you gather accounting records from multiple sources (PSTN GWs, routers etc), it may make sense to consolidate the record collection and normalization (i.e. adapt your accounting records to be similar across sources so you simplify the normalization)-
> Puh! This leads us to Jiri's comment: Once you know what you need, you can use additional AVPs/flags in acc table.
> g-)
> PS! In the PSTN world, the forwarding party/C-number is often added in a third column in the records and one set of start/stop will exist for each call leg. If present, the C-number will be used for charging.
> Jiri Kuthan wrote:
> It is a configuration thing. It appears a misconception to me to build special-casing in SER. acc module can store additional AVPs or flags in acc table. These can indicate reverse charging at your convenience, to be processed by your favorite CDR postprocesssing tool. Moreover, if done well, all the authentication-authorization-accounting process can be, if configured properly, brought to the same least common denominator, which is AVP -- you authenticate someone, check if his ACLs expressed as an AVP permit a call (e.g., 'international'), account it (possibly with additional AVPs/flags providing additional hints for how to interpret the CDR). -jiri At 19:49 10/07/2006, Rosa De Santis wrote:
> Thanks for your answer. And this functionality is not present in SER ? Rosa. -----------------------------------------------
> Date: Sat, 8 Jul 2006 00:20:44 -0700 From: t_maron_lists(a)yahoo.com Subject: Re: [Serusers] Call Forward Billing To: rosadesantis(a)hotmail.com If you are locked by this, you can import a patch from openser, they have it for some time, see: http://openser.org/docs/modules/1.1.x/acc.html#MULTI-CALL-LEGS T. On 07/07/06 18:46, Rosa De Santis wrote: Hello all. Please, can somebody help about changing the billing when making call forward ? I'm trying to change the billed user when A calls B, B forwards to C (C is PSTN). I want to charge the call to B. I'm using Ser+Asterisk B2BUA. Any idea, please? Thanks Rosa. _________________________________________________________________ Be one of the first to try Windows Live Mail. http://ideas.live.com/programpage.aspx?versionId=5d21c51a-b161-4314-9b0e-49… Serusers mailing list Serusers(a)lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers ----------------------------------------------- Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min.
> _________________________________________________________________ Be one of the first to try Windows Live Mail. http://ideas.live.com/programpage.aspx?versionId=5d21c51a-b161-4314-9b0e-49… Serusers mailing list Serusers(a)lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
> -- Jiri Kuthan http://iptel.org/~jiri/ _______________________________________________ Serusers mailing list Serusers(a)lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
_________________________________________________________________
Be one of the first to try Windows Live Mail.
http://ideas.live.com/programpage.aspx?versionId=5d21c51a-b161-4314-9b0e-49…
GSM suppliers working on that already and implementing softswitches in order
to increase capacity and lower cost. However GSM is circuit switched - not
packet switched (except GPRS) and here is the point cost can't really dropped.
The way it will be more probably is that GSM CDMA might be used in the
furture in the suburbans and in metropolitan areas we will see a WIMAX/VOIP
scenario. This will result in a hybrid network for at least a transitional period. We
already experienced it with AMPS/TDMA to GSM transition.
CDMA (spread spectrum) is almost dead because high cost and leck of roaming
capacity. WCDMA/UMTS (spread spectrum 3G) is very expencive and hard to manage
(in Europe the launch was delayed by 2 years because hard and software
problems).
I recently started with a project (small scale) to setup such WIMAX based
networks. The aim is to develop a low cost internet/phone network for rural
communities in third world countries. Anybody with routing experience who wants to
join me on a professional base is welcome.
Regards Christian
Dear Teigre:
How can I slove this problem?
Thanks.
Sincerely
Caxton
Message: 6
> Date: Tue, 11 Jul 2006 08:47:40 +0200
> From: "Greger V. Teigre" <greger(a)teigre.com>
> Subject: Re: [Serusers] Radius Accounting
> To: Caxton <kaifu.chan(a)gmail.com>
> Cc: serusers(a)lists.iptel.org, serusers-request(a)lists.iptel.org
> Message-ID: <44B3498C.7020003(a)teigre.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> The BYE is loose routed, thus it will go to route(1).
> g-)
>
> Caxton wrote:
> > Hi all:
> >
> > I have installed radius server, and I also configure the "ser.cfg"
> > for the radius accounting. However, there is a problem confues me.
> >
> > While the sip session have set up, the radiusclient send a
> > Request-Account packet to radius server immediately, than radius server
> > can save the start-up time of the session into database. But
> > after the session terminated, radiusclient do nothing(it should send a
> > Accounting-Stop packet to radius server)!! Therefore, I can
> > not have a complete time record.
> >
> > I try to look up the solution in seruser mailing list, but I can
> > not find what I want. Please help me, thanks.
> >
> > Sincerely
> >
> > Caxton
> >
> > -----ser.cfg-----
> >
> > [cut]
> >
> > # -- acc params --
> > modparam("acc", "radius_config",
> > "/usr/local/etc/radiusclient-ng/radiusclient.conf")
> > modparam("acc", "log_level", 2)
> > modparam("acc", "radius_flag", 1)
> > modparam("acc", "report_ack", 0)
> > # ------------------------- request routing logic -------------------
> >
> > # main routing logic
> > route{
> >
> > # initial sanity checks -- messages with
> > # max_forwards==0, or excessively long requests
> > if (!mf_process_maxfwd_header("10")) {
> > sl_send_reply("483","Too Many Hops");
> > break;
> > };
> > if (msg:len >= 2048 ) {
> > sl_send_reply("513", "Message too big");
> > break;
> > };
> > # we record-route all messages -- to make sure that
> > # subsequent messages will go through our proxy; that's
> > # particularly good if upstream and downstream entities
> > # use different transport protocol
> > if (!method=="REGISTER") record_route();
> >
> > # subsequent messages withing a dialog should take the
> > # path determined by record-routing
> > if (loose_route()) {
> > # mark routing logic in request
> > append_hf("P-hint: rr-enforced\r\n");
> > route(1);
> > break;
> > };
> >
> > if (!uri==myself) {
> > # mark routing logic in request
> > append_hf("P-hint: outbound\r\n");
> > route(1);
> > break;
> > };
> >
> > # if the request is for other domain use UsrLoc
> > # (in case, it does not work, use the following command
> > # with proper names and addresses in it)
> > if (uri==myself) {
> >
> > if (method=="REGISTER") {
> > log(1, "REGISTER: Authenticating user\n");
> > # Uncomment this if you want to use digest authentication
> > if (!www_authorize("pc80.s206.tj.mcu.edu.tw
> > <http://pc80.s206.tj.mcu.edu.tw/>", "subscriber")) {
> > log(1, "REGISTER: Chanllenging user\n");
> > www_challenge("
> > pc80.s206.tj.mcu.edu.tw <http://pc80.s206.tj.mcu.edu.tw/>", "0");
> > break;
> > };
> > save("location");
> > break;
> > };
> > if(method=="INVITE") {
> > log(1, "INVITE\n");
> > setflag(1);
> > }
> > if(method=="MESSAGE") {
> > log(1, "MESSAGE\n");
> > setflag(1);
> > }
> > if(method=="BYE"||method== "CANCEL") {
> > log(1, "BYE or CANCEL\n");
> > setflag(1);
> > }
> >
> > [cut]
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Serusers mailing list
> > Serusers(a)lists.iptel.org
> > http://lists.iptel.org/mailman/listinfo/serusers
Thanks for your answer.
And this functionality is not present in SER ?
Rosa.
-----------------------------------------------
> Date: Sat, 8 Jul 2006 00:20:44 -0700
> From: t_maron_lists(a)yahoo.com
> Subject: Re: [Serusers] Call Forward Billing
> To: rosadesantis(a)hotmail.com
>
> If you are locked by this, you can import a patch from openser, they have it for some time, see:
> http://openser.org/docs/modules/1.1.x/acc.html#MULTI-CALL-LEGS
> T.
> On 07/07/06 18:46, Rosa De Santis wrote:
> Hello all.
> Please, can somebody help about changing the billing when making call forward ?
> I'm trying to change the billed user when A calls B, B forwards to C (C is PSTN). I want to charge the call to B. I'm using Ser+Asterisk B2BUA.
> Any idea, please?
> Thanks
> Rosa.
> _________________________________________________________________
> Be one of the first to try Windows Live Mail.
> http://ideas.live.com/programpage.aspx?versionId=5d21c51a-b161-4314-9b0e-49…
> Serusers mailing list
> Serusers(a)lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
> -----------------------------------------------
> Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min.
_________________________________________________________________
Be one of the first to try Windows Live Mail.
http://ideas.live.com/programpage.aspx?versionId=5d21c51a-b161-4314-9b0e-49…