[Freeswitch-users] callee id inbound
Erwan Hermouet
ehermouet at bluetel.fr
Thu Mar 28 21:46:36 MSK 2013
Sorry im new on freeswitch and i dont understand all things J
Here the schema of my call
My mobile phone number <anonymous> call xxxxxx3278-----à VOIP provider
forward to my fs----> ip 87.1.1.1 is my freeswitch serveur - inbound rule
redirect to extension 12345 ------à Other ipbx ip 82.165.2.2 connected to FS
on extension 12345.
Public xml
<extension name="AB3278" continue="true">
<condition field="context" expression="public" />
<condition field="destination_number" expression="^xxxxxx3278$" >
<action application="set" data="dialed_ext=xxxxxx3278"/>
<action application="set" data="effective_callee_id_name=xxxxxx3278"
/>
<action application="export"
data="effective_callee_id_number=xxxxxx3278" />
<action application="transfer" data="12345 XML default" />
</condition>
</extension>
<extension name="VIVA.10d" > //my voip provider
<condition field="destination_number" expression="^(\d{10})$" >
<action application="set" data="dialed_ext=$1"/>
<action application="set" data="sip_h_X-accountcode=$${accountcode}"
/>
<action application="set" data="sip_h_X-Tag=" />
<action application="set" data="call_direction=outbound" />
<action application="set" data="hangup_after_bridge=true" />
<action application="set"
data="effective_caller_id_name=$${outbound_caller_id_name}" />
<action application="set"
data="effective_caller_id_number=$${outbound_caller_id_number}" />
<action application="set" data="inherit_codec=true" />
<action application="bridge" data="sofia/gateway/VIVA/$1" />
</condition>
</extension>
On my other ipbx i receive this
To: <sip:12345 at 82.165.2.2:5060;rinstance=98f9fe5f934b9370>;tag=d41a4c19
But it must be like this
To: <sip:xxxxxx2378 at 82.165.2.2:5060;rinstance=98f9fe5f934b9370>;tag=d41a4c19
I hope its clear J
De : freeswitch-users-bounces at lists.freeswitch.org
[mailto:freeswitch-users-bounces at lists.freeswitch.org] De la part de Steven
Schoch
Envoyé : jeudi 28 mars 2013 19:27
À : FreeSWITCH Users Help
Objet : Re: [Freeswitch-users] callee id inbound
On Thu, Mar 28, 2013 at 10:33 AM, Erwan Hermouet <ehermouet at bluetel.fr>
wrote:
Sorry i cant connect here
What do you mean, you can't connect?
Caller is xxxxx1544 anonymous
Call to xxxxxx3278
How do you call xxxxxx3278? Is it through the PSTN? If so, what gateway
are you using and how is it routing the call to FS? How does xxxxxx3278 get
mapped to 12345? (This is usually done in dialplan/public/*.xml.) You
really need to learn how to use http://pastebin.freeswitch.org/.
--
Steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130328/b0428fea/attachment-0001.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list