hello guys,

i was playing with mod_opal to see if i can make it working ... well it
seems SIP-H323 interworking is not tuned at all.

I have a call from a registered sip user (1001) to PSTN via mod_opal


<include>
  <extension name="EMERGENCY">
    <condition field="destination_number" expression="^0(112|9[23456])$">
      <action application="set"
data="effective_caller_id_number=1001282122"/>
      <action application="set" data="NCX_IP=10.4.4.254"/>
      <action application="set" data="call_timeout=30"/>
      <action application="set" data="hangup_after_bridge=true"/>

      <action application="bridge" data="opal/h323:0...@${ncx_ip}"/>
    </condition>
  </extension>

  <extension name="SPECIAL_SERVICES">
    <condition field="destination_number" expression="^0(9[01789]\d{3,4})$">
      <action application="set"
data="effective_caller_id_number=1001282122"/>
      <action application="set" data="NCX_IP=10.4.4.254"/>
      <action application="set" data="call_timeout=30"/>
      <action application="set" data="hangup_after_bridge=true"/>

      <action application="bridge" data="opal/h323:0...@${ncx_ip}"/>
    </condition>
  </extension>

  <extension name="ENYTHING_ELSE">
    <condition field="destination_number"
expression="^0([2-8]\d{6,7}|0[1-9]\d{7,8}|00[1-9]\d{8,16})$">
      <action application="set"
data="effective_caller_id_number=1001282122"/>
      <action application="set" data="NCX_IP=10.4.4.254"/>
      <action application="set" data="call_timeout=30"/>
      <action application="set" data="hangup_after_bridge=true"/>

      <action application="bridge" data="opal/h323:0...@${ncx_ip}"/>
    </condition>
  </extension>
</include>



One of the many issues i sow is that FS connects the call on SIP leg before
it actually receives H.225 connect from H323 leg... as it is configured to
send 200 OK on the 1st H.225 message containing a FastStart element/OLC.


Attached is the tcpdump i took on FS machine... just use this filter: "h225
or h245 or q931 or sip"
Also, you can check the attac CDR,,,, this is an unanswered call i placed to
PSTN and FS billed it 23 seconds.



Can anyone tell where i can do correct SIP - H323 message mappings to avoid
this?



