[Freeswitch-users] IP infomation in SDP
Jimmy Chang
chang33.tw at gmail.com
Wed Apr 24 16:14:56 MSD 2013
Hi,
1) Yes.
2) The extensions are the default 1000 ~ 1019 and here is the log of
public and default dialplan
Thanks in advance.
-- context public(5080)
2013-04-24 18:20:27.697980 [INFO] mod_dialplan_xml.c:557 Processing
38484C2370DD <38484C2370DD>->1016 in context *public*
Dialplan: sofia/external/38484C2370DD at 127.0.0.1 parsing [public->unloop]
continue=false
Dialplan: sofia/external/38484C2370DD at 127.0.0.1 Regex (PASS) [unloop]
${unroll_loops}(true) =~ /^true$/ break=on-false
Dialplan: sofia/external/38484C2370DD at 127.0.0.1 Regex (FAIL) [unloop]
${sip_looped_call}() =~ /^true$/ break=on-false
Dialplan: sofia/external/38484C2370DD at 127.0.0.1 parsing
[public->outside_call] continue=true
Dialplan: sofia/external/38484C2370DD at 127.0.0.1 Absolute Condition
[outside_call]
Dialplan: sofia/external/38484C2370DD at 127.0.0.1 Action
set(outside_call=true)
Dialplan: sofia/external/38484C2370DD at 127.0.0.1 Action
export(RFC2822_DATE=${strftime(%a, %d %b %Y %T %z)})
Dialplan: sofia/external/38484C2370DD at 127.0.0.1 parsing
[public->call_debug] continue=true
Dialplan: sofia/external/38484C2370DD at 127.0.0.1 Regex (FAIL)
[call_debug] ${call_debug}(false) =~ /^true$/ break=never
Dialplan: sofia/external/38484C2370DD at 127.0.0.1 parsing
[public->public_extensions] continue=false
Dialplan: sofia/external/38484C2370DD at 127.0.0.1 Regex (PASS)
[public_extensions] destination_number(1016) =~ /^(10[01][0-9])$/
break=on-false
Dialplan: sofia/external/38484C2370DD at 127.0.0.1 Action log(INFO external
check)
Dialplan: sofia/external/38484C2370DD at 127.0.0.1 Action transfer(1016 XML
default)
-- context default(5060)
2013-04-24 18:23:49.937791 [INFO] mod_dialplan_xml.c:557 Processing
38484C2370DD <38484C2370DD>->1016 in context *default*
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 parsing
[default->unloop] continue=false
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 Regex (PASS) [unloop]
${unroll_loops}(true) =~ /^true$/ break=on-false
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 Regex (FAIL) [unloop]
${sip_looped_call}() =~ /^true$/ break=on-false
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 parsing
[default->tod_example] continue=true
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 Date/Time Match (PASS)
[tod_example] break=on-false
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 Action set(open=true)
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 parsing
[default->holiday_example] continue=true
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 Date/TimeMatch (FAIL)
[holiday_example] break=on-false
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 parsing
[default->global-intercept] continue=false
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 Regex (FAIL)
[global-intercept] destination_number(1016) =~ /^886$/ break=on-false
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 parsing
[default->group-intercept] continue=false
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 Regex (FAIL)
[group-intercept] destination_number(1016) =~ /^\*8$/ break=on-false
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 parsing
[default->intercept-ext] continue=false
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 Regex (FAIL)
[intercept-ext] destination_number(1016) =~ /^\*\*(\d+)$/ break=on-false
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 parsing
[default->redial] continue=false
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 Regex (FAIL) [redial]
destination_number(1016) =~ /^(redial|870)$/ break=on-false
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 parsing
[default->global] continue=true
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 Regex (FAIL) [global]
${call_debug}(false) =~ /^true$/ break=never
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 Regex (FAIL) [global]
${sip_has_crypto}() =~
/^(AES_CM_128_HMAC_SHA1_32|AES_CM_128_HMAC_SHA1_80)$/ break=never
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 Regex (PASS) [global]
${endpoint_disposition}(DELAYED NEGOTIATION) =~ /^(DELAYED NEGOTIATION)/
break=on-false
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 Regex (FAIL) [global]
${switch_r_sdp}(v=0
o=- 3575787829 3575787829 IN IP4 60.245.65.195
s=v
b=AS:294
t=0 0
m=audio 57913 RTP/AVP 18 101
c=IN IP4 60.245.65.195
b=AS:8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
m=video 57916 RTP/AVP 116
c=IN IP4 60.245.65.195
b=AS:256000
a=rtpmap:116 H264/90000
a=fmtp:116 profile-level-id=42800D;packetization-mode=0
) =~ /(AES_CM_128_HMAC_SHA1_32|AES_CM_128_HMAC_SHA1_80)/ break=never
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 Absolute Condition [global]
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 Action
hash(insert/${domain_name}-spymap/${caller_id_number}/${uuid})
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 Action
hash(insert/${domain_name}-last_dial/${caller_id_number}/${destination_number})
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 Action
hash(insert/${domain_name}-last_dial/global/${uuid})
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 Action
export(RFC2822_DATE=${strftime(%a, %d %b %Y %T %z)})
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 parsing
[default->snom-demo-2] continue=false
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 Regex (FAIL)
[snom-demo-2] destination_number(1016) =~ /^9001$/ break=on-false
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 parsing
[default->snom-demo-1] continue=false
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 Regex (FAIL)
[snom-demo-1] destination_number(1016) =~ /^9000$/ break=on-false
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 parsing
[default->eavesdrop] continue=false
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 Regex (FAIL) [eavesdrop]
destination_number(1016) =~ /^88(\d{4})$|^\*0(.*)$/ break=on-false
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 parsing
[default->eavesdrop] continue=false
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 Regex (FAIL) [eavesdrop]
destination_number(1016) =~ /^779$/ break=on-false
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 parsing
[default->call_return] continue=false
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 Regex (FAIL)
[call_return] destination_number(1016) =~ /^\*69$|^869$|^lcr$/
break=on-false
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 parsing
[default->del-group] continue=false
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 Regex (FAIL) [del-group]
destination_number(1016) =~ /^80(\d{2})$/ break=on-false
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 parsing
[default->add-group] continue=false
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 Regex (FAIL) [add-group]
destination_number(1016) =~ /^81(\d{2})$/ break=on-false
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 parsing
[default->call-group-simo] continue=false
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 Regex (FAIL)
[call-group-simo] destination_number(1016) =~ /^82(\d{2})$/ break=on-false
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 parsing
[default->call-group-order] continue=false
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 Regex (FAIL)
[call-group-order] destination_number(1016) =~ /^83(\d{2})$/ break=on-false
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 parsing
[default->extension-intercom] continue=false
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 Regex (FAIL)
[extension-intercom] destination_number(1016) =~ /^8(10[01][0-9])$/
break=on-false
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 parsing
[default->Local_Extension] continue=false
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 Regex (PASS)
[Local_Extension] destination_number(1016) =~ /^(10[01][0-9])$/
break=on-false
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 Action log(INFO internal
check)
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 Action
export(dialed_extension=1016)
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 Action bind_meta_app(1 b
s execute_extension::dx XML features)
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 Action bind_meta_app(2 b
s
record_session::/opt/freeswitch/recordings/${caller_id_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav)
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 Action bind_meta_app(3 b
s execute_extension::cf XML features)
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 Action bind_meta_app(4 b
s execute_extension::att_xfer XML features)
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 Action set(call_timeout=30)
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 Action
set(hangup_after_bridge=true)
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 Action
set(continue_on_fail=true)
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 Action
hash(insert/${domain_name}-call_return/${dialed_extension}/${caller_id_number})
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 Action
hash(insert/${domain_name}-last_dial_ext/${dialed_extension}/${uuid})
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 Action
set(called_party_callgroup=${user_data(${dialed_extension}@${domain_name} var
callgroup)})
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 Action
hash(insert/${domain_name}-last_dial_ext/${called_party_callgroup}/${uuid})
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 Action
hash(insert/${domain_name}-last_dial_ext/global/${uuid})
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 Action
hash(insert/${domain_name}-last_dial/${called_party_callgroup}/${uuid})
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 Action
bridge(user/${dialed_extension}@${domain_name})
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 Action answer()
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 Action sleep(1000)
Dialplan: sofia/internal/38484C2370DD at 127.0.0.1 Action
bridge(loopback/app=voicemail:default ${domain_name} ${dialed_extension})
? 2013/4/24 ?? 07:52, Manish Khilwani ??:
> Hello Jimmy,
>
> Can you let me now below things first.
>
> 1) Are you able to make calls with one extension to another extension?
> 2) if yes then please send me extensions and dialplan
>
> *Thanks
> =====================
> Manish Khilwani
> Skype: manish_khilwani
> Gmail: manish.khilwani at gmail.com <mailto:manish.khilwani at gmail.com>
> MSN : manish.khilwani at hotmail.com <mailto:manish.khilwani at hotmail.com>
> Phone : 919099923079*
>
>
> On Wed, Apr 24, 2013 at 5:09 PM, Jimmy Chang <chang33.tw at gmail.com
> <mailto:chang33.tw at gmail.com>> wrote:
>
> Hi,
>
> I have set these params.
> It seems that the profile of internal and external are all the
> same as before and still no audio in port 5080.
> Here are the profiles.
>
> freeswitch at internal> sofia status profile internal
> =================================================================================================
> Name internal
> Domain Name N/A
> Auto-NAT false
> DBName sofia_reg_internal
> Pres Hosts 10.0.110.33,10.0.110.33
> Dialplan XML
> Context public
> Challenge Realm auto_from
> RTP-IP 10.0.110.33
> Ext-RTP-IP 59.120.xx.xx
> SIP-IP 10.0.110.33
> URL sip:mod_sofia at 10.0.110.33:5060
> BIND-URL sip:mod_sofia at 10.0.110.33:5060
> HOLD-MUSIC local_stream://moh
> OUTBOUND-PROXY N/A
> CODECS IN G729,H264
> CODECS OUT G729,H264
> TEL-EVENT 101
> DTMF-MODE rfc2833
> CNG 13
> SESSION-TO 0
> MAX-DIALOG 0
> NOMEDIA false
> LATE-NEG true
> PROXY-MEDIA false
> ZRTP-PASSTHRU true
> AGGRESSIVENAT false
> STUN-ENABLED true
> STUN-AUTO-DISABLE false
> CALLS-IN 0
> FAILED-CALLS-IN 0
> CALLS-OUT 0
> FAILED-CALLS-OUT 0
> REGISTRATIONS 0
>
>
> freeswitch at internal> sofia status profile external
> =================================================================================================
> Name external
> Domain Name N/A
> Auto-NAT false
> DBName sofia_reg_external
> Pres Hosts
> Dialplan XML
> Context public
> Challenge Realm auto_to
> RTP-IP 10.0.110.33
> Ext-RTP-IP 59.120.xx.xx
> SIP-IP 10.0.110.33
> Ext-SIP-IP 59.120.xx.xx
> URL sip:mod_sofia at 59.120.xx.xx:5080
> BIND-URL sip:mod_sofia at 59.120.xx.xx:5080;maddr=10.0.110.33
> HOLD-MUSIC local_stream://moh
> OUTBOUND-PROXY N/A
> CODECS IN G729,H264
> CODECS OUT G729,H264
> TEL-EVENT 101
> DTMF-MODE rfc2833
> CNG 13
> SESSION-TO 0
> MAX-DIALOG 0
> NOMEDIA false
> LATE-NEG true
> PROXY-MEDIA false
> ZRTP-PASSTHRU true
> AGGRESSIVENAT false
> STUN-ENABLED true
> STUN-AUTO-DISABLE false
> CALLS-IN 0
> FAILED-CALLS-IN 0
> CALLS-OUT 0
> FAILED-CALLS-OUT 0
> REGISTRATIONS 0
>
>
> Any advice?
>
> Thanks.
> Jimmy
>
>
> ? 2013/4/24 ?? 07:08, pratham2013 ??:
>> Hello Jimmy,
>>
>> Put the bind-server-ip to auto and set your public ip to
>> ext-rtp-ip and ext-sip-ip in vars.xml file. Hope it will work.
>>
>> *
>> Thanks
>> =====================
>> Manish Khilwani
>> Skype: manish_khilwani
>> Gmail: [hidden email]
>> <http://user/SendEmail.jtp?type=node&node=7590072&i=0>
>> MSN : [hidden email]
>> <http://user/SendEmail.jtp?type=node&node=7590072&i=1>
>> Phone : 919099923079*
>>
>>
>> On Wed, Apr 24, 2013 at 4:29 PM, Jimmy Chang [via
>> freeswitch-users] <[hidden email]
>> <http://user/SendEmail.jtp?type=node&node=7590072&i=2>> wrote:
>>
>> Hi,
>>
>> In the default configuration, the internal profile listen
>> port 5060 and external profile listen port 5080.
>> And follow the setting in
>> http://wiki.freeswitch.org/wiki/NAT_Traversal
>> vars.xml
>> <X-PRE-PROCESS cmd="set" data="bind_server_ip=59.120.xx.xx"/>
>> <X-PRE-PROCESS cmd="set"
>> data="external_sip_ip=stun:stun.freeswitch.org
>> <http://stun.freeswitch.org>"/>
>> <X-PRE-PROCESS cmd="set"
>> data="external_rtp_ip=stun:stun.freeswitch.org
>> <http://stun.freeswitch.org>"/>
>>
>> internal.xml
>> <param name="ext-rtp-ip" value="$${external_rtp_ip}"/>
>>
>> external.xml
>> <param name="ext-sip-ip" value="$${external_sip_ip}"/>
>> <param name="ext-rtp-ip" value="$${external_rtp_ip}"/>
>>
>>
>> When user make a SIP call from public network using external
>> profile(5080), he encountered no audio.
>> Here is the SDP of 200 OK from FS to user.
>> /v=0//
>> //o=FreeSWITCH 1366781127 1366781128 IN IP4 10.0.110.33//
>> //s=FreeSWITCH//
>> //c=IN IP4 10.0.110.33//
>> //t=0 0//
>> //m=audio 10568 RTP/AVP 18 101//
>> //a=rtpmap:18 G729/8000//
>> //a=fmtp:18 annexb=no//
>> //a=rtpmap:101 telephone-event/8000//
>> //a=fmtp:101 0-16//
>> //a=silenceSupp:off - - - -//
>> //a=ptime:20//
>> //m=video 10530 RTP/AVP 116//
>> //a=rtpmap:116 H264/90000//
>> //a=fmtp:116 profile-level-id=428014/
>>
>>
>> When user make a SIP call from public network using internal
>> profile(5060), everything OK.
>> Here is the SDP of 200 OK from FS to user.
>> /v=0//
>> //o=FreeSWITCH 1366780920 1366780921 IN IP4 //59.120.xx.xx//
>> //s=FreeSWITCH//
>> //c=IN IP4 //59.120.xx.xx//
>> //t=0 0//
>> //m=audio 10892 RTP/AVP 18 101//
>> //a=rtpmap:18 G729/8000//
>> //a=fmtp:18 annexb=no//
>> //a=rtpmap:101 telephone-event/8000//
>> //a=fmtp:101 0-16//
>> //a=silenceSupp:off - - - -//
>> //a=ptime:20//
>> //m=video 10178 RTP/AVP 116//
>> //a=rtpmap:116 H264/90000//
>> //a=fmtp:116 profile-level-id=428014//
>> /
>>
>> I can't figure out which parameters in sofia profile or in
>> dialplan make port 5060 set the public IP in SDP and work fine.
>> Any advice?
>>
>> Thanks in advance.
>> Jimmy
>>
>>
>> _________________________________________________________________________
>>
>> Professional FreeSWITCH Consulting Services:
>> [hidden email]
>> <http://user/SendEmail.jtp?type=node&node=7590069&i=0>
>> http://www.freeswitchsolutions.com
>>
>>
>>
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> [hidden email]
>> <http://user/SendEmail.jtp?type=node&node=7590069&i=1>
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>>
>> ------------------------------------------------------------------------
>> If you reply to this email, your message will be added to the
>> discussion below:
>> http://freeswitch-users.2379917.n2.nabble.com/IP-infomation-in-SDP-tp7590069.html
>>
>> To unsubscribe from freeswitch-users, click here.
>> NAML
>> <http://freeswitch-users.2379917.n2.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>
>>
>>
>>
>> ------------------------------------------------------------------------
>> View this message in context: Re: IP infomation in SDP
>> <http://freeswitch-users.2379917.n2.nabble.com/IP-infomation-in-SDP-tp7590069p7590072.html>
>> Sent from the freeswitch-users mailing list archive
>> <http://freeswitch-users.2379917.n2.nabble.com/> at Nabble.com.
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org <mailto:consulting at freeswitch.org>
>> http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The
>> CudaTel Communication Server 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 <mailto: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
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org <mailto: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
> <mailto: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
>
>
>
>
> This body part will be downloaded on demand.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130424/2f2736f5/attachment-0001.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list