[OpenSIPS-Users] CDRTool e164 cdr_genric.php

Adrian Georgescu ag at ag-projects.com
Tue May 18 23:41:14 CEST 2010


On May 18, 2010, at 6:00 PM, Philipp Hoffmann wrote:

> I can't configuration opensips.cfg. We *must* do it with cdr_generic.php. It is possiable, isn't it?

You can and you do *not have to*

It is.


> 2010/5/18 Adrian Georgescu <ag at ag-projects.com>
> 
> On May 18, 2010, at 5:17 PM, Philipp Hoffmann wrote:
> 
>> Sorry, this isn't possiable.
>> CDRTool need to parse the URI with + as prefix.
> 
> Yes, you can always rewrite the uri internally when you pass it to callcontrol and rewrite it the way you want again when it goes out on the wire.
> 
> The flow of your configuration must be:
> 
> Dialed number -> Internal normalization to 00 + Country Code in the format expected by call control ->Translate into format expected by destination -> Send out
> 
> Adrian
> 
>> 
>> Any idear?
>> 
>> Thanks,
>> Philipp
>> 
>> 2010/5/18 Adrian Georgescu <ag at ag-projects.com>
>> Your setup must be done in  a different place, you must set OpenSIPS configuration to send 00+ Country Code format to the call control, if this is correctly set you must have To:sip:00.... in syslog.
>> 
>> Adrian
>> 
>> On May 18, 2010, at 4:14 PM, Philipp Hoffmann wrote:
>> 
>>> Hi,
>>> 
>>> we wan't dial numbers with + , so I edited our cdr_generic.php:
>>> 
>>> ...
>>>     var $intAccessCode       = '+';
>>>     var $natAccessCode       = '0';
>>> 
>>> ...
>>> 
>>>     function E164_Europe ($intAccessCode='+', $natAccessCode='0',$CountryCode='',$ENUMtldRegexp="([1-9][0-9]{7,})") {
>>>         $this->regexp_international = "/^".$intAccessCode."([1-9][0-9]{5,})\$/";
>>>         $this->regexp_national      = "/^".$natAccessCode."([1-9][0-9]{3,})\$/";
>>> ...
>>> 
>>> But I always recive:
>>> 
>>> MaxSessionTime Duration=36000 CallId=2e3630ab25ed952c7c0eb226657b2c5f at domain.de From=sip:user at domain.de Gateway=88.77.252.24 To=sip:+498003301000 at sip.hns-rechenzentrum.de
>>> 
>>> May 18 16:09:29 ser1 call-control[13980]: Call id 2e3630ab25ed952c7c0eb226657b2c5f at domain.de of hns01 at sip.hns-rechenzentrum.de to sip:+498003301000 at sip.hns-rechenzentrum.de is postpaid not limited
>>> 
>>> Any idear?
>>> 
>>> Thanks,
>>> Philipp
>>> 
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.opensips.org
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>> 
>> 
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>> 
>> 
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> 
> 
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> 
> 
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20100518/479a9f19/attachment.htm 


More information about the Users mailing list