Re: change (spoof) originator phone number in outgoing call using pjsip/pjsua

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

 



@Andeas, @Somedick

I managed to compile PJSIP with the changes Andreas sent
However, I must admit defeat in understanding how to set the new variables
set_from_display_name, from_display_name and from_user

I am using the demo program "simple_pjsua.c" as a base.

Could you enlighten me on how to set the outging from number.


Met Vriendelijke Groet, Regards,

Rob Muller
mailto:r.b.muller@xxxxxxxxx

-----Original Message-----
From: pjsip On Behalf Of Andreas Wehrmann
Sent: Tuesday, July 28, 2020 07:36
To: pjsip@xxxxxxxxxxxxxxx
Subject: Re:  change (spoof) originator phone number in outgoing call using pjsip/pjsua

On 27.07.20 19:08, Andreas Wehrmann wrote:
> Am 27.07.2020 um 16:53 schrieb r.b.muller@xxxxxxxxx:
>>
>> @ Some Dick
>>
>> Thanks for taking the time to reply.
>>
>> If this is done at registration, I assume this is where the magic 
>> should happen, in the account configuration
>>
>> https://www.pjsip.org/pjsip/docs/html/structpjsua__acc__config.htm#a0
>> 8473de6401e966d23f34d3a9a05bdd0 
>> <https://www.pjsip.org/pjsip/docs/html/structpjsua__acc__config.htm#a
>> 08473de6401e966d23f34d3a9a05bdd0>
>>
>>
>> I am unclear as what element of the account struct to set to the 
>> outgoing spoofed number.
>>
>> Can you guide me?
>>
>> Met Vriendelijke Groet, Regards,
>>
>> Rob Muller
>>
>> mailto:r.b.muller@xxxxxxxxx
>>
> I actually implemented setting a custom "From" user and display name 
> for pjsua_call_make_call(); however, I had to patch PJ for this.
> Not sure right now if I've pushed this to my public repo, I'll check 
> tomorrow.
> If not, I'll just post the changes here on the mailing list.
>
> Best regards,
>
> Andreas

Okay, not in my repo.
I modified pjsua_call_make_call() and the pjsua_call_setting struct in pjsua.h.
See the attachement for my versions.

All the best,
Andreas



_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org



[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