summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgsmevent admin <admin@gsmevent.box>2018-12-13 00:54:39 +0100
committergsmevent admin <admin@gsmevent.box>2018-12-19 14:14:05 +0100
commit501eb2ba1793e14f65d960d3a4d46a078a0da6d1 (patch)
tree9b4c2094c626db04df55e0b063538b83ec16f302
parent0c232d89bf1579f66810efe41291d0c627cf15e9 (diff)
wip
-rw-r--r--src/mncc.c4
-rw-r--r--src/sdp.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/mncc.c b/src/mncc.c
index ea6a9fc..0c90bda 100644
--- a/src/mncc.c
+++ b/src/mncc.c
@@ -320,7 +320,7 @@ static void continue_mt_call(struct mncc_call_leg *leg)
return;
/* assume the type is compatible */
- other_leg->payload_type = leg->base.payload_type;
+ other_leg->payload_type = 98; //leg->base.payload_type;
}
static void continue_call(struct mncc_call_leg *leg)
@@ -382,7 +382,7 @@ static void check_rtp_create(struct mncc_connection *conn, const char *buf, int
/* extract information about where the RTP is */
leg->base.ip = rtp->ip;
leg->base.port = rtp->port;
- leg->base.payload_type = rtp->payload_type;
+ leg->base.payload_type = 98;//rtp->payload_type;
leg->base.payload_msg_type = rtp->payload_msg_type;
/* TODO.. now we can continue with the call */
diff --git a/src/sdp.c b/src/sdp.c
index 17eb577..d3cdd48 100644
--- a/src/sdp.c
+++ b/src/sdp.c
@@ -168,7 +168,7 @@ char *sdp_create_file(struct sip_call_leg *leg, struct call_leg *other)
struct in_addr net = { .s_addr = htonl(other->ip) };
char *fmtp_str = NULL, *sdp;
- leg->wanted_codec = app_media_name(other->payload_msg_type);
+ leg->wanted_codec = app_media_name(GSM_TCH_FRAME_AMR); //GSM_TCHH_FRAME); //other->payload_msg_type);
if (strcmp(leg->wanted_codec, "AMR") == 0)
fmtp_str = talloc_asprintf(leg, "a=fmtp:%d octet-align=1\r\n", other->payload_type);