Redirect Invite

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

 



How can I change destination (To field) on on_call_redirected? Thanks in
advice

Reagards
Daniele Elia

2015-09-01 16:03 GMT+02:00 daniele elia <d.elia at elmansrl.it>:

> Hi guys,
> how can I set redirect on pjsua? Now I have the following source code, but
> I don't know how set and configure another URI:
>
> pjsip_redirect_op PjCallback::on_call_redirected(pjsua_call_id call_id,
> const pjsip_uri *target, const pjsip_event *e) {
> if (activeCalls.empty()) {
> return on_call_redirected(call_id, target, e);
> }
> if (!activeCalls.contains(call_id)) {
> return on_call_redirected(call_id, target, e);
> }
>
> pj_status_t status;
> pjsua_call_info ci;
> status = pjsua_call_get_info(call_id, &ci);
> if (status != PJ_SUCCESS) {
> return PJSIP_REDIRECT_STOP;
> }
>
> //Per calcolare lo stato, dovrebbe essere inutile
> QString state_text = QString::fromLatin1(ci.state_text.ptr,
> (int)ci.state_text.slen);
> //definisce lo stato
> emit setCallState(state_text);
>
> return PJSIP_REDIRECT_REJECT;
> ********AT THIS POINT HOW CAN I SET A NEW URI FOR REDIRECT CALL?*********
> }
>
> Thanks in advice
>
> Regards
> --
>
> *Daniele Elia*
>
> ______________________________________
>
> *ELMAN S.r.l.*
>
> *Via di Valle Caia, 37 - Z.I. S. Palomba*
>
> *00040 Pomezia (ROME) - ITALY*
>
>  (    +39.069194405
>
> 6   +39.069194306
>
> ?   www.elmansrl.it
> <http://webmaildominiold.aruba.it/cgi-bin/webmail.cgi?cmd=url&xdata=~2-dc1027ff82a2b652411cc42dfd879475fc937bedddd2d5cfd0d0e1db00&url=http!3A!2F!2Fwww.elmansrl.it>
>
> *   d.elia at elmansrl.it
>
> ______________________________________
>



-- 

*Daniele Elia*

______________________________________

*ELMAN S.r.l.*

*Via di Valle Caia, 37 - Z.I. S. Palomba*

*00040 Pomezia (ROME) - ITALY*

 (    +39.069194405

6   +39.069194306

?   www.elmansrl.it
<http://webmaildominiold.aruba.it/cgi-bin/webmail.cgi?cmd=url&xdata=~2-dc1027ff82a2b652411cc42dfd879475fc937bedddd2d5cfd0d0e1db00&url=http!3A!2F!2Fwww.elmansrl.it>

*   d.elia at elmansrl.it

______________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20150902/a8a357f1/attachment.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