<div style="visibility: hidden; left: -5000px; position: absolute; z-index: 9999; padding: 0px; margin-left: 0px; margin-top: 0px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 130%;" id="avg_ls_inline_popup">
</div>It's when it's executing the Local_Extension extension on <a href="http://pastebin.freeswitch.org/16464">http://pastebin.freeswitch.org/16464</a> lines 741-772:<br><br><div class="de2"> <extension name="Local_Extension"></div>
<div class="de1"> <condition field="destination_number" expression="<span class="br0">(</span>^\d<span class="br0">{</span><span class="nu0">2</span>,<span class="nu0">7</span><span class="br0">}</span>$<span class="br0">)</span>"></div>
<div class="de2"> <action application="set" data="dialed_extension=$<span class="nu0">1</span>"/></div><div class="de1"> <action application="export" data="dialed_extension=$<span class="nu0">1</span>"/></div>
<div class="de2"> <!-- bind_meta_app can have these args <key> <span class="br0">[</span>a|b|ab<span class="br0">]</span> <span class="br0">[</span>a|b|o|s<span class="br0">]</span> <app> --></div>
<div class="de1"> <action application="bind_meta_app" data="<span class="nu0">1</span> b s execute_extension::dx XML features"/></div><div class="de2"> <action application="bind_meta_app" data="<span class="nu0">2</span> b s record_session::$$<span class="br0">{</span>recordings_dir<span class="br0">}</span>/archive/$<span class="br0">{</span>strftime<span class="br0">(</span>%Y<span class="br0">)</span><span class="br0">}</span>/$<span class="br0">{</span>strftime<span class="br0">(</span>%b<span class="br0">)</span><span class="br0">}</span>/$<span class="br0">{</span>strftime<span class="br0">(</span>%d<span class="br0">)</span><span class="br0">}</span>/$<span class="br0">{</span>uuid<span class="br0">}</span>.wav"/></div>
<div class="de1"> <action application="bind_meta_app" data="<span class="nu0">3</span> b s execute_extension::cf XML features"/></div><div class="de2"> <action application="set" data="ringback=$<span class="br0">{</span>us-ring<span class="br0">}</span>"/></div>
<div class="de1"> <action application="set" data="transfer_ringback=$$<span class="br0">{</span>hold_music<span class="br0">}</span>"/></div><div class="de2"> <action application="set" data="call_timeout=<span class="nu0">30</span>"/></div>
<div class="de1"> <!-- <action application="set" data="sip_exclude_contact=$<span class="br0">{</span>network_addr<span class="br0">}</span>"/> --></div><div class="de2"> <action application="set" data="hangup_after_bridge=true"/></div>
<div class="de1"> <!--<action
application="set"
data="continue_on_fail=NORMAL_TEMPORARY_FAILURE,USER_BUSY,NO_ANSWER,TIMEOUT,NO_ROUTE_DESTINATION"/>
--></div><div class="de2"> <action application="set" data="continue_on_fail=true"/></div><div class="de1"> <action application="hash" data="insert/$<span class="br0">{</span>domain_name<span class="br0">}</span>-call_return/$<span class="br0">{</span>dialed_extension<span class="br0">}</span>/$<span class="br0">{</span>caller_id_number<span class="br0">}</span>"/></div>
<div class="de2"> <action application="hash" data="insert/$<span class="br0">{</span>domain_name<span class="br0">}</span>-last_dial_ext/$<span class="br0">{</span>dialed_extension<span class="br0">}</span>/$<span class="br0">{</span>uuid<span class="br0">}</span>"/></div>
<div class="de1"> <action application="set" data="called_party_callgroup=$<span class="br0">{</span>user_data<span class="br0">(</span>$<span class="br0">{</span>dialed_extension<span class="br0">}</span>@$<span class="br0">{</span>domain_name<span class="br0">}</span> var callgroup<span class="br0">)</span><span class="br0">}</span>"/></div>
<div class="de2"> <!--<action application="export" data="nolocal:sip_secure_media=$<span class="br0">{</span>user_data<span class="br0">(</span>$<span class="br0">{</span>dialed_extension<span class="br0">}</span>@$<span class="br0">{</span>domain_name<span class="br0">}</span> var sip_secure_media<span class="br0">)</span><span class="br0">}</span>"/>--></div>
<div class="de1"> <action application="hash" data="insert/$<span class="br0">{</span>domain_name<span class="br0">}</span>-last_dial/$<span class="br0">{</span>called_party_callgroup<span class="br0">}</span>/$<span class="br0">{</span>uuid<span class="br0">}</span>"/></div>
<div class="de2"> <action application="bridge" data="user/$<span class="br0">{</span>dialed_extension<span class="br0">}</span>@$<span class="br0">{</span>domain_name<span class="br0">}</span>"/></div>
<div class="de1"> <action application="answer"/></div><div class="de2"> <action application="sleep" data="<span class="nu0">1000</span>"/></div><div class="de1"> <!--<action application="bridge" data="loopback/app=voicemail:default $<span class="br0">{</span>domain_name<span class="br0">}</span> $<span class="br0">{</span>dialed_extension<span class="br0">}</span>"/>--></div>
<div class="de2"> <action application="voicemail" data="default $<span class="br0">{</span>domain_name<span class="br0">}</span> $<span class="br0">{</span>dialed_extension<span class="br0">}</span>"/></div>
<div class="de1"> </condition></div><div class="de2"></extension></div><br><a href="http://pastebin.freeswitch.org/16463">http://pastebin.freeswitch.org/16463</a> line 327 shows it's this extension<br>
<br>-Steve<br><br><br><br><div class="gmail_quote">On 9 June 2011 11:03, Alessandro <span dir="ltr"><<a href="mailto:a.luppi@seletech.com">a.luppi@seletech.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div text="#000000" bgcolor="#ffffff">
Hi,<br>
<br>
This is de default diaplan:<br>
<a href="http://pastebin.freeswitch.org/16464" target="_blank">http://pastebin.freeswitch.org/16464</a><br>
<br>
but I think that sofia read public dial plan, ths is the public dial
plan:<br>
<br>
<a href="http://pastebin.freeswitch.org/16465" target="_blank">http://pastebin.freeswitch.org/16465</a><br>
<br>
<br>
I don't see the point where the FS read operation reported at lines
342-343.<br>
<br>
Thanks<br>
<br>
Regards<br>
<br>
Alessandro<br>
<br>
<br>
<br>
Il 09/06/2011 10:16, Steven Ayre ha scritto:
<div><div></div><div class="h5"><blockquote type="cite">It's a mistake in your dialplan. See lines 342-343:
<div><span style="color:rgb(51, 51, 51);font-family:monospace;font-size:11px">
<ol>
<li style="background-color:rgb(244, 244, 244)">
<div style="font-family:'Courier New',Courier,monospace;font-weight:normal">Dialplan:
sofia/internal/<span>1009</span>@<span>192.168</span><span>.2</span><span>.101</span> Action bridge<span>(</span>user/$<span>{</span>dialed_extension<span>}</span>@$<span>{</span>domain_name<span>}</span><span>)</span></div>
</li>
<li style="background-color:rgb(255, 255, 255)">
<div style="font-family:'Courier New',Courier,monospace;font-weight:normal">Dialplan:
sofia/internal/<span>1009</span>@<span>192.168</span><span>.2</span><span>.101</span> Action answer<span>(</span><span>)</span></div>
</li>
<li style="background-color:rgb(244, 244, 244)">
<div style="font-family:'Courier New',Courier,monospace;font-weight:normal">Dialplan:
sofia/internal/<span>1009</span>@<span>192.168</span><span>.2</span><span>.101</span> Action sleep<span>(</span><span>1000</span><span>)</span></div>
</li>
<li style="background-color:rgb(255, 255, 255)">
<div style="font-family:'Courier New',Courier,monospace;font-weight:normal">Dialplan:
sofia/internal/<span>1009</span>@<span>192.168</span><span>.2</span><span>.101</span> Action voicemail<span>(</span>default $<span>{</span>domain_name<span>}</span> $<span>{</span>dialed_extension<span>}</span><span>)</span></div>
</li>
</ol>
</span></div>
<div><br>
</div>
<div>You're answering the call after the bridge before it goes to
voicemail. That answer is what is generating the 200.</div>
<div><br>
</div>
<div>See lines 507-508 to see it happening:</div>
<div><span style="color:rgb(51, 51, 51);font-family:monospace;font-size:11px">
<ol>
<li style="background-color:rgb(255, 255, 255)">
<div style="font-family:'Courier New',Courier,monospace;font-weight:normal"><span>2011</span><span>-06</span><span>-09</span> <span>09</span>:<span>15</span>:<span>15.627871</span> <span>[</span>INFO<span>]</span> mod_dptools.c:<span>2393</span> Originate Failed. Cause:
CALL_REJECTED</div>
</li>
<li style="background-color:rgb(244, 244, 244)">
<div style="font-family:'Courier New',Courier,monospace;font-weight:normal">EXECUTE
sofia/internal/<span>1009</span>@<span>192.168</span><span>.2</span><span>.101</span> answer<span>(</span><span>)</span></div>
</li>
</ol>
</span></div>
<div>-Steve</div>
<div><br>
</div>
<div><br>
<div><br>
<div class="gmail_quote">On 9 June 2011 09:11, Steven Ayre <span dir="ltr"><<a href="mailto:steveayre@gmail.com" target="_blank">steveayre@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">I don't see the siptrace in that log?
<div><br>
</div>
<div>-Steve</div>
<div>
<div>
<div><br>
</div>
<div><br>
<div class="gmail_quote">On 9 June 2011 08:35,
Alessandro <span dir="ltr"><<a href="mailto:a.luppi@seletech.com" target="_blank">a.luppi@seletech.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
<div text="#000000" bgcolor="#ffffff"> Hi,<br>
<br>
the url is: <a href="http://pastebin.freeswitch.org/16463" target="_blank">http://pastebin.freeswitch.org/16463</a><br>
i made a call from phone1 to phone2, the
called party refused the call with code 603.
FS received the status 603 form the called
(softphone 2) party. Than FS sent to the
calling party (softphone 1) the message 200
and bye.<br>
<br>
This is the resume of the log:
<div><br>
<br>
<div>1000@localnet_ip
FS(ip:localnet_ip)
1001<span style="font-family:arial;font-size:small">@localnet_ip</span></div>
<div><br>
</div>
<div><span style="font-family:monospace;font-size:medium">
<pre>INVITE ---------->
INVITE --------------->
<-------------- trying <--------------------trying
<------------------ 603
<span style="font-family:arial;font-size:small"><span style="font-family:monospace;font-size:medium"><pre><-------------- 200</pre></span></span>ACK------------------>
<--------------------BYE</pre>
</span></div>
<br>
<br>
</div>
<div><i>You said you had voicemail before...
you can't send 603 back to the client and
continue to voicemail because the 603
terminates the call.</i><br>
<br>
</div>
When the called party terminates the call
before answering, the calling party receive e
registered message like "The phone called is
not available, leave a message ...". Than i
found the registered message in freeswitch.
(I'm using fusion-pbx)<br>
<br>
<br>
Thanks<br>
<br>
Regards<br>
<br>
Alessandro<br>
<br>
<br>
Il 08/06/2011 21:55, Steven Ayre ha scritto:
<div>
<div>
<blockquote type="cite">
<blockquote style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex" class="gmail_quote"> Question 1:<br>
i'm developing a custom client sip
with pjsip. This client when receive a
call that can't be accepted respond
with status 603. I think that
freeswitch filter this status.<br>
</blockquote>
<br>
603 gets treated fine for me. I think we
need to see more information - can you
put a debug level log of the call with
siptrace enabled (sofia global siptrace
on) on pastebin (<a href="http://pastebin.freeswitch.org/" target="_blank">http://pastebin.freeswitch.org/</a>)
and then post the url here?<br>
<br>
Chances are you're doing something in
the dialplan that's answering the call,
either before or after the failed bleg.<br>
<br>
You said you had voicemail before... you
can't send 603 back to the client and
continue to voicemail because the 603
terminates the call.<br>
<span style="font-family:arial;font-size:small"><span style="font-family:monospace;font-size:medium"></span></span>
<div> </div>
<blockquote style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex" class="gmail_quote"> Question:2<br>
</blockquote>
<blockquote style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex" class="gmail_quote">It's possible a
custom Header pass trough in status
response like trying or session in
progress? I'm able to use custom
header only on invite adding to invite
a header with name like X-myheader.
Any suggestion? <br>
</blockquote>
<div><br>
Yes, you can for 180/183, with the
sip_ph_X- prefix. That puts the header
on any provisional response.<br>
<a href="http://wiki.freeswitch.org/wiki/Sofia#Adding_Response_Headers" target="_blank">http://wiki.freeswitch.org/wiki/Sofia#Adding_Response_Headers</a><br>
<br>
For example:<br>
<action application="set"
data="sip_p_X-myheader=value"/><br>
<br>
AFAIK you won't be able to do the same
for a 100 Trying since Sofia doesn't
let FS do any handling at the required
point. But have a try anyway just to
be sure.<br>
<br>
</div>
-Steve<br>
<br>
<br>
<div class="gmail_quote">On 8 June 2011
20:14, Alessandro <span dir="ltr"><<a href="mailto:a.luppi@seletech.com" target="_blank">a.luppi@seletech.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
<div text="#000000" bgcolor="#ffffff"> Hi,<br>
<br>
I have two questions about FS:<br>
<br>
Question 1:<br>
i'm developing a custom client sip
with pjsip. This client when
receive a call that can't be
accepted respond with status 603.
I think that freeswitch filter
this status.<br>
This is an example of desired
behaviour:<br>
<span style="font-family:arial;font-size:small">
<div>1000@localnet_ip
FS(ip:localnet_ip)
1001<span style="font-family:arial;font-size:small">@localnet_ip</span></div>
<div><br>
</div>
<div><span style="font-family:monospace;font-size:medium">
<pre>INVITE ---------->
INVITE --------------->
<-------------- trying <--------------------trying
<-------------- 603 <------------------ 603
ACK ------------> ACK------------------>
</pre>
<pre><span style="white-space:normal"><pre><span style="font-family:monospace;font-size:medium"></span><span style="font-family:arial;font-size:small;white-space:normal"><div>
The current behaviour of FS is:</div><div>
</div></span></pre></span></pre>
</span>
<div>1000@localnet_ip
FS(ip:localnet_ip)
1001<span style="font-family:arial;font-size:small">@localnet_ip</span></div>
<div><br>
</div>
<div><span style="font-family:monospace;font-size:medium">
<pre>INVITE ---------->
INVITE --------------->
<-------------- trying <--------------------trying
<------------------ 603
<span style="font-family:arial;font-size:small"><span style="font-family:monospace;font-size:medium"><pre><-------------- 200</pre></span></span>ACK------------------>
<--------------------BYE
I'd like to avoid the current behaviour. It's possible a kind of message status path trough?
If the called party terminate the call before answering, FS send always to the calling partner 200 and BYE.
First thought was related to the voice-mail. Now voice-mail is disabled but the behaviour is the same.
Question:2
It's possible a custom Header pass trough in status response like trying or session in progress?
I'm able to use custom header only on invite adding to invite a header with name like X-myheader.
Any suggestion?
Thanks
Good Evening
</pre>
</span></div>
</div>
</span>Alessandro<br>
<pre cols="72">--
Ing. Alessandro Luppi
Software development
Seletech srl
Via Collodi 8, 20052 Monza (MI) - Italy
Tel: +39.039.5962000 - Fax: +39.039.9716905
email: <a href="mailto:a.luppi@seletech.com" target="_blank">a.luppi@seletech.com</a> - Web: <a href="http://www.seletech.com" target="_blank">www.seletech.com</a> or <a href="http://www.seletech.eu" target="_blank">www.seletech.eu</a>
</pre>
</div>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br>
</blockquote>
</div>
<br>
<div style="padding:0px;margin-left:0px;margin-top:0px;overflow:hidden;word-wrap:break-word;color:black;font-size:10px;text-align:left;line-height:130%"> </div>
<pre><fieldset></fieldset>
_______________________________________________
FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
</pre>
</blockquote>
<br>
<br>
<pre cols="72">--
Ing. Alessandro Luppi
Software development
Seletech srl
Via Collodi 8, 20052 Monza (MI) - Italy
Tel: +39.039.5962000 - Fax: +39.039.9716905
email: <a href="mailto:a.luppi@seletech.com" target="_blank">a.luppi@seletech.com</a> - Web: <a href="http://www.seletech.com" target="_blank">www.seletech.com</a> or <a href="http://www.seletech.eu" target="_blank">www.seletech.eu</a>
</pre>
</div>
</div>
</div>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
<pre><fieldset></fieldset>
_______________________________________________
FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
</pre>
</blockquote>
<br>
<br>
<pre cols="72">--
Ing. Alessandro Luppi
Software development
Seletech srl
Via Collodi 8, 20052 Monza (MI) - Italy
Tel: +39.039.5962000 - Fax: +39.039.9716905
email: <a href="mailto:a.luppi@seletech.com" target="_blank">a.luppi@seletech.com</a> - Web: <a href="http://www.seletech.com" target="_blank">www.seletech.com</a> or <a href="http://www.seletech.eu" target="_blank">www.seletech.eu</a>
</pre>
</div></div></div>
<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><div style="visibility: hidden; left: -5000px; position: absolute; z-index: 9999; padding: 0px; margin-left: 0px; margin-top: 0px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 130%;" id="avg_ls_inline_popup">
</div>