redirect with freeswitch

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

redirect with freeswitch

Andrius Kairiukstis-2
Hello,

I am executing command:

redirect "sip:NUMBER@REMOTE-FS-SERVER:5080"

After that I see redirect attempt and then call finishes immediately. 

What could be wrong? Do I need something special on REMOTE-FS-SERVER (currently there are only default dialplan with rayo and another application)

Log:
2015-04-29 16:12:19.086370 [DEBUG] mod_rayo.c:709 63fc2f21-2b16-404d-9ed9-d702251d99c0@127.0.0.1, looking for CALL::set:urn:xmpp:rayo:1:redirect command
2015-04-29 16:12:19.086370 [DEBUG] mod_rayo.c:1869 63fc2f21-2b16-404d-9ed9-d702251d99c0@127.0.0.1, executing command
2015-04-29 16:12:19.086370 [DEBUG] mod_sofia.c:1883 Redirecting to "unknown" <sip:NUMBER@REMOTE-FS-SERVER:5080>
2015-04-29 16:12:19.086370 [NOTICE] mod_sofia.c:1895 Hangup sofia/external/CALLERID@CURRENT-FS-SERVER:5080 [CS_EXECUTE] [NORMAL_UNSPECIFIED]
2015-04-29 16:12:19.086370 [DEBUG] switch_channel.c:3222 Send signal sofia/external/CALLERID@CURRENT-FS-SERVER:5080 [KILL]
2015-04-29 16:12:19.086370 [DEBUG] switch_core_session.c:1396 Send signal sofia/external/CALLERID@CURRENT-FS-SERVER:5080 [BREAK]

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: redirect with freeswitch

Ben Langfeld
This will execute a SIP 302. Try turning on SIP tracing in FS and you'll see.

Enviado do meu iPhone

Em 29/04/2015, às 13:22, Andrius Kairiukstis <[hidden email]> escreveu:

Hello,

I am executing command:

redirect "sip:NUMBER@REMOTE-FS-SERVER:5080"

After that I see redirect attempt and then call finishes immediately. 

What could be wrong? Do I need something special on REMOTE-FS-SERVER (currently there are only default dialplan with rayo and another application)

Log:
2015-04-29 16:12:19.086370 [DEBUG] mod_rayo.c:709 [hidden email], looking for CALL::set:urn:xmpp:rayo:1:redirect command
2015-04-29 16:12:19.086370 [DEBUG] mod_rayo.c:1869 [hidden email], executing command
2015-04-29 16:12:19.086370 [DEBUG] mod_sofia.c:1883 Redirecting to "unknown" <sip:NUMBER@REMOTE-FS-SERVER:5080>
2015-04-29 16:12:19.086370 [NOTICE] mod_sofia.c:1895 Hangup sofia/external/CALLERID@CURRENT-FS-SERVER:5080 [CS_EXECUTE] [NORMAL_UNSPECIFIED]
2015-04-29 16:12:19.086370 [DEBUG] switch_channel.c:3222 Send signal sofia/external/CALLERID@CURRENT-FS-SERVER:5080 [KILL]
2015-04-29 16:12:19.086370 [DEBUG] switch_core_session.c:1396 Send signal sofia/external/CALLERID@CURRENT-FS-SERVER:5080 [BREAK]

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: redirect with freeswitch

Andrius Kairiukstis-2
Thank you, I did that. No invites coming to the remote FS and on local one I am receivnig 302 three times on call attempt:
I am on vanilla configs with rayo and sip account configured.

U +0.261489 LOCAL-FS:5060 -> 90.174.4.200:58320
SIP/2.0 302 Moved Temporarily.
Via: SIP/2.0/UDP 172.34.255.12:63159;rport=58320;branch=z9hG4bKPj1fc86e31bbaa49fea9bc7873b3795830;received=90.174.4.200.
Max-Forwards: 70.
From: "34652299183" <sip:34652299183@LOCAL-FS>;tag=75c96a5f8ae640028c6cf36d103e5995.
To: <sip:1234567890@LOCAL-FS>;tag=pBeejXDFKDSHa.
Call-ID: 58cac8d109e54e28b80655792de53970.
CSeq: 19801 INVITE.
Contact: "unknown" <sip:1234567890@REMOTE-FS:5080>.
User-Agent: FreeSWITCH-mod_sofia/1.4.18~64bit.
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY.
Supported: timer, path, replaces.
Allow-Events: talk, hold, conference, refer.
Reason: Q.850;cause=31;text="NORMAL_UNSPECIFIED".
Content-Length: 0.
Remote-Party-ID: "1234567890" <sip:1234567890@LOCAL-FS>;party=calling;privacy=off;screen=no.
.


