I can't configuration opensips.cfg. We *must* do it with cdr_generic.php. It is possiable, isn't it?
2010/5/18 Adrian Georgescu <[email protected]> > > 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 <[email protected]> > >> 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= >> [email protected] >> From=sip:[email protected]<sip%[email protected]>Gateway=88.77.252.24 To= >> sip:[email protected]<sip%3a%[email protected]> >> >> May 18 16:09:29 ser1 call-control[13980]: Call id >> [email protected] of >> [email protected] to >> sip:[email protected]<sip%3a%[email protected]>is >> postpaid not limited >> >> Any idear? >> >> Thanks, >> Philipp >> >> _______________________________________________ >> Users mailing list >> [email protected] >> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >> >> >> >> _______________________________________________ >> Users mailing list >> [email protected] >> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >> >> > _______________________________________________ > Users mailing list > [email protected] > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > > > > _______________________________________________ > Users mailing list > [email protected] > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > >
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
