Hello Guys, When I create a GW it MUST have a username and password in the sofia config, so i set a generic one like "123" Problem is, i need to send out in the FROM the callerid of the actual caller... I've tried setting (lua) on the outgoing call: session:execute("set","sip_from_user=" .. caller_id .. "") session:execute("set","sip_auth_username=" .. caller_id .. "") session:execute("set","sip_req_user=" .. caller_id .. "") But still the only thing that is correctly set is: Remote-Party-ID: "David" <sip:8889990@1.2.3.4:5060
;party=calling;screen=yes;privacy=off [Expert Info (Note/Undecoded): Unrecognised SIP header (Remote-Party-ID)] [Message: Unrecognised SIP header (Remote-Party-ID)] [Severity level: Note] [Group: Undecoded]
From: "David" <sip:123@1.2.3.4:5060;transport=udp>;tag=jtr1yQHFUUp3H SIP Display info: "David" SIP from address: sip:123@1.2.3.4:5060 SIP from address User Part: 123 SIP from address Host Part: 1.2.3.4 SIP from address Host Port: 5060 SIP tag: jtr1yQHFUUp3H I would need to set the FROM correctly... Any thoughts? Thanks David
On 19/11/11 03:12, David Villasmil wrote:
When I create a GW it MUST have a username and password in the sofia config, so i set a generic one like "123"
Problem is, i need to send out in the FROM the callerid of the actual caller...
Try effective_caller_id_number: http://wiki.freeswitch.org/wiki/Channel_Variables#effective_caller_id_number Regards,
Thanks for your reply Paul, That didn't do it though... From: "David" <sip:123@1.2.3.4:5060;transport=udp>;tag=1Brrjt9Hev49c SIP Display info: "David" SIP from address: sip:123@1.2.3.4:5060 SIP from address User Part: 123 SIP from address Host Part: 1.2.3.4 SIP from address Host Port: 5060 SIP tag: 1Brrjt9Hev49c David On Sat, Nov 19, 2011 at 11:04 AM, Paul Cupis <paul@cupis.co.uk> wrote:
On 19/11/11 03:12, David Villasmil wrote:
When I create a GW it MUST have a username and password in the sofia config, so i set a generic one like "123"
Problem is, i need to send out in the FROM the callerid of the actual caller...
Try effective_caller_id_number:
http://wiki.freeswitch.org/wiki/Channel_Variables#effective_caller_id_number
Regards,
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Hello Paul, The gw is the following: <gateway name="GW1"> <param name="realm" value="1.2.3.4:5060"/> <param name="username" value="123"/> <param name="password" value="123"/> <param name="register" value="false"/> <param name="retry-seconds" value="30"/> </gateway> Thanks again for your help David On Sat, Nov 19, 2011 at 5:07 PM, Paul Cupis <paul@cupis.co.uk> wrote:
On 19/11/11 14:26, David Villasmil wrote:
Thanks for your reply Paul,
That didn't do it though...
Do you have caller-id-in-from set in the gateway?
Can you provide the gateway configuration and the relevant dialplan XML?
Regards,
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
On 19/11/11 17:48, David Villasmil wrote:
The gw is the following: <gateway name="GW1"> <param name="realm" value="1.2.3.4:5060"/> <param name="username" value="123"/> <param name="password" value="123"/> <param name="register" value="false"/> <param name="retry-seconds" value="30"/> </gateway> Thanks again for your help
You are missing: <param name="caller-id-in-from" value="true"/> Try adding that, restarting the sofia profile (or freeswitch) and re-testing. Regards,
Perfect, thanks! On Sat, Nov 19, 2011 at 9:50 PM, Paul Cupis <paul@cupis.co.uk> wrote:
On 19/11/11 17:48, David Villasmil wrote:
The gw is the following: <gateway name="GW1"> <param name="realm" value="1.2.3.4:5060 "/> <param name="username" value="123"/> <param name="password" value="123"/> <param name="register" value="false"/> <param name="retry-seconds" value="30"/> </gateway> Thanks again for your help
You are missing:
<param name="caller-id-in-from" value="true"/>
Try adding that, restarting the sofia profile (or freeswitch) and re-testing.
Regards,
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (2)
-
David Villasmil
-
Paul Cupis