On Wednesday, 29 April 2015 19:55:52 UTC+2, Ben Langfeld wrote:
This will execute a SIP 302. Try turning on SIP tracing in FS and you'll see.

Enviado do meu iPhone

Em 29/04/2015, às 13:22, Andrius Kairiukstis <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="SI2rt9FgFFcJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">and...@...> escreveu:

Hello,

I am executing command:

redirect "sip:NUMBER@REMOTE-FS-SERVER:5080"

After that I see redirect attempt and then call finishes immediately. 

What could be wrong? Do I need something special on REMOTE-FS-SERVER (currently there are only default dialplan with rayo and another application)

Log:
2015-04-29 16:12:19.086370 [DEBUG] mod_rayo.c:709 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="SI2rt9FgFFcJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">63fc2f21-2b16-404d-9ed9-d702251d99c0@127.0.0.1, looking for CALL::set:urn:xmpp:rayo:1:redirect command
2015-04-29 16:12:19.086370 [DEBUG] mod_rayo.c:1869 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="SI2rt9FgFFcJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">63fc2f21-2b16-404d-9ed9-d702251d99c0@127.0.0.1, executing command
2015-04-29 16:12:19.086370 [DEBUG] mod_sofia.c:1883 Redirecting to "unknown" <sip:NUMBER@REMOTE-FS-SERVER:5080>
2015-04-29 16:12:19.086370 [NOTICE] mod_sofia.c:1895 Hangup sofia/external/CALLERID@CURRENT-FS-SERVER:5080 [CS_EXECUTE] [NORMAL_UNSPECIFIED]
2015-04-29 16:12:19.086370 [DEBUG] switch_channel.c:3222 Send signal sofia/external/CALLERID@CURRENT-FS-SERVER:5080 [KILL]
2015-04-29 16:12:19.086370 [DEBUG] switch_core_session.c:1396 Send signal sofia/external/CALLERID@CURRENT-FS-SERVER:5080 [BREAK]

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="SI2rt9FgFFcJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">adhearsion+...@googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: redirect with freeswitch

Ben Langfeld-2
Could you explain your topology better? Looks like the 302 is being sent right, and I'm not sure if something is actually failing or if you're not understanding what is supposed to happen.

On 29 April 2015 at 16:11, Andrius Kairiukstis <[hidden email]> wrote:
Thank you, I did that. No invites coming to the remote FS and on local one I am receivnig 302 three times on call attempt:
I am on vanilla configs with rayo and sip account configured.

U +0.261489 LOCAL-FS:5060 -> 90.174.4.200:58320
SIP/2.0 302 Moved Temporarily.
Via: SIP/2.0/UDP 172.34.255.12:63159;rport=58320;branch=z9hG4bKPj1fc86e31bbaa49fea9bc7873b3795830;received=90.174.4.200.
Max-Forwards: 70.
From: "34652299183" <sip:34652299183@LOCAL-FS>;tag=75c96a5f8ae640028c6cf36d103e5995.
To: <sip:<a href="tel:1234567890" value="+551234567890" target="_blank">1234567890@LOCAL-FS>;tag=pBeejXDFKDSHa.
Call-ID: 58cac8d109e54e28b80655792de53970.
CSeq: 19801 INVITE.
Contact: "unknown" <sip:<a href="tel:1234567890" value="+551234567890" target="_blank">1234567890@REMOTE-FS:5080>.
User-Agent: FreeSWITCH-mod_sofia/1.4.18~64bit.
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY.
Supported: timer, path, replaces.
Allow-Events: talk, hold, conference, refer.
Reason: Q.850;cause=31;text="NORMAL_UNSPECIFIED".
Content-Length: 0.
Remote-Party-ID: "<a href="tel:1234567890" value="+551234567890" target="_blank">1234567890" <sip:<a href="tel:1234567890" value="+551234567890" target="_blank">1234567890@LOCAL-FS>;party=calling;privacy=off;screen=no.
.


