Hello,
I use Asterisk2billing to do prepaid it works fine!
But, now, I need to auth my users in the openser and forward the call by loadbal to asterisk(s) which use Asterisk2billing.
Anybody know how to do?
Cordialement,
BERGANZ François
P Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.
Hello,
On 02/17/2009 04:59 PM, BERGANZ François wrote:
Hello,
I use Asterisk2billing to do prepaid…it works fine!
But, now, I need to auth my users in the openser and forward the call by loadbal to asterisk(s) which use Asterisk2billing.
Anybody know how to do?
use dispatcher ds_select_dst() and then t_relay().
Does A2B requires the users to be register there as well?
Cheers, Daniel
Cordialement,
BERGANZ François
P Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
I have no problems with dispatcher t_relay... When asterisk receive the call, asterisk start the agi and the phone hangup itself!
I just need to know how to do to call through openser to asterisk without that the phone hangup
Cordialement, BERGANZ François
http://www.acropolistelecom.net Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.
-----Message d'origine----- De : Daniel-Constantin Mierla [mailto:miconda@gmail.com] Envoyé : mardi 17 février 2009 18:07 À : BERGANZ François Cc : users@lists.kamailio.org Objet : Re: [Kamailio-Users] A2billing Project <-> Openser
Hello,
On 02/17/2009 04:59 PM, BERGANZ François wrote:
Hello,
I use Asterisk2billing to do prepaid…it works fine!
But, now, I need to auth my users in the openser and forward the call by loadbal to asterisk(s) which use Asterisk2billing.
Anybody know how to do?
use dispatcher ds_select_dst() and then t_relay().
Does A2B requires the users to be register there as well?
Cheers, Daniel
Cordialement,
BERGANZ François
P Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
On 02/17/2009 07:14 PM, BERGANZ François wrote:
I have no problems with dispatcher t_relay... When asterisk receive the call, asterisk start the agi and the phone hangup itself!
What is the cause of hangup? Does the phone gets 200ok and sends BYE or it sends CANCEL?
Daniel
I just need to know how to do to call through openser to asterisk without that the phone hangup
Cordialement, BERGANZ François
http://www.acropolistelecom.net Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.
-----Message d'origine----- De : Daniel-Constantin Mierla [mailto:miconda@gmail.com] Envoyé : mardi 17 février 2009 18:07 À : BERGANZ François Cc : users@lists.kamailio.org Objet : Re: [Kamailio-Users] A2billing Project <-> Openser
Hello,
On 02/17/2009 04:59 PM, BERGANZ François wrote:
Hello,
I use Asterisk2billing to do prepaid…it works fine!
But, now, I need to auth my users in the openser and forward the call by loadbal to asterisk(s) which use Asterisk2billing.
Anybody know how to do?
use dispatcher ds_select_dst() and then t_relay().
Does A2B requires the users to be register there as well?
Cheers, Daniel
Cordialement,
BERGANZ François
P Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
Here, a capture. I don't know why, but the call continuous, and the phone was hangup when asterisk accept the call!
Cordialement, BERGANZ François
http://www.acropolistelecom.net Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.
-----Message d'origine----- De : Daniel-Constantin Mierla [mailto:miconda@gmail.com] Envoyé : mardi 17 février 2009 18:18 À : BERGANZ François Cc : users@lists.kamailio.org Objet : Re: [Kamailio-Users] A2billing Project <-> Openser
On 02/17/2009 07:14 PM, BERGANZ François wrote:
I have no problems with dispatcher t_relay... When asterisk receive the call, asterisk start the agi and the phone hangup itself!
What is the cause of hangup? Does the phone gets 200ok and sends BYE or it sends CANCEL?
Daniel
I just need to know how to do to call through openser to asterisk without that the phone hangup
Cordialement, BERGANZ François
http://www.acropolistelecom.net Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.
-----Message d'origine----- De : Daniel-Constantin Mierla [mailto:miconda@gmail.com] Envoyé : mardi 17 février 2009 18:07 À : BERGANZ François Cc : users@lists.kamailio.org Objet : Re: [Kamailio-Users] A2billing Project <-> Openser
Hello,
On 02/17/2009 04:59 PM, BERGANZ François wrote:
Hello,
I use Asterisk2billing to do prepaid…it works fine!
But, now, I need to auth my users in the openser and forward the call by loadbal to asterisk(s) which use Asterisk2billing.
Anybody know how to do?
use dispatcher ds_select_dst() and then t_relay().
Does A2B requires the users to be register there as well?
Cheers, Daniel
Cordialement,
BERGANZ François
P Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
This one is better
Cordialement, BERGANZ François
http://www.acropolistelecom.net Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.
-----Message d'origine----- De : Daniel-Constantin Mierla [mailto:miconda@gmail.com] Envoyé : mardi 17 février 2009 18:18 À : BERGANZ François Cc : users@lists.kamailio.org Objet : Re: [Kamailio-Users] A2billing Project <-> Openser
On 02/17/2009 07:14 PM, BERGANZ François wrote:
I have no problems with dispatcher t_relay... When asterisk receive the call, asterisk start the agi and the phone hangup itself!
What is the cause of hangup? Does the phone gets 200ok and sends BYE or it sends CANCEL?
Daniel
I just need to know how to do to call through openser to asterisk without that the phone hangup
Cordialement, BERGANZ François
http://www.acropolistelecom.net Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.
-----Message d'origine----- De : Daniel-Constantin Mierla [mailto:miconda@gmail.com] Envoyé : mardi 17 février 2009 18:07 À : BERGANZ François Cc : users@lists.kamailio.org Objet : Re: [Kamailio-Users] A2billing Project <-> Openser
Hello,
On 02/17/2009 04:59 PM, BERGANZ François wrote:
Hello,
I use Asterisk2billing to do prepaid…it works fine!
But, now, I need to auth my users in the openser and forward the call by loadbal to asterisk(s) which use Asterisk2billing.
Anybody know how to do?
use dispatcher ds_select_dst() and then t_relay().
Does A2B requires the users to be register there as well?
Cheers, Daniel
Cordialement,
BERGANZ François
P Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
As I could see in the trace, there is a 200OK sent back to caller before the INVITE is forwarded to A2B.
Check your config file, probably you have a sl_send_reply("200", "OK") misplaced.
Cheers, Daniel
On 02/17/2009 07:31 PM, BERGANZ François wrote:
This one is better
Cordialement, BERGANZ François
http://www.acropolistelecom.net Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.
-----Message d'origine----- De : Daniel-Constantin Mierla [mailto:miconda@gmail.com] Envoyé : mardi 17 février 2009 18:18 À : BERGANZ François Cc : users@lists.kamailio.org Objet : Re: [Kamailio-Users] A2billing Project <-> Openser
On 02/17/2009 07:14 PM, BERGANZ François wrote:
I have no problems with dispatcher t_relay... When asterisk receive the call, asterisk start the agi and the phone hangup itself!
What is the cause of hangup? Does the phone gets 200ok and sends BYE or it sends CANCEL?
Daniel
I just need to know how to do to call through openser to asterisk without that the phone hangup
Cordialement, BERGANZ François
http://www.acropolistelecom.net Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.
-----Message d'origine----- De : Daniel-Constantin Mierla [mailto:miconda@gmail.com] Envoyé : mardi 17 février 2009 18:07 À : BERGANZ François Cc : users@lists.kamailio.org Objet : Re: [Kamailio-Users] A2billing Project <-> Openser
Hello,
On 02/17/2009 04:59 PM, BERGANZ François wrote:
Hello,
I use Asterisk2billing to do prepaid…it works fine!
But, now, I need to auth my users in the openser and forward the call by loadbal to asterisk(s) which use Asterisk2billing.
Anybody know how to do?
use dispatcher ds_select_dst() and then t_relay().
Does A2B requires the users to be register there as well?
Cheers, Daniel
Cordialement,
BERGANZ François
P Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
I have a sl_send_reply("200", "OK") just for my options request. I don't have others sl_send_reply("200", "OK").
But, is it normal that openser forward 2 INVITE ?
Cordialement, BERGANZ François
http://www.acropolistelecom.net Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.
-----Message d'origine----- De : Daniel-Constantin Mierla [mailto:miconda@gmail.com] Envoyé : mardi 17 février 2009 18:44 À : BERGANZ François Cc : users@lists.kamailio.org Objet : Re: [Kamailio-Users] A2billing Project <-> Openser
As I could see in the trace, there is a 200OK sent back to caller before the INVITE is forwarded to A2B.
Check your config file, probably you have a sl_send_reply("200", "OK") misplaced.
Cheers, Daniel
On 02/17/2009 07:31 PM, BERGANZ François wrote:
This one is better
Cordialement, BERGANZ François
http://www.acropolistelecom.net Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.
-----Message d'origine----- De : Daniel-Constantin Mierla [mailto:miconda@gmail.com] Envoyé : mardi 17 février 2009 18:18 À : BERGANZ François Cc : users@lists.kamailio.org Objet : Re: [Kamailio-Users] A2billing Project <-> Openser
On 02/17/2009 07:14 PM, BERGANZ François wrote:
I have no problems with dispatcher t_relay... When asterisk receive the call, asterisk start the agi and the phone hangup itself!
What is the cause of hangup? Does the phone gets 200ok and sends BYE or it sends CANCEL?
Daniel
I just need to know how to do to call through openser to asterisk without that the phone hangup
Cordialement, BERGANZ François
http://www.acropolistelecom.net Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.
-----Message d'origine----- De : Daniel-Constantin Mierla [mailto:miconda@gmail.com] Envoyé : mardi 17 février 2009 18:07 À : BERGANZ François Cc : users@lists.kamailio.org Objet : Re: [Kamailio-Users] A2billing Project <-> Openser
Hello,
On 02/17/2009 04:59 PM, BERGANZ François wrote:
Hello,
I use Asterisk2billing to do prepaid…it works fine!
But, now, I need to auth my users in the openser and forward the call by loadbal to asterisk(s) which use Asterisk2billing.
Anybody know how to do?
use dispatcher ds_select_dst() and then t_relay().
Does A2B requires the users to be register there as well?
Cheers, Daniel
Cordialement,
BERGANZ François
P Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
On 02/18/2009 09:54 AM, BERGANZ François wrote:
I have a sl_send_reply("200", "OK") just for my options request. I don't have others sl_send_reply("200", "OK").
But, is it normal that openser forward 2 INVITE ?
The condition is matched by the invite or there is another function that sends the 200ok. Use xlog to trouble shoot. You have to configure kamailio in the way it does not sent the 200ok, just forwards the INVITE to A2B.
Cheers, Daniel
Cordialement, BERGANZ François
http://www.acropolistelecom.net Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.
-----Message d'origine----- De : Daniel-Constantin Mierla [mailto:miconda@gmail.com] Envoyé : mardi 17 février 2009 18:44 À : BERGANZ François Cc : users@lists.kamailio.org Objet : Re: [Kamailio-Users] A2billing Project <-> Openser
As I could see in the trace, there is a 200OK sent back to caller before the INVITE is forwarded to A2B.
Check your config file, probably you have a sl_send_reply("200", "OK") misplaced.
Cheers, Daniel
On 02/17/2009 07:31 PM, BERGANZ François wrote:
This one is better
Cordialement, BERGANZ François
http://www.acropolistelecom.net Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.
-----Message d'origine----- De : Daniel-Constantin Mierla [mailto:miconda@gmail.com] Envoyé : mardi 17 février 2009 18:18 À : BERGANZ François Cc : users@lists.kamailio.org Objet : Re: [Kamailio-Users] A2billing Project <-> Openser
On 02/17/2009 07:14 PM, BERGANZ François wrote:
I have no problems with dispatcher t_relay... When asterisk receive the call, asterisk start the agi and the phone hangup itself!
What is the cause of hangup? Does the phone gets 200ok and sends BYE or it sends CANCEL?
Daniel
I just need to know how to do to call through openser to asterisk without that the phone hangup
Cordialement, BERGANZ François
http://www.acropolistelecom.net Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.
-----Message d'origine----- De : Daniel-Constantin Mierla [mailto:miconda@gmail.com] Envoyé : mardi 17 février 2009 18:07 À : BERGANZ François Cc : users@lists.kamailio.org Objet : Re: [Kamailio-Users] A2billing Project <-> Openser
Hello,
On 02/17/2009 04:59 PM, BERGANZ François wrote:
Hello,
I use Asterisk2billing to do prepaid…it works fine!
But, now, I need to auth my users in the openser and forward the call by loadbal to asterisk(s) which use Asterisk2billing.
Anybody know how to do?
use dispatcher ds_select_dst() and then t_relay().
Does A2B requires the users to be register there as well?
Cheers, Daniel
Cordialement,
BERGANZ François
P Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
As I can see, -my phone send INVITE -SER reply trying & 200ok to the phone -SER forward INVITE to asterisk -asterisk reply trying & 200ok to SER -SER forward the 200ok to the phone! The phone receive 2 200ok for 1 INVITE!
And more: -SER forward another INVITE to the asterisk -asterisk reply... -the phone receive a lots of 200 ok for 1 invite.
Is it normal?
Cordialement, BERGANZ François
http://www.acropolistelecom.net Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.
-----Message d'origine----- De : Daniel-Constantin Mierla [mailto:miconda@gmail.com] Envoyé : mardi 17 février 2009 18:44 À : BERGANZ François Cc : users@lists.kamailio.org Objet : Re: [Kamailio-Users] A2billing Project <-> Openser
As I could see in the trace, there is a 200OK sent back to caller before the INVITE is forwarded to A2B.
Check your config file, probably you have a sl_send_reply("200", "OK") misplaced.
Cheers, Daniel
On 02/17/2009 07:31 PM, BERGANZ François wrote:
This one is better
Cordialement, BERGANZ François
http://www.acropolistelecom.net Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.
-----Message d'origine----- De : Daniel-Constantin Mierla [mailto:miconda@gmail.com] Envoyé : mardi 17 février 2009 18:18 À : BERGANZ François Cc : users@lists.kamailio.org Objet : Re: [Kamailio-Users] A2billing Project <-> Openser
On 02/17/2009 07:14 PM, BERGANZ François wrote:
I have no problems with dispatcher t_relay... When asterisk receive the call, asterisk start the agi and the phone hangup itself!
What is the cause of hangup? Does the phone gets 200ok and sends BYE or it sends CANCEL?
Daniel
I just need to know how to do to call through openser to asterisk without that the phone hangup
Cordialement, BERGANZ François
http://www.acropolistelecom.net Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.
-----Message d'origine----- De : Daniel-Constantin Mierla [mailto:miconda@gmail.com] Envoyé : mardi 17 février 2009 18:07 À : BERGANZ François Cc : users@lists.kamailio.org Objet : Re: [Kamailio-Users] A2billing Project <-> Openser
Hello,
On 02/17/2009 04:59 PM, BERGANZ François wrote:
Hello,
I use Asterisk2billing to do prepaid…it works fine!
But, now, I need to auth my users in the openser and forward the call by loadbal to asterisk(s) which use Asterisk2billing.
Anybody know how to do?
use dispatcher ds_select_dst() and then t_relay().
Does A2B requires the users to be register there as well?
Cheers, Daniel
Cordialement,
BERGANZ François
P Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
On 02/18/2009 10:00 AM, BERGANZ François wrote:
As I can see, -my phone send INVITE -SER reply trying & 200ok to the phone -SER forward INVITE to asterisk -asterisk reply trying & 200ok to SER -SER forward the 200ok to the phone! The phone receive 2 200ok for 1 INVITE!
And more: -SER forward another INVITE to the asterisk -asterisk reply... -the phone receive a lots of 200 ok for 1 invite.
Is it normal?
As said in the previous email, you have to figure out why first 200ok is sent to caller. You config for kamailio is broken somewhere. This is not normal...
Cheers, Daniel
Cordialement, BERGANZ François
http://www.acropolistelecom.net Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.
-----Message d'origine----- De : Daniel-Constantin Mierla [mailto:miconda@gmail.com] Envoyé : mardi 17 février 2009 18:44 À : BERGANZ François Cc : users@lists.kamailio.org Objet : Re: [Kamailio-Users] A2billing Project <-> Openser
As I could see in the trace, there is a 200OK sent back to caller before the INVITE is forwarded to A2B.
Check your config file, probably you have a sl_send_reply("200", "OK") misplaced.
Cheers, Daniel
On 02/17/2009 07:31 PM, BERGANZ François wrote:
This one is better
Cordialement, BERGANZ François
http://www.acropolistelecom.net Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.
-----Message d'origine----- De : Daniel-Constantin Mierla [mailto:miconda@gmail.com] Envoyé : mardi 17 février 2009 18:18 À : BERGANZ François Cc : users@lists.kamailio.org Objet : Re: [Kamailio-Users] A2billing Project <-> Openser
On 02/17/2009 07:14 PM, BERGANZ François wrote:
I have no problems with dispatcher t_relay... When asterisk receive the call, asterisk start the agi and the phone hangup itself!
What is the cause of hangup? Does the phone gets 200ok and sends BYE or it sends CANCEL?
Daniel
I just need to know how to do to call through openser to asterisk without that the phone hangup
Cordialement, BERGANZ François
http://www.acropolistelecom.net Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.
-----Message d'origine----- De : Daniel-Constantin Mierla [mailto:miconda@gmail.com] Envoyé : mardi 17 février 2009 18:07 À : BERGANZ François Cc : users@lists.kamailio.org Objet : Re: [Kamailio-Users] A2billing Project <-> Openser
Hello,
On 02/17/2009 04:59 PM, BERGANZ François wrote:
Hello,
I use Asterisk2billing to do prepaid…it works fine!
But, now, I need to auth my users in the openser and forward the call by loadbal to asterisk(s) which use Asterisk2billing.
Anybody know how to do?
use dispatcher ds_select_dst() and then t_relay().
Does A2B requires the users to be register there as well?
Cheers, Daniel
Cordialement,
BERGANZ François
P Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
My error was in my check auth. Now, I have, and it works:
if (registered("location")){ ##4## xlog("L_ERR", "##4##\n"); avp_db_query("select username from cc_card where username='$fU'", "$avp(s:679)"); xlog("L_ERR", "username(avp679) : $avp(s:679)"); }else{ if(!www_authorize("asterisk", "cc_card")){ xlog("L_ERR", "challenge2\n"); www_challenge("asterisk", "1"); exit; }; }
Cordialement, BERGANZ François
http://www.acropolistelecom.net Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.
-----Message d'origine----- De : Daniel-Constantin Mierla [mailto:miconda@gmail.com] Envoyé : mercredi 18 février 2009 10:03 À : BERGANZ François Cc : users@lists.kamailio.org Objet : Re: [Kamailio-Users] A2billing Project <-> Openser
On 02/18/2009 10:00 AM, BERGANZ François wrote:
As I can see, -my phone send INVITE -SER reply trying & 200ok to the phone -SER forward INVITE to asterisk -asterisk reply trying & 200ok to SER -SER forward the 200ok to the phone! The phone receive 2 200ok for 1 INVITE!
And more: -SER forward another INVITE to the asterisk -asterisk reply... -the phone receive a lots of 200 ok for 1 invite.
Is it normal?
As said in the previous email, you have to figure out why first 200ok is sent to caller. You config for kamailio is broken somewhere. This is not normal...
Cheers, Daniel
Cordialement, BERGANZ François
http://www.acropolistelecom.net Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.
-----Message d'origine----- De : Daniel-Constantin Mierla [mailto:miconda@gmail.com] Envoyé : mardi 17 février 2009 18:44 À : BERGANZ François Cc : users@lists.kamailio.org Objet : Re: [Kamailio-Users] A2billing Project <-> Openser
As I could see in the trace, there is a 200OK sent back to caller before the INVITE is forwarded to A2B.
Check your config file, probably you have a sl_send_reply("200", "OK") misplaced.
Cheers, Daniel
On 02/17/2009 07:31 PM, BERGANZ François wrote:
This one is better
Cordialement, BERGANZ François
http://www.acropolistelecom.net Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.
-----Message d'origine----- De : Daniel-Constantin Mierla [mailto:miconda@gmail.com] Envoyé : mardi 17 février 2009 18:18 À : BERGANZ François Cc : users@lists.kamailio.org Objet : Re: [Kamailio-Users] A2billing Project <-> Openser
On 02/17/2009 07:14 PM, BERGANZ François wrote:
I have no problems with dispatcher t_relay... When asterisk receive the call, asterisk start the agi and the phone hangup itself!
What is the cause of hangup? Does the phone gets 200ok and sends BYE or it sends CANCEL?
Daniel
I just need to know how to do to call through openser to asterisk without that the phone hangup
Cordialement, BERGANZ François
http://www.acropolistelecom.net Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.
-----Message d'origine----- De : Daniel-Constantin Mierla [mailto:miconda@gmail.com] Envoyé : mardi 17 février 2009 18:07 À : BERGANZ François Cc : users@lists.kamailio.org Objet : Re: [Kamailio-Users] A2billing Project <-> Openser
Hello,
On 02/17/2009 04:59 PM, BERGANZ François wrote:
Hello,
I use Asterisk2billing to do prepaid…it works fine!
But, now, I need to auth my users in the openser and forward the call by loadbal to asterisk(s) which use Asterisk2billing.
Anybody know how to do?
use dispatcher ds_select_dst() and then t_relay().
Does A2B requires the users to be register there as well?
Cheers, Daniel
Cordialement,
BERGANZ François
P Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
On 02/18/2009 01:06 PM, BERGANZ François wrote:
My error was in my check auth. Now, I have, and it works:
if (registered("location")){ ##4## xlog("L_ERR", "##4##\n"); avp_db_query("select username from cc_card where username='$fU'", "$avp(s:679)"); xlog("L_ERR", "username(avp679) : $avp(s:679)"); }else{ if(!www_authorize("asterisk", "cc_card")){
for proxied requests (like invite) you have to use proxy_authorize() instead of www_authorize()
Cheers, Daniel
xlog("L_ERR", "challenge2\n"); www_challenge("asterisk", "1"); exit; };
}
Cordialement, BERGANZ François
http://www.acropolistelecom.net Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.
-----Message d'origine----- De : Daniel-Constantin Mierla [mailto:miconda@gmail.com] Envoyé : mercredi 18 février 2009 10:03 À : BERGANZ François Cc : users@lists.kamailio.org Objet : Re: [Kamailio-Users] A2billing Project <-> Openser
On 02/18/2009 10:00 AM, BERGANZ François wrote:
As I can see, -my phone send INVITE -SER reply trying & 200ok to the phone -SER forward INVITE to asterisk -asterisk reply trying & 200ok to SER -SER forward the 200ok to the phone! The phone receive 2 200ok for 1 INVITE!
And more: -SER forward another INVITE to the asterisk -asterisk reply... -the phone receive a lots of 200 ok for 1 invite.
Is it normal?
As said in the previous email, you have to figure out why first 200ok is sent to caller. You config for kamailio is broken somewhere. This is not normal...
Cheers, Daniel
Cordialement, BERGANZ François
http://www.acropolistelecom.net Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.
-----Message d'origine----- De : Daniel-Constantin Mierla [mailto:miconda@gmail.com] Envoyé : mardi 17 février 2009 18:44 À : BERGANZ François Cc : users@lists.kamailio.org Objet : Re: [Kamailio-Users] A2billing Project <-> Openser
As I could see in the trace, there is a 200OK sent back to caller before the INVITE is forwarded to A2B.
Check your config file, probably you have a sl_send_reply("200", "OK") misplaced.
Cheers, Daniel
On 02/17/2009 07:31 PM, BERGANZ François wrote:
This one is better
Cordialement, BERGANZ François
http://www.acropolistelecom.net Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.
-----Message d'origine----- De : Daniel-Constantin Mierla [mailto:miconda@gmail.com] Envoyé : mardi 17 février 2009 18:18 À : BERGANZ François Cc : users@lists.kamailio.org Objet : Re: [Kamailio-Users] A2billing Project <-> Openser
On 02/17/2009 07:14 PM, BERGANZ François wrote:
I have no problems with dispatcher t_relay... When asterisk receive the call, asterisk start the agi and the phone hangup itself!
What is the cause of hangup? Does the phone gets 200ok and sends BYE or it sends CANCEL?
Daniel
I just need to know how to do to call through openser to asterisk without that the phone hangup
Cordialement, BERGANZ François
http://www.acropolistelecom.net Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.
-----Message d'origine----- De : Daniel-Constantin Mierla [mailto:miconda@gmail.com] Envoyé : mardi 17 février 2009 18:07 À : BERGANZ François Cc : users@lists.kamailio.org Objet : Re: [Kamailio-Users] A2billing Project <-> Openser
Hello,
On 02/17/2009 04:59 PM, BERGANZ François wrote:
Hello,
I use Asterisk2billing to do prepaid…it works fine!
But, now, I need to auth my users in the openser and forward the call by loadbal to asterisk(s) which use Asterisk2billing.
Anybody know how to do?
use dispatcher ds_select_dst() and then t_relay().
Does A2B requires the users to be register there as well?
Cheers, Daniel
Cordialement,
BERGANZ François
P Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
I found my problem. It comes from the auth.
I check if the user is auth. But, I always challenge the phone! If I challenge the phone, the phone send the right invite and hangup! Asterisk receive the right invite and pickup the line without the phone.
Have you an example of auth which don't have that effect?
Cordialement, BERGANZ François
http://www.acropolistelecom.net Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.
-----Message d'origine----- De : Daniel-Constantin Mierla [mailto:miconda@gmail.com] Envoyé : mardi 17 février 2009 18:44 À : BERGANZ François Cc : users@lists.kamailio.org Objet : Re: [Kamailio-Users] A2billing Project <-> Openser
As I could see in the trace, there is a 200OK sent back to caller before the INVITE is forwarded to A2B.
Check your config file, probably you have a sl_send_reply("200", "OK") misplaced.
Cheers, Daniel
On 02/17/2009 07:31 PM, BERGANZ François wrote:
This one is better
Cordialement, BERGANZ François
http://www.acropolistelecom.net Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.
-----Message d'origine----- De : Daniel-Constantin Mierla [mailto:miconda@gmail.com] Envoyé : mardi 17 février 2009 18:18 À : BERGANZ François Cc : users@lists.kamailio.org Objet : Re: [Kamailio-Users] A2billing Project <-> Openser
On 02/17/2009 07:14 PM, BERGANZ François wrote:
I have no problems with dispatcher t_relay... When asterisk receive the call, asterisk start the agi and the phone hangup itself!
What is the cause of hangup? Does the phone gets 200ok and sends BYE or it sends CANCEL?
Daniel
I just need to know how to do to call through openser to asterisk without that the phone hangup
Cordialement, BERGANZ François
http://www.acropolistelecom.net Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.
-----Message d'origine----- De : Daniel-Constantin Mierla [mailto:miconda@gmail.com] Envoyé : mardi 17 février 2009 18:07 À : BERGANZ François Cc : users@lists.kamailio.org Objet : Re: [Kamailio-Users] A2billing Project <-> Openser
Hello,
On 02/17/2009 04:59 PM, BERGANZ François wrote:
Hello,
I use Asterisk2billing to do prepaid…it works fine!
But, now, I need to auth my users in the openser and forward the call by loadbal to asterisk(s) which use Asterisk2billing.
Anybody know how to do?
use dispatcher ds_select_dst() and then t_relay().
Does A2B requires the users to be register there as well?
Cheers, Daniel
Cordialement,
BERGANZ François
P Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
On 02/18/2009 10:54 AM, BERGANZ François wrote:
I found my problem. It comes from the auth.
Do you send 200 ok after auth? If yes, you shouldn't.
I check if the user is auth. But, I always challenge the phone!
You have to challenge when the invite is not authenticated -- proxy_authorize(...) return false.
If I challenge the phone, the phone send the right invite and hangup! Asterisk receive the right invite and pickup the line without the phone.
Have you an example of auth which don't have that effect?
The default config file has example how to auth invite -- it is in comments.
Again, find the reason why 200ok is sent by kamailio - that must not happen.
Cheers, Daniel
Cordialement, BERGANZ François
http://www.acropolistelecom.net Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.
-----Message d'origine----- De : Daniel-Constantin Mierla [mailto:miconda@gmail.com] Envoyé : mardi 17 février 2009 18:44 À : BERGANZ François Cc : users@lists.kamailio.org Objet : Re: [Kamailio-Users] A2billing Project <-> Openser
As I could see in the trace, there is a 200OK sent back to caller before the INVITE is forwarded to A2B.
Check your config file, probably you have a sl_send_reply("200", "OK") misplaced.
Cheers, Daniel
On 02/17/2009 07:31 PM, BERGANZ François wrote:
This one is better
Cordialement, BERGANZ François
http://www.acropolistelecom.net Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.
-----Message d'origine----- De : Daniel-Constantin Mierla [mailto:miconda@gmail.com] Envoyé : mardi 17 février 2009 18:18 À : BERGANZ François Cc : users@lists.kamailio.org Objet : Re: [Kamailio-Users] A2billing Project <-> Openser
On 02/17/2009 07:14 PM, BERGANZ François wrote:
I have no problems with dispatcher t_relay... When asterisk receive the call, asterisk start the agi and the phone hangup itself!
What is the cause of hangup? Does the phone gets 200ok and sends BYE or it sends CANCEL?
Daniel
I just need to know how to do to call through openser to asterisk without that the phone hangup
Cordialement, BERGANZ François
http://www.acropolistelecom.net Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.
-----Message d'origine----- De : Daniel-Constantin Mierla [mailto:miconda@gmail.com] Envoyé : mardi 17 février 2009 18:07 À : BERGANZ François Cc : users@lists.kamailio.org Objet : Re: [Kamailio-Users] A2billing Project <-> Openser
Hello,
On 02/17/2009 04:59 PM, BERGANZ François wrote:
Hello,
I use Asterisk2billing to do prepaid…it works fine!
But, now, I need to auth my users in the openser and forward the call by loadbal to asterisk(s) which use Asterisk2billing.
Anybody know how to do?
use dispatcher ds_select_dst() and then t_relay().
Does A2B requires the users to be register there as well?
Cheers, Daniel
Cordialement,
BERGANZ François
P Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users