[Freeswitch-users] Caller id number in dialplan

Ivan C Myrvold ivan at myrvold.org
Fri Aug 15 13:58:04 PDT 2008


I am testing out conditions in my dialplan, but am unable to get a  
match on caller_id_number, and I wonder why.

I have to numbers registered from my PAP2, with User ID 100, and 200.

If I have this in my dialplan, I thought I should get a match if I  
call any number from any of these two users:

   <extension name="Outbound_ip24">
     <condition field="destination_number" expression="^(.+)$">
		<condition field="caller_id_number" expression="^(100)$">
			<action application="bridge" data="sofia/$${domain}/ 
140%imyrvold.dyndns.org"/>
		</condition>
		<condition field="caller_id_number" expression="^(140)$">
			<action application="bridge" data="sofia/$${domain}/ 
100%imyrvold.dyndns.org"/>
		</condition>
     </condition>
   </extension>

But FreeSWITCH can not find a route to either of 100 nor 140.

If I remove the inner conditions, and dial any number, my 140  
telephone will ring:

   <extension name="Outbound_ip24">
     <condition field="destination_number" expression="^(.+)$">
			<action application="bridge" data="sofia/$${domain}/ 
140%imyrvold.dyndns.org"/>
     </condition>
   </extension>

Why don't I get a match on caller_id_number?

Ivan




More information about the FreeSWITCH-users mailing list