On Wednesday, 29 April 2015 19:55:52 UTC+2, Ben Langfeld wrote:
This will execute a SIP 302. Try turning on SIP tracing in FS and you'll see.

Enviado do meu iPhone

Em 29/04/2015, às 13:22, Andrius Kairiukstis <[hidden email]> escreveu:

Hello,

I am executing command:

redirect "sip:NUMBER@REMOTE-FS-SERVER:5080"

After that I see redirect attempt and then call finishes immediately. 

What could be wrong? Do I need something special on REMOTE-FS-SERVER (currently there are only default dialplan with rayo and another application)

Log:
2015-04-29 16:12:19.086370 [DEBUG] mod_rayo.c:709 63fc2f21-2b16-404d-9ed9-d702251d99c0@127.0.0.1, looking for CALL::set:urn:xmpp:rayo:1:redirect command
2015-04-29 16:12:19.086370 [DEBUG] mod_rayo.c:1869 63fc2f21-2b16-404d-9ed9-d702251d99c0@127.0.0.1, executing command
2015-04-29 16:12:19.086370 [DEBUG] mod_sofia.c:1883 Redirecting to "unknown" <sip:NUMBER@REMOTE-FS-SERVER:5080>
2015-04-29 16:12:19.086370 [NOTICE] mod_sofia.c:1895 Hangup sofia/external/CALLERID@CURRENT-FS-SERVER:5080 [CS_EXECUTE] [NORMAL_UNSPECIFIED]
2015-04-29 16:12:19.086370 [DEBUG] switch_channel.c:3222 Send signal sofia/external/CALLERID@CURRENT-FS-SERVER:5080 [KILL]
2015-04-29 16:12:19.086370 [DEBUG] switch_core_session.c:1396 Send signal sofia/external/CALLERID@CURRENT-FS-SERVER:5080 [BREAK]

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: redirect with freeswitch

Andrius Kairiukstis-2
I have two FS servers, listening on private and public IP;
on fs1 i have registered sip account and DID number from localphone;

goal to redirect call to the fs2. 

adhearsion app have redirect as last command
now I am getting sip invite on fs1 and nothing on fs2 nor asterisk. there are no firewall between


On Wednesday, 29 April 2015 21:40:27 UTC+2, Ben Langfeld wrote:
Could you explain your topology better? Looks like the 302 is being sent right, and I'm not sure if something is actually failing or if you're not understanding what is supposed to happen.

On 29 April 2015 at 16:11, Andrius Kairiukstis <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="A3WViq3u1jwJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">and...@...> wrote:
Thank you, I did that. No invites coming to the remote FS and on local one I am receivnig 302 three times on call attempt:
I am on vanilla configs with rayo and sip account configured.

U +0.261489 LOCAL-FS:5060 -> <a href="http://90.174.4.200:58320" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2F90.174.4.200%3A58320\46sa\75D\46sntz\0751\46usg\75AFQjCNEBYjDw_6i5KNs5akUySoJG5vC6Mw';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2F90.174.4.200%3A58320\46sa\75D\46sntz\0751\46usg\75AFQjCNEBYjDw_6i5KNs5akUySoJG5vC6Mw';return true;">90.174.4.200:58320
SIP/2.0 302 Moved Temporarily.
Via: SIP/2.0/UDP 172.34.255.12:63159;rport=58320;branch=z9hG4bKPj1fc86e31bbaa49fea9bc7873b3795830;received=90.174.4.200.
Max-Forwards: 70.
From: "34652299183" <sip:34652299183@LOCAL-FS>;tag=75c96a5f8ae640028c6cf36d103e5995.
To: <sip:1234567890@LOCAL-FS>;tag=pBeejXDFKDSHa.
Call-ID: 58cac8d109e54e28b80655792de53970.
CSeq: 19801 INVITE.
Contact: "unknown" <sip:1234567890@REMOTE-FS:5080>.
User-Agent: FreeSWITCH-mod_sofia/1.4.18~64bit.
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY.
Supported: timer, path, replaces.
Allow-Events: talk, hold, conference, refer.
Reason: Q.850;cause=31;text="NORMAL_UNSPECIFIED".
Content-Length: 0.
Remote-Party-ID: "1234567890" <sip:1234567890@LOCAL-FS>;party=calling;privacy=off;screen=no.
.


