---
 drivers/calypsomodem/voicecall.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/calypsomodem/voicecall.c b/drivers/calypsomodem/voicecall.c
index 837ff69..398f5a2 100644
--- a/drivers/calypsomodem/voicecall.c
+++ b/drivers/calypsomodem/voicecall.c
@@ -37,6 +37,7 @@
 
 #include "gatchat.h"
 #include "gatresult.h"
+#include "common.h"
 
 #include "calypsomodem.h"
 
@@ -85,7 +86,7 @@ static void calypso_dial(struct ofono_voicecall *vc,
 {
        char buf[256];
 
-       if (ph->type == 145)
+       if (ph->type == CALLED_NUMBER_TYPE_INTERNATIONAL)
                snprintf(buf, sizeof(buf), "ATD+%s", ph->number);
        else
                snprintf(buf, sizeof(buf), "ATD%s", ph->number);
-- 
1.5.6.5

_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono

Reply via email to