[Kamailio-Users] how to prepend area code into a local call phone number

Daniel-Constantin Mierla miconda at gmail.com
Mon Feb 23 09:36:32 CET 2009


Hello,

On 02/23/2009 08:03 AM, Jinsong Hu wrote:
> Hi, Sir:
>   In the US, assume a person from 1-408-1234567 is dialing phone number 
> 1234568.
> how do I figure out the caller's country code and area code and prepend to 
> the local number ?
>
>   I tried
> prefix($(from.user{s.substr, 0, 4}));
>
>   and openser reported as  parser error in config file, bad argument, string 
> expected.
>   
use:

$rU = $(fU{s.substr, 0, 4}) + $rU;

Cheers,
Daniel

-- 
Daniel-Constantin Mierla
http://www.asipto.com




More information about the Users mailing list