On Wednesday, 29 April 2015 19:55:52 UTC+2, Ben Langfeld wrote:
This will execute a SIP 302. Try turning on SIP tracing in FS and you'll see.

Enviado do meu iPhone

Em 29/04/2015, às 13:22, Andrius Kairiukstis <[hidden email]> escreveu:

Hello,

I am executing command:

redirect "sip:NUMBER@REMOTE-FS-SERVER:5080"

After that I see redirect attempt and then call finishes immediately. 

What could be wrong? Do I need something special on REMOTE-FS-SERVER (currently there are only default dialplan with rayo and another application)

Log:
2015-04-29 16:12:19.086370 [DEBUG] mod_rayo.c:709 63fc2f21-2b16-404d-9ed9-d702251d99c0@127.0.0.1, looking for CALL::set:urn:xmpp:rayo:1:redirect command
2015-04-29 16:12:19.086370 [DEBUG] mod_rayo.c:1869 63fc2f21-2b16-404d-9ed9-d702251d99c0@127.0.0.1, executing command
2015-04-29 16:12:19.086370 [DEBUG] mod_sofia.c:1883 Redirecting to "unknown" <sip:NUMBER@REMOTE-FS-SERVER:5080>
2015-04-29 16:12:19.086370 [NOTICE] mod_sofia.c:1895 Hangup sofia/external/CALLERID@CURRENT-FS-SERVER:5080 [CS_EXECUTE] [NORMAL_UNSPECIFIED]
2015-04-29 16:12:19.086370 [DEBUG] switch_channel.c:3222 Send signal sofia/external/CALLERID@CURRENT-FS-SERVER:5080 [KILL]
2015-04-29 16:12:19.086370 [DEBUG] switch_core_session.c:1396 Send signal sofia/external/CALLERID@CURRENT-FS-SERVER:5080 [BREAK]

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adhearsion+...@googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="A3WViq3u1jwJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">adhearsion+...@googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: redirect with freeswitch

Ben Langfeld
Is the invite which is followed by a 302 redirect coming from Localphone? Do they support following redirects?

Enviado do meu iPhone

Em 29/04/2015, às 17:01, Andrius Kairiukstis <[hidden email]> escreveu:

I have two FS servers, listening on private and public IP;
on fs1 i have registered sip account and DID number from localphone;

goal to redirect call to the fs2. 

adhearsion app have redirect as last command
now I am getting sip invite on fs1 and nothing on fs2 nor asterisk. there are no firewall between


On Wednesday, 29 April 2015 21:40:27 UTC+2, Ben Langfeld wrote:
Could you explain your topology better? Looks like the 302 is being sent right, and I'm not sure if something is actually failing or if you're not understanding what is supposed to happen.

On 29 April 2015 at 16:11, Andrius Kairiukstis <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="A3WViq3u1jwJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">and...@...> wrote:
Thank you, I did that. No invites coming to the remote FS and on local one I am receivnig 302 three times on call attempt:
I am on vanilla configs with rayo and sip account configured.

U +0.261489 LOCAL-FS:5060 -> <a href="http://90.174.4.200:58320" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2F90.174.4.200%3A58320\46sa\75D\46sntz\0751\46usg\75AFQjCNEBYjDw_6i5KNs5akUySoJG5vC6Mw';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2F90.174.4.200%3A58320\46sa\75D\46sntz\0751\46usg\75AFQjCNEBYjDw_6i5KNs5akUySoJG5vC6Mw';return true;">90.174.4.200:58320
SIP/2.0 302 Moved Temporarily.
Via: SIP/2.0/UDP 172.34.255.12:63159;rport=58320;branch=z9hG4bKPj1fc86e31bbaa49fea9bc7873b3795830;received=90.174.4.200.
Max-Forwards: 70.
From: "34652299183" <sip:34652299183@LOCAL-FS>;tag=75c96a5f8ae640028c6cf36d103e5995.
To: <sip:1234567890@LOCAL-FS>;tag=pBeejXDFKDSHa.
Call-ID: 58cac8d109e54e28b80655792de53970.
CSeq: 19801 INVITE.
Contact: "unknown" <sip:1234567890@REMOTE-FS:5080>.
User-Agent: FreeSWITCH-mod_sofia/1.4.18~64bit.
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY.
Supported: timer, path, replaces.
Allow-Events: talk, hold, conference, refer.
Reason: Q.850;cause=31;text="NORMAL_UNSPECIFIED".
Content-Length: 0.
Remote-Party-ID: "1234567890" <sip:1234567890@LOCAL-FS>;party=calling;privacy=off;screen=no.
.


