Rhys Pilott, from Crown Street in Peterborough, admitted at an earlier hearing to causing a public nuisance on 24 September.
He also admitted to persistently making use of a public communication network to cause annoyance, inconvenience or anxiety on 27 September.
Prosecutor Anthea Harris said Pilott made 13 nuisance calls on the first occasion and 19 on the second.
She said the calls were "easily distinguished" as being made by the defendant as he was "audibly belching down the phone line".
"When he was arrested, he continued to belch," she said. "He said to police 'if you're bored, prank call the police. It's fun'."
She added: "While he's on the phone, other genuine calls can't be taken."
Michelle Canagasuriam, mitigating, said Pilott's offending was not "malicious or callous" and he had learning difficulties.
"He does this partly due to boredom," she said. "The psychologist is of the view this is about empowerment and importance.
"It was a need to be a someone who could make things happen, when all of his life history suggests he couldn't achieve this."
Jailing the defendant, he told him: "Whatever the reason for this persistent ringing of the emergency services you've got to realise that you're creating all sorts of difficulties for the emergency services and inevitably for yourself because you end up going to prison.
"I understand fully that you've got some problems but it's also clear that you know what you're doing and you're doing this out of boredom.
"You've got to find some other way of managing your time or prison sentences will get longer and longer."
Pilott admitted to two further offences at today's hearing, which both relate to an incident on 10 September where he stripped naked in public in the middle of the day and swore at police.
He pleaded guilty to outraging public decency and to using threatening or abusive words or behaviour likely to cause harassment, alarm or distress.
The court heard he was on a suspended sentence order when he committed the offences.
His total sentence for all of the offences is 24 weeks in prison.
The court heard Pilott had 12 previous convictions for "similar type offending", including three bomb hoaxes.