Changeset 385:65e748226c91 in verona for phcpp/phapipp.h


Ignore:
Timestamp:
Dec 12, 2011 5:18:17 PM (18 months ago)
Author:
Nikita Kozlov <nikita@…>
Branch:
default
rebase_source:
910d56ee2616aabe41b046a9cc2ea1afa0845cde
Message:

adding phListenAddr to phapipp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • phcpp/phapipp.h

    r331 r385  
    6565                        const char *realm, const char* ha1 = 0); 
    6666 
     67        virtual int listenAddr(int local_sip_port); 
    6768 
    6869        virtual int addVline(const char* displayname, const char* username, const char* host, 
     
    256257                        const string& ha1) 
    257258        { 
    258                 return  phapi::addAuthInfo(cstr(username), cstr(userid), cstr(passwd), realm, cstr(ha1)); 
    259         } 
    260  
     259                return phapi::addAuthInfo(cstr(username), cstr(userid), cstr(passwd), realm, cstr(ha1)); 
     260        } 
     261        int listenAddr(int local_sip_port) 
     262        { 
     263                return phapi::listenAddr(local_sip_port); 
     264        } 
    261265 
    262266        int addVline(const string& displayname, const string& username, const string& host, 
    263267                        const string&  proxy, int regTimeout, int mobility = PH_LINE_MOBILITY_DEFAULT) 
    264268        { 
    265                 return  phapi::addVline(cstr(displayname), cstr(username), cstr(host), cstr(proxy), regTimeout, mobility); 
     269                return phapi::addVline(cstr(displayname), cstr(username), cstr(host), cstr(proxy), regTimeout, mobility); 
    266270        } 
    267271 
     
    280284                        const char* adev = 0, const char* audio_addr = 0, const char* video_addr = 0) 
    281285        { 
    282                 return  phapi::placeCall(vlid, cstr(uri), userdata, rcid, streams, adev, audio_addr, video_addr); 
     286                return phapi::placeCall(vlid, cstr(uri), userdata, rcid, streams, adev, audio_addr, video_addr); 
    283287        } 
    284288 
     
    287291        int rejectCall(int cid, int reason, const string& uri) 
    288292        { 
    289                 return  phapi::rejectCall(cid, reason, cstr(uri)); 
     293                return phapi::rejectCall(cid, reason, cstr(uri)); 
    290294        } 
    291295 
     
    294298        int messageInCall(int cid, const string& mime, const string& buf) 
    295299        { 
    296                 return  phapi::messageInCall(cid, cstr(mime), cstr(buf)); 
     300                return phapi::messageInCall(cid, cstr(mime), cstr(buf)); 
    297301        } 
    298302 
     
    302306        int setFollowMe(int vlid, const string& uri) 
    303307        { 
    304                 return  phapi::setFollowMe(vlid, cstr(uri)); 
     308                return phapi::setFollowMe(vlid, cstr(uri)); 
    305309        } 
    306310 
     
    339343                        const string& mime, const string& target) 
    340344        { 
    341                 return  phapi::sendMessage(vlid, cstr(to), cstr(buff), cstr(mime), cstr(target), 0); 
     345                return phapi::sendMessage(vlid, cstr(to), cstr(buff), cstr(mime), cstr(target), 0); 
    342346        } 
    343347 
     
    346350        int sendMessage(int vlid, const string& to, const string& buff, const string& mime) 
    347351        { 
    348                 return  phapi::sendMessage(vlid, cstr(to), cstr(buff), cstr(mime), 0, 0); 
     352                return phapi::sendMessage(vlid, cstr(to), cstr(buff), cstr(mime), 0, 0); 
    349353        } 
    350354 
     
    353357        int subscribe(int vlid, const string& to, int winfo, char *data = 0, int use_proxy = 1, int expire = 600) 
    354358        { 
    355                 return  phapi::subscribe(vlid, cstr(to), winfo, data, use_proxy, expire); 
     359                return phapi::subscribe(vlid, cstr(to), winfo, data, use_proxy, expire); 
    356360        } 
    357361 
    358362        int unsubscribe(int sid, int winfo) 
    359363        { 
    360                 return  phapi::unsubscribe(sid, winfo); 
     364                return phapi::unsubscribe(sid, winfo); 
    361365        } 
    362366 
     
    364368                        const string& content, int expires = -1) 
    365369        { 
    366                 return  phapi::publish(vlid, cstr(to), cstr(evt), cstr(ctt), cstr(content), expires); 
     370                return phapi::publish(vlid, cstr(to), cstr(evt), cstr(ctt), cstr(content), expires); 
    367371        } 
    368372 
    369373        int unpublish(int vlid, const string& to, const string& evt) 
    370374        { 
    371                 return  phapi::unpublish(vlid, cstr(to), cstr(evt)); 
     375                return phapi::unpublish(vlid, cstr(to), cstr(evt)); 
    372376        } 
    373377 
Note: See TracChangeset for help on using the changeset viewer.