On Wednesday, 29 April 2015 19:55:52 UTC+2, Ben Langfeld wrote:
This will execute a SIP 302. Try turning on SIP tracing in FS and you'll see.

Enviado do meu iPhone

Em 29/04/2015, às 13:22, Andrius Kairiukstis <[hidden email]> escreveu:

Hello,

I am executing command:

redirect "sip:NUMBER@REMOTE-FS-SERVER:5080"

After that I see redirect attempt and then call finishes immediately. 

What could be wrong? Do I need something special on REMOTE-FS-SERVER (currently there are only default dialplan with rayo and another application)

Log:
2015-04-29 16:12:19.086370 [DEBUG] mod_rayo.c:709 63fc2f21-2b16-404d-9ed9-d702251d99c0@127.0.0.1, looking for CALL::set:urn:xmpp:rayo:1:redirect command
2015-04-29 16:12:19.086370 [DEBUG] mod_rayo.c:1869 63fc2f21-2b16-404d-9ed9-d702251d99c0@127.0.0.1, executing command
2015-04-29 16:12:19.086370 [DEBUG] mod_sofia.c:1883 Redirecting to "unknown" <sip:NUMBER@REMOTE-FS-SERVER:5080>
2015-04-29 16:12:19.086370 [NOTICE] mod_sofia.c:1895 Hangup sofia/external/CALLERID@CURRENT-FS-SERVER:5080 [CS_EXECUTE] [NORMAL_UNSPECIFIED]
2015-04-29 16:12:19.086370 [DEBUG] switch_channel.c:3222 Send signal sofia/external/CALLERID@CURRENT-FS-SERVER:5080 [KILL]
2015-04-29 16:12:19.086370 [DEBUG] switch_core_session.c:1396 Send signal sofia/external/CALLERID@CURRENT-FS-SERVER:5080 [BREAK]

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adhearsion+...@googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="A3WViq3u1jwJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">adhearsion+...@googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: redirect with freeswitch

Andrius Kairiukstis-2
They do, but in my case even SIP account does not working

On Wednesday, 29 April 2015 23:20:42 UTC+2, Ben Langfeld wrote:
Is the invite which is followed by a 302 redirect coming from Localphone? Do they support following redirects?

Enviado do meu iPhone

Em 29/04/2015, às 17:01, Andrius Kairiukstis <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="Zr8zd3dpi5UJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">and...@...> escreveu:

I have two FS servers, listening on private and public IP;
on fs1 i have registered sip account and DID number from localphone;

goal to redirect call to the fs2. 

adhearsion app have redirect as last command
now I am getting sip invite on fs1 and nothing on fs2 nor asterisk. there are no firewall between


On Wednesday, 29 April 2015 21:40:27 UTC+2, Ben Langfeld wrote:
Could you explain your topology better? Looks like the 302 is being sent right, and I'm not sure if something is actually failing or if you're not understanding what is supposed to happen.

On 29 April 2015 at 16:11, Andrius Kairiukstis <[hidden email]> wrote:
Thank you, I did that. No invites coming to the remote FS and on local one I am receivnig 302 three times on call attempt:
I am on vanilla configs with rayo and sip account configured.

U +0.261489 LOCAL-FS:5060 -> <a href="http://90.174.4.200:58320" rel="nofollow" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2F90.174.4.200%3A58320\46sa\75D\46sntz\0751\46usg\75AFQjCNEBYjDw_6i5KNs5akUySoJG5vC6Mw';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2F90.174.4.200%3A58320\46sa\75D\46sntz\0751\46usg\75AFQjCNEBYjDw_6i5KNs5akUySoJG5vC6Mw';return true;">90.174.4.200:58320
SIP/2.0 302 Moved Temporarily.
Via: SIP/2.0/UDP 172.34.255.12:63159;rport=58320;branch=z9hG4bKPj1fc86e31bbaa49fea9bc7873b3795830;received=90.174.4.200.
Max-Forwards: 70.
From: "34652299183" <sip:34652299183@LOCAL-FS>;tag=75c96a5f8ae640028c6cf36d103e5995.
To: <sip:1234567890@LOCAL-FS>;tag=pBeejXDFKDSHa.
Call-ID: 58cac8d109e54e28b80655792de53970.
CSeq: 19801 INVITE.
Contact: "unknown" <sip:1234567890@REMOTE-FS:5080>.
User-Agent: FreeSWITCH-mod_sofia/1.4.18~64bit.
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY.
Supported: timer, path, replaces.
Allow-Events: talk, hold, conference, refer.
Reason: Q.850;cause=31;text="NORMAL_UNSPECIFIED".
Content-Length: 0.
Remote-Party-ID: "1234567890" <sip:1234567890@LOCAL-FS>;party=calling;privacy=off;screen=no.
.


