From 05291aad1d0c9a989c2b7bb9135e089df1691d07 Mon Sep 17 00:00:00 2001 From: Keith Date: Mon, 4 Apr 2016 20:31:35 +0100 Subject: [PATCH] Bridge Roaming calls --- rccn/context.py | 4 ++-- rccn/dialplan.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) mode change 100644 => 100755 rccn/context.py mode change 100644 => 100755 rccn/dialplan.py diff --git a/rccn/context.py b/rccn/context.py old mode 100644 new mode 100755 index 796648b..2a8fc83 --- a/rccn/context.py +++ b/rccn/context.py @@ -311,9 +311,9 @@ def roaming(self, roaming_subject): self.session.setVariable('context','ROAMING_LOCAL') self.session.execute('bridge', "{absolute_codec_string='GSM'}sofia/internal/sip:"+str(self.destination_number)+'@172.16.0.1:5050') else: - log.info('Called number is roaming send call to current_bts: %s' % site_ip) + log.info('Called number is roaming, bridge call here + current_bts: %s' % site_ip) self.session.setVariable('context','ROAMING_INTERNAL') - self.session.execute('bridge', "{absolute_codec_string='GSM,G729'}sofia/internalvpn/sip:"+self.destination_number+'@'+site_ip+':5040') + self.session.execute('bridge', "{absolute_codec_string='GSM,G729'} sofia/internal/sip:"+str(self.destination_number)+"@172.16.0.1:5050, sofia/internalvpn/sip:"+self.destination_number+'@'+site_ip+':5040') except NumberingException as e: log.error(e) elif roaming_subject == 'inbound': diff --git a/rccn/dialplan.py b/rccn/dialplan.py old mode 100644 new mode 100755 index 2a5a827..4004b7e --- a/rccn/dialplan.py +++ b/rccn/dialplan.py @@ -152,7 +152,7 @@ def lookup(self): if (self._n.is_number_roaming(self.destination_number)): processed = 1 log.info( - 'Destination number %s is roaming' + 'Destination number %s may be roaming' % self.destination_number) self.context.roaming('called') except NumberingException as e: