On 28/07/2020 21:12, r.b.muller@gmail.com wrote:
@Andreas
Thank you for your help, again.
I have implemented your code, but whatever I do, the caller does not show up on my mobile with the spoofed number
I did monitor the sip exchange with the provider with wireshark, and could not see any mention of the spoofed number or name
The only thing I can think of is that I implemented your initial advice wrong. The simplepj zip file is my working code with the sip user/pass stripped.
To rebuild pjsua I did:
I changed pjproject/pjsip/include/pjsua-lib/pjsua.h line 855-913 to match your advice. I attach the file
I changed PJProject\pjsip\src\pjsua-lib/ pjsua_call.c replacing the pjsua_call_make_call with your code at lines 783-1052, file attached
Then did a make clean, make and sudo make install
I hope you can help.
Can you see where I failed?
Met Vriendelijke Groet, Regards,
Rob Muller
mailto:r.b.muller@gmail.com
-----Original Message-----
From: pjsip On Behalf Of Andreas Wehrmann
Sent: Tuesday, July 28, 2020 18:00
To: pjsip@lists.pjsip.org
Subject: Re: [pjsip] change (spoof) originator phone number in outgoing call using pjsip/pjsua
On 28.07.20 17:52, r.b.muller@gmail.com wrote:
@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@gmail.com
Hey,
looking at your patched code, you missed the modified call to
pjsip_dlg_create_uac():
status = pjsip_dlg_create_uac( pjsip_ua_instance(),
&from_header_str, &contact,
dest_uri,
(msg_data && msg_data->target_uri.slen?
&msg_data->target_uri: dest_uri),
&dlg);
All the best,
Andreas
@Andreas
Thank you, that was the part I missed.
Unfortunately, it is all for nothing.
The new code works, as long as I do not spoof the number everything works ok.
If I spoof the number, the outgoing invite shows the spoofed number, but the provider
returns 403 - Forbidden.
I believe the provider detects and prevents spoofing.
I tried with a different provider (free linphone.org account), and that returned a different error
407 - proxy authentication required.
Unless you have some idea's, I will throw in the towel
Anyway, much obliged for your help.
Met Vriendelijke Groet, Regards,
Rob Muller
mailto:r.b.muller@gmail.com
-----Original Message-----
From: pjsip On Behalf Of Andreas Wehrmann
Sent: Tuesday, July 28, 2020 21:49
To: pjsip@lists.pjsip.org
Subject: Re: [pjsip] change (spoof) originator phone number in outgoing call using pjsip/pjsua
On 28/07/2020 21:12, r.b.muller@gmail.com wrote:
@Andreas
Thank you for your help, again.
I have implemented your code, but whatever I do, the caller does not
show up on my mobile with the spoofed number
I did monitor the sip exchange with the provider with wireshark, and
could not see any mention of the spoofed number or name The only thing I can think of is that I implemented your initial advice wrong. The simplepj zip file is my working code with the sip user/pass stripped.
To rebuild pjsua I did:
I changed pjproject/pjsip/include/pjsua-lib/pjsua.h line 855-913 to
match your advice. I attach the file I changed
PJProject\pjsip\src\pjsua-lib/ pjsua_call.c replacing the
pjsua_call_make_call with your code at lines 783-1052, file attached
Then did a make clean, make and sudo make install
I hope you can help.
Can you see where I failed?
Met Vriendelijke Groet, Regards,
Rob Muller
mailto:r.b.muller@gmail.com
-----Original Message-----
From: pjsip On Behalf Of Andreas Wehrmann
Sent: Tuesday, July 28, 2020 18:00
To: pjsip@lists.pjsip.org
Subject: Re: [pjsip] change (spoof) originator phone number in
outgoing call using pjsip/pjsua
On 28.07.20 17:52, r.b.muller@gmail.com wrote:
@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@gmail.com
Hey,
looking at your patched code, you missed the modified call to
pjsip_dlg_create_uac():
status = pjsip_dlg_create_uac( pjsip_ua_instance(),
&from_header_str, &contact,
dest_uri,
(msg_data && msg_data->target_uri.slen?
&msg_data->target_uri: dest_uri),
&dlg);
All the best,
Andreas
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
On 7/29/20 12:11, r.b.muller@gmail.com wrote:
@Andreas
Thank you, that was the part I missed.
Unfortunately, it is all for nothing.
The new code works, as long as I do not spoof the number everything works ok.
If I spoof the number, the outgoing invite shows the spoofed number, but the provider
returns 403 - Forbidden.
I believe the provider detects and prevents spoofing.
I tried with a different provider (free linphone.org account), and that returned a different error
407 - proxy authentication required.
Unless you have some idea's, I will throw in the towel
Anyway, much obliged for your help.
Met Vriendelijke Groet, Regards,
Rob Muller
mailto:r.b.muller@gmail.com
Well, it depends on what level you're working on.
I did tests at a testcenter from Deutsche Telekom in Germany and there I
was able to set any number I'd like.
However, we didn't connect as classical "end users" and it was made
clear to us
that sending numbers that are not your own is actually against the law.
So you might want to check with your provider to see what you're
actually allowed to do and what is possible.
All the best,
Andreas