On Wednesday, 29 April 2015 19:55:52 UTC+2, Ben Langfeld wrote:
This will execute a SIP 302. Try turning on SIP tracing in FS and you'll see.

Enviado do meu iPhone

Em 29/04/2015, às 13:22, Andrius Kairiukstis <[hidden email]> escreveu:

Hello,

I am executing command:

redirect "sip:NUMBER@REMOTE-FS-SERVER:5080"

After that I see redirect attempt and then call finishes immediately. 

What could be wrong? Do I need something special on REMOTE-FS-SERVER (currently there are only default dialplan with rayo and another application)

Log:
2015-04-29 16:12:19.086370 [DEBUG] mod_rayo.c:709 63fc2f21-2b16-404d-9ed9-d702251d99c0@127.0.0.1, looking for CALL::set:urn:xmpp:rayo:1:redirect command
2015-04-29 16:12:19.086370 [DEBUG] mod_rayo.c:1869 63fc2f21-2b16-404d-9ed9-d702251d99c0@127.0.0.1, executing command
2015-04-29 16:12:19.086370 [DEBUG] mod_sofia.c:1883 Redirecting to "unknown" <sip:NUMBER@REMOTE-FS-SERVER:5080>
2015-04-29 16:12:19.086370 [NOTICE] mod_sofia.c:1895 Hangup sofia/external/CALLERID@CURRENT-FS-SERVER:5080 [CS_EXECUTE] [NORMAL_UNSPECIFIED]
2015-04-29 16:12:19.086370 [DEBUG] switch_channel.c:3222 Send signal sofia/external/CALLERID@CURRENT-FS-SERVER:5080 [KILL]
2015-04-29 16:12:19.086370 [DEBUG] switch_core_session.c:1396 Send signal sofia/external/CALLERID@CURRENT-FS-SERVER:5080 [BREAK]

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adhearsion+...@googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adhearsion+...@googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="Zr8zd3dpi5UJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">adhearsion+...@googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: redirect with freeswitch

Ben Langfeld
If you call from a SIP soft-phone registered to the freeswitch instance on which the Adhearsion app is running, the soft-phone does not receive the 302? Can you prove that with packet captures?

Enviado do meu iPhone

Em 29/04/2015, às 18:46, Andrius Kairiukstis <[hidden email]> escreveu:

They do, but in my case even SIP account does not working

On Wednesday, 29 April 2015 23:20:42 UTC+2, Ben Langfeld wrote:
Is the invite which is followed by a 302 redirect coming from Localphone? Do they support following redirects?

Enviado do meu iPhone

Em 29/04/2015, às 17:01, Andrius Kairiukstis <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="Zr8zd3dpi5UJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">and...@...> escreveu:

I have two FS servers, listening on private and public IP;
on fs1 i have registered sip account and DID number from localphone;

goal to redirect call to the fs2. 

adhearsion app have redirect as last command
now I am getting sip invite on fs1 and nothing on fs2 nor asterisk. there are no firewall between


On Wednesday, 29 April 2015 21:40:27 UTC+2, Ben Langfeld wrote:
Could you explain your topology better? Looks like the 302 is being sent right, and I'm not sure if something is actually failing or if you're not understanding what is supposed to happen.

On 29 April 2015 at 16:11, Andrius Kairiukstis <[hidden email]> wrote:
Thank you, I did that. No invites coming to the remote FS and on local one I am receivnig 302 three times on call attempt:
I am on vanilla configs with rayo and sip account configured.

