pjsip dtmf to asterisk 1.8

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



??
I am using pjsip on my iPhone application ?..|
am facing a problem that when i send a hangup dtmf '#' from iPhone
asterisk?never receive it and the app keeps sending it again and a gain ..but it never recieved and a i get a timeout hangup cause from the asterisk server ...|

on asterisk 1.6 it worked ,,while it does not on asterisk 1.8 ...!!
am using 2.1 pjsip ,, and some methods from siphon project?
here is the code used to hangup...

FROM AKSIP

- (void)sendDTMFDigits:(NSString?*)digits {
??
? ??pj_status_t?status;
? ??pj_str_t?pjDigits = [digits?pjString];
? ? ?
? ??// Try to send RFC2833 DTMF first.
? ? status =?pjsua_call_dial_dtmf(currentCalledID, &pjDigits);
?? ?
? ??if?(status !=?PJ_SUCCESS) {??// Okay, that didn't work. Send INFO DTMF.
? ? ? ??const?pj_str_t?kSIPINFO =?pj_str("INFO");
?? ? ? ?
? ? ? ??for?(NSUInteger?i =?0; i < [digits?length]; ++i) {
? ? ? ? ? ??pjsua_msg_data?messageData;
? ? ? ? ? ??pjsua_msg_data_init(&messageData);
? ? ? ? ? ? messageData.content_type?=?pj_str("application/dtmf-relay");
?? ? ? ? ? ?
? ? ? ? ? ??NSString?*messageBody
? ? ? ? ? ? = [NSString?stringWithFormat:@"Signal=%C\r\nDuration=300",
?? ? ? ? ? ? ? [digits?characterAtIndex:i]];
? ? ? ? ? ? messageData.msg_body?= [messageBody?pjString];
?? ? ? ? ? ?
? ? ? ? ? ? status =?pjsua_call_send_request(currentCalledID, &kSIPINFO, &messageData);
? ? ? ? ? ??if?(status !=?PJ_SUCCESS)
? ? ? ? ? ? ? ??NSLog(@"Error sending DTMF");
? ? ? ? }
? ? }
}

did not work ..



I tried many things like changing?
PJMEDIA_RTP_PT_TELEPHONE_EVENTS?
from 96 to 101

??PJMEDIA_RTP_PT_START =?102,

? ? PJMEDIA_RTP_PT_START = (PJMEDIA_RTP_PT_DYNAMIC-1),

in type.h

..

I wish anybody has a clue of why that happens??
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20130325/a85b482f/attachment-0001.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux