Commit a4a6413
committed
Add attended transfer via remote Contact URI (xferReplacesContact) - closes #237
Regenerate native libs + pjsua2 SWIG bindings from pjsip-android-builder 3.1.0, which adds Call::xferReplacesContact() (Call.java / Call_xferReplacesContact JNI). The variant builds the REFER/Replaces target from the destination dialog's remote Contact URI instead of its AOR, falling back to the AOR when no Contact is present. This keeps attended transfers reachable when the registration binding changes mid-call (network switch / NAT rebind) or behind stricter proxies.
Surface it through the SipService API:
- New PARAM_USE_CONTACT_URI intent extra.
- attendedTransferCall(..., useContactUri) overload; the existing 4-arg overload is unchanged and keeps using the AOR (xferReplaces).
- SipService dispatches to xferReplacesContact() when the flag is set.1 parent 4a52586 commit a4a6413
9 files changed
Lines changed: 37 additions & 1 deletion
File tree
- sipservice/src/main
- java
- net/gotev/sipservice
- org/pjsip/pjsua2
- jniLibs
- arm64-v8a
- armeabi-v7a
- x86_64
- x86
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
446 | 446 | | |
447 | 447 | | |
448 | 448 | | |
| 449 | + | |
449 | 450 | | |
450 | | - | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
451 | 458 | | |
452 | 459 | | |
453 | 460 | | |
| |||
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
399 | 399 | | |
400 | 400 | | |
401 | 401 | | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
402 | 412 | | |
403 | 413 | | |
404 | 414 | | |
405 | 415 | | |
406 | 416 | | |
407 | 417 | | |
408 | 418 | | |
| 419 | + | |
409 | 420 | | |
410 | 421 | | |
411 | 422 | | |
| |||
0 commit comments