U +0.261489 LOCAL-FS:5060 -> <a href="http://90.174.4.200:58320" rel="nofollow" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2F90.174.4.200%3A58320\46sa\75D\46sntz\0751\46usg\75AFQjCNEBYjDw_6i5KNs5akUySoJG5vC6Mw';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2F90.174.4.200%3A58320\46sa\75D\46sntz\0751\46usg\75AFQjCNEBYjDw_6i5KNs5akUySoJG5vC6Mw';return true;">90.174.4.200:58320
SIP/2.0 302 Moved Temporarily.
Via: SIP/2.0/UDP 172.34.255.12:63159;rport=58320;branch=z9hG4bKPj1fc86e31bbaa49fea9bc7873b3795830;received=90.174.4.200.
Max-Forwards: 70.
From: "34652299183" <sip:34652299183@LOCAL-FS>;tag=75c96a5f8ae640028c6cf36d103e5995.
To: <sip:1234567890@LOCAL-FS>;tag=pBeejXDFKDSHa.
Call-ID: 58cac8d109e54e28b80655792de53970.
CSeq: 19801 INVITE.
Contact: "unknown" <sip:1234567890@REMOTE-FS:5080>.
User-Agent: FreeSWITCH-mod_sofia/1.4.18~64bit.
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY.
Supported: timer, path, replaces.
Allow-Events: talk, hold, conference, refer.
Reason: Q.850;cause=31;text="NORMAL_UNSPECIFIED".
Content-Length: 0.
Remote-Party-ID: "1234567890" <sip:1234567890@LOCAL-FS>;party=calling;privacy=off;screen=no.
.


On Wednesday, 29 April 2015 19:55:52 UTC+2, Ben Langfeld wrote:
This will execute a SIP 302. Try turning on SIP tracing in FS and you'll see.

Enviado do meu iPhone

Em 29/04/2015, às 13:22, Andrius Kairiukstis <[hidden email]> escreveu:

Hello,

I am executing command:

redirect "sip:NUMBER@REMOTE-FS-SERVER:5080"

After that I see redirect attempt and then call finishes immediately. 

What could be wrong? Do I need something special on REMOTE-FS-SERVER (currently there are only default dialplan with rayo and another application)

Log:
2015-04-29 16:12:19.086370 [DEBUG] mod_rayo.c:709 63fc2f21-2b16-404d-9ed9-d702251d99c0@127.0.0.1, looking for CALL::set:urn:xmpp:rayo:1:redirect command
2015-04-29 16:12:19.086370 [DEBUG] mod_rayo.c:1869 63fc2f21-2b16-404d-9ed9-d702251d99c0@127.0.0.1, executing command
2015-04-29 16:12:19.086370 [DEBUG] mod_sofia.c:1883 Redirecting to "unknown" <sip:NUMBER@REMOTE-FS-SERVER:5080>
2015-04-29 16:12:19.086370 [NOTICE] mod_sofia.c:1895 Hangup sofia/external/CALLERID@CURRENT-FS-SERVER:5080 [CS_EXECUTE] [NORMAL_UNSPECIFIED]
2015-04-29 16:12:19.086370 [DEBUG] switch_channel.c:3222 Send signal sofia/external/CALLERID@CURRENT-FS-SERVER:5080 [KILL]
2015-04-29 16:12:19.086370 [DEBUG] switch_core_session.c:1396 Send signal sofia/external/CALLERID@CURRENT-FS-SERVER:5080 [BREAK]

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adhearsion+...@googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adhearsion+...@googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="Zr8zd3dpi5UJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">adhearsion+...@googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: redirect with freeswitch

Andrius Kairiukstis-2
yes, it looks call were bounced by phone. trying now with kamailio in front, hopefully it will fix the issue

On Wednesday, 29 April 2015 23:48:58 UTC+2, Ben Langfeld wrote:
If you call from a SIP soft-phone registered to the freeswitch instance on which the Adhearsion app is running, the soft-phone does not receive the 302? Can you prove that with packet captures?

Enviado do meu iPhone

Em 29/04/2015, às 18:46, Andrius Kairiukstis <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="In2yXvsfbbQJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">and...@...> escreveu:

They do, but in my case even SIP account does not working

On Wednesday, 29 April 2015 23:20:42 UTC+2, Ben Langfeld wrote:
Is the invite which is followed by a 302 redirect coming from Localphone? Do they support following redirects?

Enviado do meu iPhone

Em 29/04/2015, às 17:01, Andrius Kairiukstis <[hidden email]> escreveu:

