asterisk2billing.org
http://forum.asterisk2billing.org/

International prefix not kept ?
http://forum.asterisk2billing.org/viewtopic.php?f=22&t=6174
Page 1 of 1

Author:  cerien [ Wed Sep 09, 2009 10:27 pm ]
Post subject:  International prefix not kept ?

Hello

I have a rate defined as:
dialprefix = 01XXXXXXXXXX

and it is attached to a call plan with the flag 'Remove international prefix' set to 'No'

when I dial '0112345678', the dialed number in the call record appears as '2345678'
when I dial '0187654321', the dialed number in the call record appears as 0187654321' - which is what I expect

I've tried removing the prefix and it does not help (just in case) - searched on the forum and didnt really see anything....

Now - even weirder.... when I set the system settings / international_prefixes to "00" - no more - the 011 still disappears....

Is this the normal behaviour ?

regards
J.

Author:  areski [ Wed Sep 09, 2009 10:50 pm ]
Post subject:  Re: International prefix not kept ?

This doesn't sound as normal behavior to me, most of all :
'Remove international prefix' set to 'No' this should keep the prefix as it is.


Yours,
/Areski

Author:  cerien [ Thu Sep 10, 2009 12:16 am ]
Post subject:  Re: International prefix not kept ?

I did a bit more digging with my friend grep !

there is a function in Misc.php called remove_prefix that strips 011 (hard coded)

it appears to be only called by UI procedures.... and the DB looks alright !

so it is mostly a display thing I believe !

J.

Author:  areski [ Thu Sep 10, 2009 7:55 am ]
Post subject:  Re: International prefix not kept ?

Hi,

I didnt read your first post correctly, I thought you were talking about the AGI.

I just made a commit rev 2371, to remove all the remove_prefix
so it wont be confusing anymore.

Yours,
/Areski

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/