[Freeswitch-users] Gateway Caller ID Help required
Zohair Raza
engineerzuhairraza at gmail.com
Tue Dec 27 10:09:49 MSK 2011
Hi,
See these links
http://wiki.freeswitch.org/wiki/Dialplan_XML#Example_10:_Route_to_a_gateway_extension_with_custom_caller_id
http://wiki.freeswitch.org/wiki/Dialplan_XML#Example_18:_Add_international_call_prefix_to_effective_caller_id_number_on_incoming_BRI_calls
http://wiki.freeswitch.org/wiki/Dialplan_XML#Example_20:_Fix_invalid_caller_ID
<extension name="asterlink.com">
<condition field="caller_id_number" expression="^1000$"/>
<condition field="destination_number" expression="^(\d{10})$">
<action application="set"
data="effective_caller_id_number=8001231234"/>
<action application="set" data="effective_caller_id_name=800 Number"/>
<action application="bridge"
data="sofia/gateway/asterlink.com/1208$1"/>
</condition>
</extension>
Your debug message doesn't show caller id, so what I've understood is, you
need to make a check for 10 digit caller id, so that could be, and leave
caller id as it is
<condition field="caller_id_number" expression="^(\d{10})$"/>
similarly you can make other checks as per your requirements.
Regards,
Zohair Raza
On Tue, Dec 27, 2011 at 5:59 AM, Sherif Omran <sherifomran2000 at yahoo.com>wrote:
> Hi Zohair,
>
> I made it differently, each gateway forwards to an extension and in the
> dial plan i control the incoming caller id. I think, this may not be
> correct because of using 2 numbers instead of only 1 external number that
> is connected to the same extension.
> If you have an idea, i would appreciate.
>
> Regarding the german gateway, I can not add 0049 because i am calling it
> from my swiss number and the number is transmitted correctly, however what
> i see is 10 digits only. see the following output:
>
> 2011-12-27 01:53:32.275392 [DEBUG] switch_core_state_machine.c:362
> (sofia/sipinterface_1/+41793940965 at bluesip.net) Running State Change
> CS_REPORTING
> 2011-12-27 01:53:32.275392 [DEBUG] switch_core_state_machine.c:662
> (sofia/sipinterface_1/+41793940965 at bluesip.net) State REPORTING
> 2011-12-27 01:53:32.275392 [DEBUG] switch_core_state_machine.c:362
> (sofia/sipinterface_1/sip:1000 at 88.64.50.28:61000) Running State Change
> CS_HANGUP
>
> kind regards,
> Sherif
>
> --- On *Tue, 12/27/11, Sherif Omran <sherifomran2000 at yahoo.com>* wrote:
>
>
> From: Sherif Omran <sherifomran2000 at yahoo.com>
>
> Subject: Re: [Freeswitch-users] Gateway Caller ID Help required
> To: "FreeSWITCH Users Help" <freeswitch-users at lists.freeswitch.org>
> Date: Tuesday, December 27, 2011, 3:14 AM
>
>
> Hi Zohair,
>
> I found it
>
> <action application="set"
> data="effective_caller_id_number=001${caller_id_number}"/>
>
> but i have 2 gateways, this works with the usa gateway. However, I need to
> put a condition in the dialplan
>
> if it comes from german gateway, add 0049
> if it comes from usa gateway, add 001
>
> I don't know the variable name of the gateway
>
> best regards and many thanks
>
> Sherif
>
>
> --- On *Mon, 12/26/11, Zohair Raza <engineerzuhairraza at gmail.com>* wrote:
>
>
> From: Zohair Raza <engineerzuhairraza at gmail.com>
> Subject: Re: [Freeswitch-users] Gateway Caller ID Help required
> To: "FreeSWITCH Users Help" <freeswitch-users at lists.freeswitch.org>
> Date: Monday, December 26, 2011, 3:02 PM
>
> Hi,
> use effective_caller_id variable in dialplan to append +
>
> Regards,
> Zohair Raza
>
>
>
>
> On Mon, Dec 26, 2011 at 4:58 PM, Sherif Omran <sherifomran2000 at yahoo.com>wrote:
>
> Hi
>
> I have setup an IPkall gateway, so that any call to my number in USA be
> connected to my extension. However, the caller ID that appear is 10 digits
> and i want it to show +1 stating for usa.
>
> In the mean time, I have another german gateway, the number is transmitted
> fully including the country code, but it appears on my phone in the form of
> last 10 digits only.
>
> any help is appreciated
>
> thank you in advance
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
>
> -----Inline Attachment Follows-----
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
> -----Inline Attachment Follows-----
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org <http://mc/compose?to=consulting@freeswitch.org>
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org<http://mc/compose?to=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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20111227/bad33aac/attachment-0001.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list