[pjsip] make an outbound with a caller id i specify

Bernie B bugsbernie1 at googlemail.com
Tue Oct 28 14:49:57 EDT 2008


Hi,

see:
http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/2008-September/004879.html

This is how I did it:
...
    int newcallId = -1;
    pjsua_acc_config acc_cfg;
    pjsua_acc_id acc_id;

    pjsua_acc_config_default(&acc_cfg);
    acc_cfg.id = from_uri;
    pjsua_acc_add(&acc_cfg, PJ_TRUE, &acc_id );
    pjsua_call_make_call( acc_id, &target_uri, 0, NULL, NULL, &newcallId);
    pjsua_acc_del(acc_id);

It adds a new account, makes the call, and deletes the account afterwards.
Looks like a cheat but it works.

Bernie


2008/10/28 vopjessie <jessievop at hotmail.com>

>  Hi all, I need to make outbounds with a particular caller id that is
> different from my username. Could someone please tell me how to do it?
>
> thanks a lot in advance.
>
> -jessica
>
> ------------------------------
> "七件武器,七种完美" 立刻体验! <http://get.live.cn>
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20081028/cec85045/attachment.html>


More information about the pjsip mailing list