Skip to content

Commit

Permalink
Bridge Roaming calls
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith committed Apr 4, 2016
1 parent 3c79ec9 commit 05291aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions rccn/context.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down
2 changes: 1 addition & 1 deletion rccn/dialplan.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 05291aa

Please sign in to comment.