Skip to content
Snippets Groups Projects
Commit 10363d5b authored by Emmanuel Milou's avatar Emmanuel Milou
Browse files

Merge branch 'yun-pjsip' of ssh://milou@192.168.1.203/home/yun/release/sflphone into sip_dev

parents a5c358ef 571d8e14
No related branches found
No related tags found
No related merge requests found
...@@ -363,6 +363,7 @@ SIPVoIPLink::carryingDTMFdigits(const CallID& id, char code UNUSED) ...@@ -363,6 +363,7 @@ SIPVoIPLink::carryingDTMFdigits(const CallID& id, char code UNUSED)
SIPCall* call = getSIPCall(id); SIPCall* call = getSIPCall(id);
if (call==0) { _debug("Call doesn't exist\n"); return false; } if (call==0) { _debug("Call doesn't exist\n"); return false; }
Manager::instance().getUserAgent()->carryingDTMFdigits(call);
//int duration = Manager::instance().getConfigInt(SIGNALISATION, PULSE_LENGTH); //int duration = Manager::instance().getConfigInt(SIGNALISATION, PULSE_LENGTH);
// TODO Add DTMF with pjsip - INFO method // TODO Add DTMF with pjsip - INFO method
......
...@@ -1188,6 +1188,11 @@ bool UserAgent::refuse(SIPCall* call) ...@@ -1188,6 +1188,11 @@ bool UserAgent::refuse(SIPCall* call)
return true; return true;
} }
bool UserAgent::carryingDTMFdigits(SIPCall* call)
{
return true;
}
bool UserAgent::transfer(SIPCall *call, const std::string& to) bool UserAgent::transfer(SIPCall *call, const std::string& to)
{ {
pjsip_evsub *sub; pjsip_evsub *sub;
......
...@@ -134,6 +134,9 @@ public: ...@@ -134,6 +134,9 @@ public:
void onCallTransfered(pjsip_inv_session *inv, pjsip_rx_data *rdata); void onCallTransfered(pjsip_inv_session *inv, pjsip_rx_data *rdata);
bool makeOutgoingCall(const std::string& to, SIPCall* call, const AccountID& id); bool makeOutgoingCall(const std::string& to, SIPCall* call, const AccountID& id);
bool carryingDTMFdigits(SIPCall* call);
pj_pool_t *getAppPool() {return _pool;} pj_pool_t *getAppPool() {return _pool;}
static pj_bool_t mod_on_rx_request(pjsip_rx_data *rdata); static pj_bool_t mod_on_rx_request(pjsip_rx_data *rdata);
static pj_bool_t mod_on_rx_response(pjsip_rx_data *rdata UNUSED) {return PJ_SUCCESS;} static pj_bool_t mod_on_rx_response(pjsip_rx_data *rdata UNUSED) {return PJ_SUCCESS;}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment