[Spce-user] Problems with peergroup server change and cdr display
Andrew Pogrebennyk
apogrebennyk at sipwise.com
Thu Jun 21 12:28:32 EDT 2012
Vladimir,
the fix has been pushed to the 2.5 repository, running 'apt-get update;
apt-get upgrade' should give you the fixed package.
The important part is that the top of your ROUTE_INVITE in
proxy.cfg.customtt.tt2 should look like this:
if($var(from_pstn) == 1)
{
$avp(s:acc_caller_user) = $fU;
$avp(s:acc_caller_domain) = $avp(s:ip);
}
else if($avp(s:from_faxserver) != 1 && $var(cf_loop) != 1)
{
# if coming from CF loop, it's already passed by header
# for normal calls, set it using From
$avp(s:acc_caller_user) = $fU;
$avp(s:acc_caller_domain) = $fd;
}
if($var(cf_loop) != 1)
{
$(avp(s:acc_state)[*]) = "call";
}
Then you can find and drop or fix the kamailio.acc record which are
missing acc_state field. Select them:
mysql kamailio -e 'select * from acc where src_leg like "%||133%" or
src_leg like "%||134%"\G'
So in order to fix those records where *second last* field in src_leg is
empty you can put there "call" like "...|0|call|1334833583.482825".
Thank you for the report.
On 06/20/2012 09:13 PM, Andrew Pogrebennyk wrote:
> Vladimir,
> I'm setting myself a reminder to check this tomorrow.
> Thank you for your patience.
>
> On 06/18/2012 08:25 PM, Vladimir Grujic wrote:
>> I do, but i did a diff and changes I've made are very minor and do not
>> touch routing logic (I've added couple of short numbers and forward them
>> to asterisk for sam apps there)
>>
>> Vladimir
>>
>>
>> On Mon, Jun 18, 2012 at 7:51 PM, Jon Bonilla <jbonilla at sipwise.com
>> <mailto:jbonilla at sipwise.com>> wrote:
>>
>> El Mon, 18 Jun 2012 18:34:37 +0200
>> Vladimir Grujic <hyperbabac at gmail.com <mailto:hyperbabac at gmail.com>>
>> escribió:
>>
>> > It's latest and greatest 2.5.
>> >
>> > :)
>> >
>> > Vladimir
>> >
>> >
>>
>> do you use customtt.tt2 files?
>>
>>
>> _______________________________________________
>> Spce-user mailing list
>> Spce-user at lists.sipwise.com <mailto:Spce-user at lists.sipwise.com>
>> http://lists.sipwise.com/listinfo/spce-user
>>
>>
>>
>>
>> _______________________________________________
>> Spce-user mailing list
>> Spce-user at lists.sipwise.com
>> http://lists.sipwise.com/listinfo/spce-user
>
More information about the Spce-user
mailing list