[Freeswitch-users] get numbers for dialthrough
Dominik 'friibii' Friberg
dominik at friibii.ch
Sun Jan 27 23:48:11 PST 2008
>> hi all,
>>
>> i'm newbee on freeswitch, just moved from asterisk to it..
>>
>> i like to rewrite my "call-trhough" - but i don't have a clue how to
>> "ask for the number to dial".. any help?
>
> Could you give us a snippet of an Asterisk dialplan that does what
> you're asking? I just want to make sure I understand what you are
> trying to accomplish.
of course..
that's the asterisk-ext:
[default]
include => lokal
[lokal]
exten => 0102,1,Goto(got-in,0442111000,1)
....
[got-in]
exten => 0442111000,1,TrySystem(echo `date` ${EXTEN} ${CALLERIDNUM}
${CALLERID} ${DIALDPEERNUMBER} >> /opt/share/www/call.txt)
exten => 0442111000,2,GotoIf($[${CALLERIDNUM} = NumerWhoIsAllowedOne]?10:20)
exten => 0442111000,10,Goto(lesen,s,1)
exten => 0442111000,20,GotoIf($[${CALLERIDNUM} =
NumerWhoIsAllowedTwo]?10:30)
exten => 0442111000,30,GotoIf($[${CALLERIDNUM} =
NumerWhoIsAllowedThree]?10:40)
exten => 0442111000,40,GotoIf($[${CALLERIDNUM} =
NumerWhoIsAllowedFour]?10:50)
[lesen]
exten => s,1,Set(NR=)
exten => s,2,TrySystem(echo `date` ${CALLERIDNUM} START >>
/opt/share/www/Durchwahl.txt)
exten => s,3,Background(welcome-sound)
exten => s,4,ResponseTimeout(10)
exten => s,5,WaitExten
exten => _X,1,Set(NR=${NR}${EXTEN})
exten => _X,2,TrySystem(echo `date` ${CALLERIDNUM} ${EXTEN} >>
/opt/share/www/Durchwahl.txt)
exten => _X,3,Goto(s,3)
exten => *,1,Goto(s,1)
exten => #,1,TrySystem(echo `date` ${CALLERIDNUM} STERN >>
/opt/share/www/Durchwahl.txt)
exten => #,2,Dial(SIP/${NR}@0442111000,30,H|g)
exten => #,3,GotoIf($[${DIALSTATUS} = NOANSWER]?5)
exten => #,4,GotoIf($[${DIALSTATUS} = CONGESTION]?5:6)
exten => #,5,Playback(vm-nobodyavail)
exten => #,6,Goto(s,1)
exten => #,102,Playback(tt-allbusy)
exten => t,1,Playback(vm-goodbye)
exten => t,2,HangUp
well, and i startet with the "authentication by 'allowed number'" on
FreeSWITCH: (dialplan/default.xml)
<extension name="dialtrough">
<condition field="destination_number" expression="^4199442005279$"/>
<condition field="${caller_id_number}"
expression="^NumerWhoIsAllowedOne$">
<action application="bridge" data="sofia/gateway/sipcall/NumberToDial"/>
</condition>
</extension>
but now, the biggest problem is how to "listen" to the number i send..
>
> -MC
>
> P.S. - Welcome to FreeSWITCH! It is a cool place to be.
thanks.. ;-)
More information about the FreeSWITCH-users
mailing list