[Freeswitch-users] Park with Pre Answer

Frank Carmickle frank at carmickle.com
Sat Dec 19 12:19:43 PST 2009


Good afternoon

By default the internal profile is looking to have authed calls.  If you want you can set an acl.  Look at autoload_configs/acl.conf.xml.  

Also remember to set the context in the profile so that the dialplan for that context will be parsed.  If you decide to register to it you can set the context in the directory entry for that user.

Let us know how you do.
--FC


On Sat, Dec 19, Ron McLeod wrote:
> This is what I am doing .
> 
>  
> 
> DIALPLAN
> 
> <?xml version="1.0" encoding="utf-8"?>
> 
> <include>
> 
>   <context name="mytest">
> 
>     <extension name="mytest">
> 
>       <condition field="destination_number" expression="^.*$">
> 
>         <action application="park"/>
> 
>       </condition>
> 
>     </extension>
> 
>   </context>
> 
> </include>
> 
>  
> 
>  
> 
> NETWORK TRACE
> 
>   0.000000 192.168.100.140 -> 192.168.100.132 SIP/SDP Request: INVITE
> sip:6042772011 at 192.168.100.132:5090, with session description
> 
>   0.000749 192.168.100.132 -> 192.168.100.140 SIP Status: 100 Trying
> 
>   0.053820 192.168.100.132 -> 192.168.100.140 SIP Status: 407 Proxy
> Authentication Required
> 
>   0.185859 192.168.100.140 -> 192.168.100.132 SIP Request: ACK
> sip:6042772011 at 192.168.100.132:5090
> 
>   0.247509 192.168.100.140 -> 192.168.100.132 SIP/SDP Request: INVITE
> sip:6042772011 at 192.168.100.132:5090, with session description
> 
>   0.248226 192.168.100.132 -> 192.168.100.140 SIP Status: 100 Trying
> 
>   0.259591 192.168.100.132 -> 192.168.100.140 SIP/SDP Status: 183 Session
> Progress, with session description
> 
>  
> 
>  
> 
> CONSOLE
> 
> 2009-12-19 10:47:59.556850 [DEBUG] sofia.c:4628 IP 192.168.100.140 Rejected
> by acl "domains". Falling back to Digest auth.
> 
> 2009-12-19 10:47:59.804984 [DEBUG] sofia.c:4628 IP 192.168.100.140 Rejected
> by acl "domains". Falling back to Digest auth.
> 
> 2009-12-19 10:47:59.804984 [NOTICE] switch_channel.c:602 New Channel
> sofia/internal/695 at 192.168.100.132:5060
> [07a14700-eccf-11de-8080-6fed700309ce]
> 
> 2009-12-19 10:47:59.804984 [DEBUG] switch_core_state_machine.c:398
> (sofia/internal/695 at 192.168.100.132:5060) Running State Change CS_NEW
> 
> 2009-12-19 10:47:59.804984 [DEBUG] sofia.c:3289 Channel
> sofia/internal/695 at 192.168.100.132:5060 entering state [received][100]
> 
> 2009-12-19 10:47:59.804984 [DEBUG] sofia.c:3296 Remote SDP:
> 
> v=0
> 
> o=695 123456 654323 IN IP4 192.168.100.140
> 
> s=none
> 
> c=IN IP4 192.168.100.140
> 
> t=0 0
> 
> m=audio 10900 RTP/AVP 0 8 18 2 101
> 
> a=rtpmap:0 PCMU/8000
> 
> a=rtpmap:8 PCMA/8000
> 
> a=rtpmap:18 G729A/8000
> 
> a=fmtp:18 annexb=no
> 
> a=rtpmap:2 G726-32/8000
> 
> a=rtpmap:101 telephone-event/8000
> 
> a=fmtp:101 0-15
> 
> a=ptime:20
> 
>  
> 
> 2009-12-19 10:47:59.804984 [DEBUG] switch_core_state_machine.c:404
> (sofia/internal/695 at 192.168.100.132:5060) State NEW
> 
> 2009-12-19 10:47:59.804984 [DEBUG] sofia_glue.c:3071 Audio Codec Compare
> [PCMU:0:8000:20]/[G7221:115:32000:20]
> 
> 2009-12-19 10:47:59.804984 [DEBUG] sofia_glue.c:3071 Audio Codec Compare
> [PCMU:0:8000:20]/[G7221:107:16000:20]
> 
> 2009-12-19 10:47:59.804984 [DEBUG] sofia_glue.c:3071 Audio Codec Compare
> [PCMU:0:8000:20]/[G722:9:8000:20]
> 
> 2009-12-19 10:47:59.804984 [DEBUG] sofia_glue.c:3071 Audio Codec Compare
> [PCMU:0:8000:20]/[PCMU:0:8000:20]
> 
> 2009-12-19 10:47:59.804984 [DEBUG] sofia_glue.c:2029 Set Codec
> sofia/internal/695 at 192.168.100.132:5060 PCMU/8000 20 ms 160 samples
> 
> 2009-12-19 10:47:59.804984 [DEBUG] sofia_glue.c:3031 Set 2833 dtmf payload
> to 101
> 
> 2009-12-19 10:47:59.804984 [DEBUG] sofia.c:3455
> (sofia/internal/695 at 192.168.100.132:5060) State Change CS_NEW -> CS_INIT
> 
> 2009-12-19 10:47:59.804984 [DEBUG] switch_core_session.c:932 Send signal
> sofia/internal/695 at 192.168.100.132:5060 [BREAK]
> 
> 2009-12-19 10:47:59.812026 [DEBUG] switch_core_state_machine.c:398
> (sofia/internal/695 at 192.168.100.132:5060) Running State Change CS_INIT
> 
> 2009-12-19 10:47:59.812026 [DEBUG] switch_core_state_machine.c:481
> (sofia/internal/695 at 192.168.100.132:5060) State INIT
> 
> 2009-12-19 10:47:59.812026 [DEBUG] mod_sofia.c:83
> sofia/internal/695 at 192.168.100.132:5060 SOFIA INIT
> 
> 2009-12-19 10:47:59.812026 [DEBUG] mod_sofia.c:111
> (sofia/internal/695 at 192.168.100.132:5060) State Change CS_INIT -> CS_ROUTING
> 
> 2009-12-19 10:47:59.812026 [DEBUG] switch_core_session.c:932 Send signal
> sofia/internal/695 at 192.168.100.132:5060 [BREAK]
> 
> 2009-12-19 10:47:59.812026 [DEBUG] switch_core_state_machine.c:481
> (sofia/internal/695 at 192.168.100.132:5060) State INIT going to sleep
> 
> 2009-12-19 10:47:59.812026 [DEBUG] switch_core_state_machine.c:398
> (sofia/internal/695 at 192.168.100.132:5060) Running State Change CS_ROUTING
> 
> 2009-12-19 10:47:59.812026 [DEBUG] switch_core_state_machine.c:484
> (sofia/internal/695 at 192.168.100.132:5060) State ROUTING
> 
> 2009-12-19 10:47:59.812026 [DEBUG] mod_sofia.c:130
> sofia/internal/695 at 192.168.100.132:5060 SOFIA ROUTING
> 
> 2009-12-19 10:47:59.812026 [DEBUG] switch_core_state_machine.c:78
> sofia/internal/695 at 192.168.100.132:5060 Standard ROUTING
> 
> 2009-12-19 10:47:59.812026 [INFO] mod_dialplan_xml.c:315 Processing Phone
> 300->6042772011 in context mytest
> 
> Dialplan: sofia/internal/695 at 192.168.100.132:5060 parsing [mytest->mytest]
> continue=false
> 
> Dialplan: sofia/internal/695 at 192.168.100.132:5060 Regex (PASS) [mytest]
> destination_number(6042772011) =~ /^.*$/ break=on-false
> 
> Dialplan: sofia/internal/695 at 192.168.100.132:5060 Action park()
> 
> 2009-12-19 10:47:59.812026 [DEBUG] switch_core_state_machine.c:114
> (sofia/internal/695 at 192.168.100.132:5060) State Change CS_ROUTING ->
> CS_EXECUTE
> 
> 2009-12-19 10:47:59.812026 [DEBUG] switch_core_session.c:932 Send signal
> sofia/internal/695 at 192.168.100.132:5060 [BREAK]
> 
> 2009-12-19 10:47:59.812026 [DEBUG] switch_core_state_machine.c:484
> (sofia/internal/695 at 192.168.100.132:5060) State ROUTING going to sleep
> 
> 2009-12-19 10:47:59.812026 [DEBUG] switch_core_state_machine.c:398
> (sofia/internal/695 at 192.168.100.132:5060) Running State Change CS_EXECUTE
> 
> 2009-12-19 10:47:59.812026 [DEBUG] switch_core_state_machine.c:491
> (sofia/internal/695 at 192.168.100.132:5060) State EXECUTE
> 
> 2009-12-19 10:47:59.812026 [DEBUG] mod_sofia.c:173
> sofia/internal/695 at 192.168.100.132:5060 SOFIA EXECUTE
> 
> 2009-12-19 10:47:59.812026 [DEBUG] switch_core_state_machine.c:151
> sofia/internal/695 at 192.168.100.132:5060 Standard EXECUTE
> 
> 2009-12-19 10:47:59.812026 [DEBUG] switch_core_session.c:1390 Application
> park Requires media! pre_answering channel
> sofia/internal/695 at 192.168.100.132:5060
> 
> 2009-12-19 10:47:59.812026 [DEBUG] switch_core_session.c:1392
> sofia/internal/695 at 192.168.100.132:5060 receive message [PROGRESS]
> 
> 2009-12-19 10:47:59.812026 [INFO] switch_core_session.c:1392 Sending early
> media
> 
> 2009-12-19 10:47:59.812026 [DEBUG] sofia_glue.c:2263 AUDIO RTP
> [sofia/internal/695 at 192.168.100.132:5060] 192.168.100.132 port 25382 ->
> 192.168.100.140 port 10900 codec: 0 ms: 20
> 
> 2009-12-19 10:47:59.812026 [DEBUG] switch_rtp.c:1138 Starting timer [soft]
> 160 bytes per 20ms
> 
> 2009-12-19 10:47:59.815157 [INFO] mod_sofia.c:1506 Ring SDP:
> 
> v=0
> 
> o=FreeSWITCH 1261223097 1261223098 IN IP4 192.168.100.132
> 
> s=FreeSWITCH
> 
> c=IN IP4 192.168.100.132
> 
> t=0 0
> 
> m=audio 25382 RTP/AVP 0 101
> 
> a=rtpmap:0 PCMU/8000
> 
> a=rtpmap:101 telephone-event/8000
> 
> a=fmtp:101 0-16
> 
> a=silenceSupp:off - - - -
> 
> a=ptime:20
> 
> a=sendrecv
> 
>  
> 
> 2009-12-19 10:47:59.815157 [NOTICE] mod_sofia.c:1509 Pre-Answer
> sofia/internal/695 at 192.168.100.132:5060!
> 
> 2009-12-19 10:47:59.815157 [DEBUG] switch_core_session.c:630 Send signal
> sofia/internal/695 at 192.168.100.132:5060 [BREAK]
> 
> EXECUTE sofia/internal/695 at 192.168.100.132:5060 park()
> 
> 2009-12-19 10:47:59.818818 [DEBUG] sofia.c:3289 Channel
> sofia/internal/695 at 192.168.100.132:5060 entering state [early][183]
> 
>  
> 
>  
> 
>  
> 
>   _____  
> 
> From: freeswitch-users-bounces at lists.freeswitch.org
> [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Anthony
> Minessale
> Sent: Saturday, December 19, 2009 8:27 AM
> To: freeswitch-users at lists.freeswitch.org
> Subject: Re: [Freeswitch-users] Park with Pre Answer
> 
>  
> 
> how are you parking it?
> do you have a debug log showing it happen?
> 
> 
> 
> On Fri, Dec 18, 2009 at 11:42 PM, Ron McLeod <ron.freeswitch at mcleodnet.com>
> wrote:
> 
> Is there any way to park a channel without causing pre-answer (resulting is
> a SIP 183 Session Progress)?
> 
>  
> 
> Thanks,
> 
> Ron
> 
> 
> _______________________________________________
> 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
> 
> 
> 
> 
> -- 
> Anthony Minessale II
> 
> FreeSWITCH http://www.freeswitch.org/
> ClueCon http://www.cluecon.com/
> Twitter: http://twitter.com/FreeSWITCH_wire
> 
> AIM: anthm
> MSN:anthony_minessale at hotmail.com
> <mailto:MSN%3Aanthony_minessale at hotmail.com> 
> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
> <mailto:PAYPAL%3Aanthony.minessale at gmail.com> 
> IRC: irc.freenode.net #freeswitch
> 
> FreeSWITCH Developer Conference
> sip:888 at conference.freeswitch.org
> <mailto:sip%3A888 at conference.freeswitch.org> 
> iax:guest at conference.freeswitch.org/888
> googletalk:conf+888 at conference.freeswitch.org
> <mailto:googletalk%3Aconf%2B888 at conference.freeswitch.org> 
> pstn:+19193869900
> 

> _______________________________________________
> 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





More information about the FreeSWITCH-users mailing list