I have two FS servers, listening on private and public IP;
on fs1 i have registered sip account and DID number from localphone;

goal to redirect call to the fs2. 

adhearsion app have redirect as last command
now I am getting sip invite on fs1 and nothing on fs2 nor asterisk. there are no firewall between


On Wednesday, 29 April 2015 21:40:27 UTC+2, Ben Langfeld wrote:
Could you explain your topology better? Looks like the 302 is being sent right, and I'm not sure if something is actually failing or if you're not understanding what is supposed to happen.

On 29 April 2015 at 16:11, Andrius Kairiukstis <[hidden email]> wrote:
Thank you, I did that. No invites coming to the remote FS and on local one I am receivnig 302 three times on call attempt:
I am on vanilla configs with rayo and sip account configured.

U +0.261489 LOCAL-FS:5060 -> <a href="http://90.174.4.200:58320" rel="nofollow" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2F90.174.4.200%3A58320\46sa\75D\46sntz\0751\46usg\75AFQjCNEBYjDw_6i5KNs5akUySoJG5vC6Mw';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2F90.174.4.200%3A58320\46sa\75D\46sntz\0751\46usg\75AFQjCNEBYjDw_6i5KNs5akUySoJG5vC6Mw';return true;">90.174.4.200:58320
SIP/2.0 302 Moved Temporarily.
Via: SIP/2.0/UDP 172.34.255.12:63159;rport=58320;branch=z9hG4bKPj1fc86e31bbaa49fea9bc7873b3795830;received=90.174.4.200.
Max-Forwards: 70.
From: "34652299183" <sip:34652299183@LOCAL-FS>;tag=75c96a5f8ae640028c6cf36d103e5995.
To: <sip:1234567890@LOCAL-FS>;tag=pBeejXDFKDSHa.
Call-ID: 58cac8d109e54e28b80655792de53970.
CSeq: 19801 INVITE.
Contact: "unknown" <sip:1234567890@REMOTE-FS:5080>.
User-Agent: FreeSWITCH-mod_sofia/1.4.18~64bit.
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY.
Supported: timer, path, replaces.
Allow-Events: talk, hold, conference, refer.
Reason: Q.850;cause=31;text="NORMAL_UNSPECIFIED".
Content-Length: 0.
Remote-Party-ID: "1234567890" <sip:1234567890@LOCAL-FS>;party=calling;privacy=off;screen=no.
.


On Wednesday, 29 April 2015 19:55:52 UTC+2, Ben Langfeld wrote:
This will execute a SIP 302. Try turning on SIP tracing in FS and you'll see.

Enviado do meu iPhone

Em 29/04/2015, às 13:22, Andrius Kairiukstis <[hidden email]> escreveu:

Hello,

I am executing command:

redirect "sip:NUMBER@REMOTE-FS-SERVER:5080"

After that I see redirect attempt and then call finishes immediately. 

What could be wrong? Do I need something special on REMOTE-FS-SERVER (currently there are only default dialplan with rayo and another application)

Log:
2015-04-29 16:12:19.086370 [DEBUG] mod_rayo.c:709 63fc2f21-2b16-404d-9ed9-d702251d99c0@127.0.0.1, looking for CALL::set:urn:xmpp:rayo:1:redirect command
2015-04-29 16:12:19.086370 [DEBUG] mod_rayo.c:1869 63fc2f21-2b16-404d-9ed9-d702251d99c0@127.0.0.1, executing command
2015-04-29 16:12:19.086370 [DEBUG] mod_sofia.c:1883 Redirecting to "unknown" <sip:NUMBER@REMOTE-FS-SERVER:5080>
2015-04-29 16:12:19.086370 [NOTICE] mod_sofia.c:1895 Hangup sofia/external/CALLERID@CURRENT-FS-SERVER:5080 [CS_EXECUTE] [NORMAL_UNSPECIFIED]
2015-04-29 16:12:19.086370 [DEBUG] switch_channel.c:3222 Send signal sofia/external/CALLERID@CURRENT-FS-SERVER:5080 [KILL]
2015-04-29 16:12:19.086370 [DEBUG] switch_core_session.c:1396 Send signal sofia/external/CALLERID@CURRENT-FS-SERVER:5080 [BREAK]

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adhearsion+...@googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adhearsion+...@googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adhearsion+...@googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="In2yXvsfbbQJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">adhearsion+...@googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.