From 244624d55a83cd0c0b8eb0845b4f83e691962c66 Mon Sep 17 00:00:00 2001
From: Michal Zubac <michal.zubac@comgate.cz>
Date: Mon, 11 Jul 2011 00:24:08 +0200
Subject: [PATCH] force choice of outgoing channel in ISDN SETUP message

---
 libs/freetdm/src/ftmod/ftmod_libpri/ftmod_libpri.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libs/freetdm/src/ftmod/ftmod_libpri/ftmod_libpri.c b/libs/freetdm/src/ftmod/ftmod_libpri/ftmod_libpri.c
index 5150890..2d52ca8 100644
--- a/libs/freetdm/src/ftmod/ftmod_libpri/ftmod_libpri.c
+++ b/libs/freetdm/src/ftmod/ftmod_libpri/ftmod_libpri.c
@@ -744,7 +744,7 @@ static ftdm_status_t state_advance(ftdm_channel_t *chan)
 			}
 			assert(sr);
 
-			pri_sr_set_channel(sr, ftdm_channel_get_id(chan), 0, 0);
+			pri_sr_set_channel(sr, ftdm_channel_get_id(chan), 1, 0);
 			pri_sr_set_bearer(sr, PRI_TRANS_CAP_SPEECH, isdn_data->layer1);
 
 			pri_sr_set_called(sr, caller_data->dnis.digits, ton, 1);
-- 
1.7.1
