[Kamailio-Users] A2billing Project <-> Openser
Daniel-Constantin Mierla
miconda at gmail.com
Wed Feb 18 15:35:28 CET 2009
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 at gmail.com]
> Envoyé : mercredi 18 février 2009 10:03
> À : BERGANZ François
> Cc : users at 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 at gmail.com]
>> Envoyé : mardi 17 février 2009 18:44
>> À : BERGANZ François
>> Cc : users at 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 at gmail.com]
>>> Envoyé : mardi 17 février 2009 18:18
>>> À : BERGANZ François
>>> Cc : users at 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 at gmail.com]
>>>> Envoyé : mardi 17 février 2009 18:07
>>>> À : BERGANZ François
>>>> Cc : users at 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 at 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 at lists.kamailio.org
>>> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
>>> http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
>>>
>>>
>>
>>
>
>
--
Daniel-Constantin Mierla
http://www.asipto.com
More information about the Users
mailing list