T.
r...@subzero:/usr/local/freeswitch/log/xml_cdr# cat a_9db67edc-b29a-11de-bcf9-1fb6bf4c98f1.cdr.xml
<?xml version="1.0"?>
<cdr>
  <variables>
    <sip_received_ip>10.4.62.89</sip_received_ip>
    <sip_received_port>5060</sip_received_port>
    <sip_via_protocol>udp</sip_via_protocol>
    <sip_authorized>true</sip_authorized>
    <sip_number_alias>1001</sip_number_alias>
    <sip_auth_username>1001</sip_auth_username>
    <sip_auth_realm>10.4.62.7</sip_auth_realm>
    <number_alias>1001</number_alias>
    <user_name>1001</user_name>
    <domain_name>10.4.62.7</domain_name>
    <toll_allow>domestic,international,local</toll_allow>
    <accountcode>1001</accountcode>
    <user_context>default</user_context>
    <effective_caller_id_name>Extension%201001</effective_caller_id_name>
    <outbound_caller_id_name>FreeSWITCH</outbound_caller_id_name>
    <outbound_caller_id_number>0000000000</outbound_caller_id_number>
    <callgroup>techsupport</callgroup>
    <record_stereo>true</record_stereo>
    <default_gateway>example.com</default_gateway>
    <default_areacode>918</default_areacode>
    <transfer_fallback_extension>operator</transfer_fallback_extension>
    <sip_from_user>1001</sip_from_user>
    <sip_from_uri>1001%4010.4.62.7</sip_from_uri>
    <sip_from_host>10.4.62.7</sip_from_host>
    <sip_from_user_stripped>1001</sip_from_user_stripped>
    <sip_from_tag>-1058464acb9540-4_F10.4.62.89</sip_from_tag>
    <sofia_profile_name>internal</sofia_profile_name>
    <sip_req_user>05492122</sip_req_user>
    <sip_req_uri>05492122%4010.4.62.7</sip_req_uri>
    <sip_req_host>10.4.62.7</sip_req_host>
    <sip_to_user>05492122</sip_to_user>
    <sip_to_uri>05492122%4010.4.62.7</sip_to_uri>
    <sip_to_host>10.4.62.7</sip_to_host>
    <sip_contact_params>transport%3Dudp</sip_contact_params>
    <sip_contact_user>051494197</sip_contact_user>
    <sip_contact_uri>051494197%4010.4.62.89</sip_contact_uri>
    <sip_contact_host>10.4.62.89</sip_contact_host>
    <channel_name>sofia/internal/1001%4010.4.62.7</channel_name>
    <sip_call_id>15_344db6d7ed3814aceda20_I%4010.4.62.89</sip_call_id>
    <sip_via_host>10.4.62.89</sip_via_host>
    <max_forwards>70</max_forwards>
    <presence_id>1001%4010.4.62.7</presence_id>
    <switch_r_sdp>v%3D0%0D%0Ao%3Dsip%3A051494197%4010.4.62.89%201%2022%20IN%20IP4%2010.4.62.89%0D%0As%3Dsip%3A051494197%4010.4.62.89%0D%0Ac%3DIN%20IP4%2010.4.62.89%0D%0At%3D0%200%0D%0Am%3Daudio%205004%20RTP/AVP%20101%208%2018%0D%0Aa%3Drtpmap%3A101%20telephone-event/8000/1%0D%0Aa%3Drtpmap%3A8%20PCMA/8000/1%0D%0Aa%3Drtpmap%3A18%20G729/8000/1%0D%0Aa%3Dfmtp%3A18%20annexb%3Dno%0D%0A</switch_r_sdp>
    <remote_media_ip>10.4.62.89</remote_media_ip>
    <remote_media_port>5004</remote_media_port>
    <read_codec>PCMA</read_codec>
    <read_rate>8000</read_rate>
    <write_codec>PCMA</write_codec>
    <write_rate>8000</write_rate>
    <effective_caller_id_number>1001282122</effective_caller_id_number>
    <NCX_IP>10.4.4.254</NCX_IP>
    <call_timeout>30</call_timeout>
    <hangup_after_bridge>true</hangup_after_bridge>
    <current_application_data>opal/h323%3A05492122%4010.4.4.254</current_application_data>
    <current_application>bridge</current_application>
    <local_media_ip>10.4.62.7</local_media_ip>
    <local_media_port>21558</local_media_port>
    <endpoint_disposition>ANSWER</endpoint_disposition>
    <originate_disposition>SUCCESS</originate_disposition>
    <bridge_channel>opal/h323%3A05492122%4010.4.4.254</bridge_channel>
    <bridge_uuid>9db7a168-b29a-11de-bcf9-1fb6bf4c98f1</bridge_uuid>
    <signal_bond>9db7a168-b29a-11de-bcf9-1fb6bf4c98f1</signal_bond>
    <sip_term_status>200</sip_term_status>
    <sip_term_cause>16</sip_term_cause>
    <sip_hangup_disposition>recv_bye</sip_hangup_disposition>
    <bridge_hangup_cause>NORMAL_CLEARING</bridge_hangup_cause>
    <hangup_cause>NORMAL_CLEARING</hangup_cause>
    <hangup_cause_q850>16</hangup_cause_q850>
    <digits_dialed>none</digits_dialed>
    <start_stamp>2009-10-06%2019%3A06%3A40</start_stamp>
    <profile_start_stamp>2009-10-06%2019%3A06%3A40</profile_start_stamp>
    <answer_stamp>2009-10-06%2019%3A06%3A41</answer_stamp>
    <end_stamp>2009-10-06%2019%3A07%3A04</end_stamp>
    <start_epoch>1254848800</start_epoch>
    <start_uepoch>1254848800838471</start_uepoch>
    <profile_start_epoch>1254848800</profile_start_epoch>
    <profile_start_uepoch>1254848800838471</profile_start_uepoch>
    <answer_epoch>1254848801</answer_epoch>
    <answer_uepoch>1254848801054641</answer_uepoch>
    <progress_epoch>0</progress_epoch>
    <progress_uepoch>0</progress_uepoch>
    <progress_media_epoch>0</progress_media_epoch>
    <progress_media_uepoch>0</progress_media_uepoch>
    <end_epoch>1254848824</end_epoch>
    <end_uepoch>1254848824422449</end_uepoch>
    <last_app>bridge</last_app>
    <last_arg>opal/h323%3A05492122%4010.4.4.254</last_arg>
    <caller_id>%221001%22%20%3C1001%3E</caller_id>
    <duration>24</duration>
    <billsec>23</billsec>
    <progresssec>0</progresssec>
    <answersec>1</answersec>
    <progress_mediasec>0</progress_mediasec>
    <flow_billsec>24</flow_billsec>
    <mduration>23584</mduration>
    <billmsec>23368</billmsec>
    <progressmsec>0</progressmsec>
    <answermsec>216</answermsec>
    <progress_mediamsec>0</progress_mediamsec>
    <flow_billmsec>23584</flow_billmsec>
    <uduration>23583978</uduration>
    <billusec>23367808</billusec>
    <progressusec>0</progressusec>
    <answerusec>216170</answerusec>
    <progress_mediausec>0</progress_mediausec>
    <flow_billusec>23583978</flow_billusec>
    <rtp_audio_in_raw_bytes>200552</rtp_audio_in_raw_bytes>
    <rtp_audio_in_media_bytes>200552</rtp_audio_in_media_bytes>
    <rtp_audio_in_packet_count>1166</rtp_audio_in_packet_count>
    <rtp_audio_in_media_packet_count>1166</rtp_audio_in_media_packet_count>
    <rtp_audio_in_skip_packet_count>2</rtp_audio_in_skip_packet_count>
    <rtp_audio_in_jb_packet_count>0</rtp_audio_in_jb_packet_count>
    <rtp_audio_in_dtmf_packet_count>0</rtp_audio_in_dtmf_packet_count>
    <rtp_audio_in_cng_packet_count>0</rtp_audio_in_cng_packet_count>
    <rtp_audio_in_flush_packet_count>0</rtp_audio_in_flush_packet_count>
    <rtp_audio_out_raw_bytes>199348</rtp_audio_out_raw_bytes>
    <rtp_audio_out_media_bytes>199348</rtp_audio_out_media_bytes>
    <rtp_audio_out_packet_count>1159</rtp_audio_out_packet_count>
    <rtp_audio_out_media_packet_count>1159</rtp_audio_out_media_packet_count>
    <rtp_audio_out_skip_packet_count>0</rtp_audio_out_skip_packet_count>
    <rtp_audio_out_dtmf_packet_count>0</rtp_audio_out_dtmf_packet_count>
    <rtp_audio_out_cng_packet_count>0</rtp_audio_out_cng_packet_count>
  </variables>
  <app_log>
    <application app_name="set" app_data="effective_caller_id_number=1001282122"></application>
    <application app_name="set" app_data="NCX_IP=10.4.4.254"></application>
    <application app_name="set" app_data="call_timeout=30"></application>
    <application app_name="set" app_data="hangup_after_bridge=true"></application>
    <application app_name="bridge" app_data="opal/h323:[email protected]"></application>
  </app_log>
  <callflow dialplan="XML" profile_index="1">
    <extension name="ENYTHING_ELSE" number="05492122">
      <application app_name="set" app_data="effective_caller_id_number=1001282122"></application>
      <application app_name="set" app_data="NCX_IP=10.4.4.254"></application>
      <application app_name="set" app_data="call_timeout=30"></application>
      <application app_name="set" app_data="hangup_after_bridge=true"></application>
      <application app_name="bridge" app_data="opal/h323:05492...@${ncx_ip}"></application>
    </extension>
    <caller_profile>
      <username>1001</username>
      <dialplan>XML</dialplan>
      <caller_id_name>1001</caller_id_name>
      <ani></ani>
      <aniii></aniii>
      <caller_id_number>1001</caller_id_number>
      <network_addr>10.4.62.89</network_addr>
      <rdnis></rdnis>
      <destination_number>05492122</destination_number>
      <uuid>9db67edc-b29a-11de-bcf9-1fb6bf4c98f1</uuid>
      <source>mod_sofia</source>
      <context>default</context>
      <chan_name>sofia/internal/[email protected]</chan_name>
      <originatee>
        <originatee_caller_profile>
          <username>1001</username>
          <dialplan></dialplan>
          <caller_id_name>Extension 1001</caller_id_name>
          <ani></ani>
          <aniii></aniii>
          <caller_id_number>1001282122</caller_id_number>
          <network_addr>10.4.62.89</network_addr>
          <rdnis></rdnis>
          <destination_number>h323:[email protected]</destination_number>
          <uuid>9db7a168-b29a-11de-bcf9-1fb6bf4c98f1</uuid>
          <source>mod_sofia</source>
          <context></context>
          <chan_name></chan_name>
        </originatee_caller_profile>
      </originatee>
    </caller_profile>
    <times>
      <created_time>1254848800838471</created_time>
      <profile_created_time>1254848800838471</profile_created_time>
      <progress_time>0</progress_time>
      <progress_media_time>0</progress_media_time>
      <answered_time>1254848801054641</answered_time>
      <hangup_time>1254848824422449</hangup_time>
      <transfer_time>0</transfer_time>
    </times>
  </callflow>
</cdr>
_______________________________________________
FreeSWITCH-users mailing list
[email protected]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

Reply via email to